1

I'm looking a way to do yield the following result in LaTeX.

enter image description here

As you can see, (action) is centered in the first clause of the text, and (result) is also centered in the second clause of the text.

1

This can be implemented by a tabular, for example:

\documentclass{article}

\newcommand*{\stackphrase}[2]{%
  \begin{tabular}[t]{@{}c@{}}%
    #1\\\relax(#2)%
  \end{tabular}
}

\begin{document}
  \stackphrase{if you go to bed late,}{action}
  \stackphrase{you'll be tired}{result}
\end{document}

Result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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