2

I don't know if the title explains much what I want to say, but here it is:

$$ \frac{\text{XXXXX }}{\text{YYYYYYYY}} \text{(ZZZZZZZZZZZZ)} $$

I want to move up the ZZZZ sentence so that it is aligned with XXXX.

Thank you for your help

luke
  • 159
  • 6
  • Please: Don't use $$! Use \[...\] instead. See http://tex.stackexchange.com/questions/503/why-is-preferable-to –  Jan 18 '15 at 11:27
  • What are the \displaystyle directives meant to achieve? – Mico Jan 18 '15 at 11:39

2 Answers2

4

It's not clear what you're asking, but it seems you're abusing math mode:

\documentclass{article}

\begin{document}

\begin{center}
\begin{tabular}[t]{@{}c@{}}
XXXXX \\
\hline
YYYYYYYY
\end{tabular}
(ZZZZZZZZZZZZ)
\end{center}

\end{document}

enter image description here

egreg
  • 1,121,712
2

If you want it in math mode, you can use array

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{array}{cc}
\text{XXXXX}    & \text{(ZZZZZZZZZZZZ)} \\\cline{1-1}
\text{YYYYYYYY}
\end{array}
\]

\end{document}

enter image description here