未分類

tex で行列間の水平間隔を調整する方法

投稿日:

行列を水平方向に並べるとき、間隔を開けたいことがある。
\hspace コマンドを使うことで、水平方向の間隔を指定することができる。
(行列表示には amsmath パッケージを使う。)

\usepackage{amsmath}
\begin{document}

$$
A = \left(
\begin{matrix}
1 & 2 & 3\\
a & b & c
\end{matrix}
\right),
\hspace{2cm}
B = \left(
\begin{matrix}
4 & 5 & 6\\
x & y & z
\end{matrix}
\right)
$$

\end{document}

結果

-未分類

執筆者:


comment

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

関連記事

no image

tex でインテグラルが小さくなる→大きくする方法

文章中でインテグラル(積分記号)を大きくするには、\displaystyle と書けばよい。 例 usual $\int \frac{ax+b}{cx+d} dx$display style $\di …

no image

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

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

no image

tex で数式モード内に普通の文字列を入力する方法

\textrm を使う。 例 $$y = f (x) \hspace{1cm} \textrm{This is a function.}$$ 結果

no image

tex でオーム記号を入力する方法

siunit のパッケージを使って、\si{\ohm} で入力する。 例 \usepackage{siunitx} \begin{document} \si{\ohm} \end{document} …

no image

tex で文字の上の点を入力する方法

テキストモードでは \. 数式モードでは \dot{} を使う。 例 \.{a}$\dot{x}$ 結果