未分類

tex で方程式を文書の中央揃えにする(eqnarray→ align)

投稿日:

amsmath パッケージを使ったうえで、align を使う。
次の例では eqnarray の代わりに、align を使っている。

\usepackage {amsmath} 
\begin{document}

\begin{align}
f(x) = x^2 \\
g(x) = 2x-1
\end{align}

\end{document}

結果

-未分類

執筆者:


comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

C言語でchar文字列の長さを取得する (strlen)

strlen 関数を使って取得すればよい。sizeof という関数もあるが、strlen と振る舞いが異なるので注意。 例 #include<stdio.h> #include<strin …

no image

matplotlib で縦横の罫線を出力する

罫線を出力するには、pyplot.grid を使う。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2 …

no image

h バー(プランク定数)の書き方

量子科学では、「プランク定数」を h で表すが、h を 2π で割った量を エイチバーで表すことがある。 tex での書き方 $\hbar$ 結果 リベンジH 4【電子書籍】[ 仙道ますみ ]価格:6 …

no image

tex で同値記号(⇔)を入力する方法

同値記号を入力するには、\Leftrightarrow を使う。 例 $b \leftrightarrow c$, $b \Leftrightarrow c$

no image

tex で脚注を表示する方法

\footnote を使う。 例 \footnote{this is a footnote.} 結果