Take the 2-minute tour ×
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.

Rather than try to describe in words or by way of a MWE, I have uploaded a picture of the desired result. I know how to create all the components (e.g. \frac{}{} \text{}, ^{}) of this fraction, except for the way in which each piece of text is over two lines.

Any suggestions?

enter image description here

share|improve this question

1 Answer 1

up vote 12 down vote accepted

A simple approach via environment tabular:

\documentclass{article}

\begin{document}

\begin{displaymath}
\frac{
  \left(
    \begin{tabular}{@{}c@{}}
      some text\\
      here
    \end{tabular}
  \right)
  \times
  \left(
    \begin{tabular}{@{}c@{}}
      some more\\
      here
    \end{tabular}
  \right)^a
}{
  \left(
    \begin{tabular}{@{}c@{}}
      and even more\\
      text down here
    \end{tabular}
  \right)^b
}
\end{displaymath}
\end{document}

enter image description here

More elegant with environment pmatrix of package amsmath:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{gather*}
\frac{
  \begin{pmatrix}
    \text{some text}\\
    \text{here}
  \end{pmatrix}
  \times
  \begin{pmatrix}
    \text{some more}\\
    \text{here}
  \end{pmatrix}^a
}{
  \begin{pmatrix}
    \text{and even more}\\
    \text{text down here} 
  \end{pmatrix}^b
}
\end{gather*}

\end{document}

enter image description here

share|improve this answer
    
Thanks Heiko Oberdiek! An excellent answer. –  User 17670 Aug 18 '12 at 11:41
    
I'd just use \parbox[b]{some width}{\centering ...} –  daleif Aug 24 '12 at 11:03
1  
Environment varwidth of package varwidth avoids the knowledge of the exact width, but the struts of tabular or array have their advantages here. –  Heiko Oberdiek Aug 24 '12 at 11:37

Your Answer

 
discard

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.