tex

tex で行列に罫線を入れてブロック行列を書く方法

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

\array の中に、\matrix を入れる。
大きなゼロは、\mbox の中に \Huge 0 を書いて入力する。
大きなゼロの位置を調整するために、\raisebox を使った。

\usepackage{amsmath}
\begin{document}

$$
\left(\begin{array}{@{}c|c@{}}
0 & \begin{matrix}
1 & 1
\end{matrix}
\\
\hline
\begin{matrix}
1 \\ 1
\end{matrix} & \raisebox{-0.5em}{\mbox{\Huge 0}}
\end{array}\right)
$$

\end{document}

結果

-tex
-

執筆者:


comment

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

関連記事

no image

tex でニアリーイコール記号を入力する

ニアリーイコール記号を入力するには、\fallingdotseq または、\rigingdotseq を使う。 例 \usepackage{amssymb} \begin{document} $$x …

no image

tex で箇条書きをする方法

箇条書きをしたい部分を\begin{\itemize} と\end{itemize} で囲い、項目ごとに \item で箇条書きをすることができる。 例 \begin{itemize}     \it …

no image

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

ゼロの成分が多いブロック行列を tex で出力する。 \usepackage{amsmath} を使う。 例 \usepackage{amsmath} \begin{document} $$ \lef …

no image

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

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

no image

tex で表を横にぶち抜きしたものを作成する方法

multicolumn を使う。 例 \begin{center} \begin{table}[] \begin{tabular}{|c|c|c|c|} \hline \multicolumn …