11
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LaTeX 行名・列名がついた行列を書く方法

Last updated at Posted at 2013-10-29

論文中において、行名・列名がついた行列を書く場合、通常の行列で使う\begin{array}ではなく、¥kbordermatrix{}を使う必要があります。

この場合は、
プリアンプルに

¥usepackage{kbordermatrix}

を追加し、

¥begin{eqnarray*}
¥begin{split}
  A =¥kbordermatrix{
	&1&2&3&4&5& &6&7&8&9¥¥
	a&0&0&0&0&0& ¥vrule &0&0&0&0¥¥
	b&0&0&0&0&0& ¥vrule &0&0&0&0¥¥
	}
¥end{split}	
¥end{eqnarray*}

と書くと、Screen Shot 2013-10-29 at 15.28.50.png

という行列が作成できます。

四角括弧 [ ] ではなく、丸括弧 ( ) に変更したい場合は、

¥renewcommand{¥kbldelim}{(}
¥renewcommand{¥kbrdelim}{)}

を¥begin{eqnarray*}の前に追加しておきましょう。

Screen Shot 2013-10-29 at 15.28.14.png

11
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?