Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

論文中において、行名・列名がついた行列を書く場合、通常の行列で使う\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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away