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.

I would like something like this:

STH
= STH       REASONS Explained.
= STH       LOOOOOOOOOOOOOOOOOOONG
        REASON
= STH.

How can I do this?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

If you use the amsmath package then this can be done using the align (or align* if you don't want the equations numbered) environment together with the \text command for the text.

\documentclass{minimal}
\usepackage{amsmath}

\begin{document}
\begin{align*}
A &= B \\
&= C && \text{Because of D} \\
&= D && \text{But beware of E} \\
&&& \text{Some more on that}
&= F
\end{align*}
\end{document}

Result (note that the actual result will be centred on the page):

aligned mathematics

To get the alignment as you have it, you would have:

&A \\
&= B \\

at the start.

The amsmath package is loaded by default if you use one of the classes from the AMS, such as amsart.

share|improve this answer

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.