0

I want to get a space to the phrase "1\times 8 \mathrm{ matrix}", how can I get it inside the math environment?

enter image description here

\begin{align*}
C_{D_{1\succ 2}, \mathrm{increasing}}   &=  \underbrace{\begin{pmatrix}
1   &   -1  &   1   &   -1  &   1   &   -1  &   1   &   -1  \\ \end{pmatrix}}_{1\times 8\mathrm{ matrix}}       \\
A_{D_{1\succ 2}, \mathrm{increasing}}   &=  \underbrace{\begin{pmatrix}
1   &   0   &   1   &   0   &   1   &   0   &   1   &   0   \\
0   &   1   &   0   &   1   &   0   &   1   &   0   &   1   \\
1   &   1   &   0   &   0   &   1   &   1   &   0   &   0   \\
0   &   0   &   1   &   1   &   0   &   0   &   1   &   1   \\
1   &   1   &   1   &   1   &   0   &   0   &   0   &   0   \\
1   &   1   &   1   &   1   &   0   &   0   &   0   &   0   \\
0   &   0   &   0   &   0   &   1   &   1   &   1   &   1   \\
\end{pmatrix}}_{7\times 8 \mathrm{ matrix}}.
\end{align*}
hhh
  • 8,743
  • You can use \textstyle which at least uses the usual space between symbols. The phrase matrix is best typeset in text mode with \text{ matrix}. – Qrrbrbirlbel Aug 26 '13 at 05:45
  • @Qrrbrbirlbel what is the difference between \mathrm and \text? – hhh Aug 26 '13 at 05:54
  • \textstyle uses, umm, the font defined by \textrm. In many settings \mathrm and \textrm will be mostly the same. A big difference arises in the treatment of space characters: They're ignored in math environments (since TeX has its own specialized rules for typesetting math material) but not in text environments. – Mico Aug 26 '13 at 06:01
  • @hhh \mathrm is still math-mode, that means that spaces are not considered (as everywhere else in math-mode) and that - will be a minus sign. It looks like matrix is a word and therefore text. You should use \text here (or \textrm or \textnormal or …); see Which command should I use for textual subscripts in math mode? Do you also want the space around the \times to be as usual. The underbrace is set in \scriptstyle which doesn’t use horizontal space around binary symbols, similar to the subscripts in your formula (\succ/,). – Qrrbrbirlbel Aug 26 '13 at 06:20

0 Answers0