未分類

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

tex で「デルタ」δ・Δ を入力する方法

小文字のデルタ:δ大文字のデルタ:Δ 例 $\delta, \Delta$ 結果

no image

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

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

no image

tex で差集合の記号を入力する方法

\setminus を使う。 例 $A \setminus B$ 結果

no image

c++ で文字列が他の文字列を含むか判定する方法

文字列を含むかどうか判定するには、string の find を使う。見つからなかった場合は、std::string::npos を返す。 例 #include <iostream> #i …

no image

tex で email を書く方法

\hyperref パッケージを使って次のように書く。 例 \usepackage{hyperref} \begin{document} \href{mailto:taro@example.co.jp …