TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm needing to create a matrix enclosed with brackets [], not parentheses (), with row labels on right side. Is this possible using \kbordermatrix?

For instance, in the following:

\kbordermatrix{\mbox{}& C_1 & C_2& C_3\\

I would like the labels R_1 and R_2 to be on the right side of the matrix not the left.

share|improve this question
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Christian Hupfer Jul 25 '14 at 7:41
% arara: pdflatex


    & \mLabel{C_1} & \mLabel{C_2} & \mLabel{C_3} & & \\
      & 1 & 2 & 7 & & \mLabel{R_1} \\
      & 2 & 1 & 8 & & \mLabel{R_2} \\

enter image description here

share|improve this answer

If you need it only for the 2x3 matrix:

$ \begin{array}{r@{\kern5pt}ccc@{}l>{\SC}l} 
        & \SC C_1 &\SC C_2 &\SC C_3\\
\Biggg[ & 1       & 2      & 7      & \Biggg] & R_1 \\
        & 2       & 1      & 8      &         & R_2
\end{array} $


enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.