tex

tex でブロック行列を入力する方法

投稿日:2020年12月12日 更新日:

ゼロの成分が多いブロック行列を tex で出力する。

\usepackage{amsmath} を使う。

\usepackage{amsmath}
\begin{document}

$$
\left(\begin{array}{@{}c|c@{}}
\begin{matrix}
1 & 2 \\
3 & 4
\end{matrix}
& \mbox{\Large 0} \\
\hline
{\mbox{\Large 0}} &
\begin{matrix}
5 & 6 \\
7 & 8
\end{matrix}
\end{array}\right)
$$

\end{document}

結果

参考

大きなゼロの文字を入力するには
\mbox{\Large 0}
を使う。

ブロック区切りの縦棒には \array のレイアウトで指定。
横棒は \hline で指定している。


-tex

執筆者:


comment

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

関連記事

no image

tex で数式の場所を右揃え・左揃えにする

align 環境のもとで、& をつけると右揃えや左揃えにすることができる。改行には \\ 記号を使う。 例 \begin{align*} f(x) = x^2 + 2x + 1 &\\ …

no image

tex で米印(アスタリスク)を入力する方法

アスタリスクは、「*」記号で入力できる。tex の数式モードと、数式モードの外で書き方が異なるので注意。 例 数式モードの中:math mode $x^{*} A* B^{**}$数式モードの外:te …

no image

tex で、集合の元でないことを表現する方法

\not \in を使う。 例 x \not \in A 結果

no image

tex で表の縦横軸を調整する方法

例 \begin{center} \begin{table}[] \begin{tabular}{|c|c|c|c|} \hline 氏名 & 生年 & 没年 & 著書 …

no image

tex で集合の内部集合(上に丸)を書く方法

集合の「内部」を表す記号を入力するには、\mathring{} を使う。 例 $\mathring{S}$ 結果