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 の equation 環境で複数行の数式を入力する(\split を使う)

\equation の中で \split を使う。 \tag を使って、自分で定義した式番号を使える。 例 \begin{equation} \begin{split} a \\ b \\ c \en …

no image

tex で表に空欄をつける方法

区切りの & だけを入力すると、表に空欄を作ることができる。 例 \begin{table} \begin{tabular}{ |c|c|c|c| } \hline 1 & & …

no image

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

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

no image

tex で偏微分記号を入力する

偏微分記号を入力するには、\partial を使う。 分数を入力するための \frac と混ぜて使うと、偏微分係数を出力することができる。 \usepackage{amsmath} \usepacka …

no image

tex の equation で式番号を表示しないようにする方法

\nonumber を使うと式番号を表示しないようにできる。 例 \usepackage{amsmath} \begin{document} \begin{equation} \nonumber y …