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 で米印(アスタリスク)を入力する方法

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

no image

tex でまるばつを入力する方法

マル記号、バツ記号、マルの中にバツ記号をそれぞれ入力するには次のようにする。 例 $$\circ \times \otimes$$ 結果 美味しんぼ(70)【電子書籍】[ 雁屋哲 ]価格:605円(税 …

no image

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

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

no image

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

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

no image

tex で、微分の縦棒を入力する方法

ある点での微分を表示したい場合には、\left. と \right| を組み合わせる。 例 $\left.\frac{df}{dx}\right|_{x=1}$ 結果