Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Some sentence.... \shortstack[]{a\\b\\c} it produces like

Some sentence.... c

But I would like to produce something like this

Some Sentence...      b

I want to align the "Some sentence....." with be instead of c.

share|improve this question
Could it be that you would like to get the sentence and the stack vertically centered to each other? Aligning to b would mean that the stack, as it is, won't be centered. – Stefan Kottwitz Dec 12 '10 at 18:47

1 Answer 1

up vote 1 down vote accepted

A matrix perhaps:

Some sentence.... $\matrix{ a \cr b \cr c }$
share|improve this answer
Package amsmath Error: Old form `\matrix' should be \begin{matrix}. See the amsmath package documentation for explanation. Type H <return> for immediate help. l.745 Some sentence.... $\matrix{ a \cr b \cr c }$ When I put in a matrix this is the error I get ---- Missing $ inserted. <inserted text> $ l.745 Some sentence.... \begin{matrix} $\matrix{ a \cr b \cr c }$\end{matrix} ? – Aku Dec 12 '10 at 19:34
@Aku: use \begin{matrix}...\end{matrix} within $...$, not outside math mode, then morbusg's suggestion works. (Without amsmath it works in original syntax.) – Stefan Kottwitz Dec 12 '10 at 20:53
$\begin{matrix}\matrix{ a \cr b \cr c } \end{matrix}$ This is the error I got Missing } inserted. <inserted text> } l.768 $\begin{matrix}\matrix{ a \cr b \cr c } – Aku Dec 12 '10 at 22:29
@Aku: You want Some sentence.... $\begin{matrix} a \\ b \\ c \end{matrix}$. (It works like all the other environments, pairing a \begin{envname} with and \end{envname}.) – Antal Spector-Zabusky Dec 12 '10 at 22:55

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.