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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The original question provides a good answer for how to add explanations to the multi-line equations. However, my problem is that the explanations have too long space to the corresponding equations, so they often extend to the margin of page. How can I narrow the space between the equations and their explanations?

share|improve this question
up vote 1 down vote accepted

For the odd occasion where your align comment spans multiple lines, consider using a [t]op aligned \parbox of fixed width:

enter image description here

\usepackage{amsmath,lipsum}% http://ctan.org/pkg/{amsmath,lipsum}
  A &= B \\
  &= C && \text{Because of D} \\
  &= D && \parbox[t]{0.7\linewidth}{\raggedright\lipsum*[2]} \\
  &= F
share|improve this answer
Is it possible to use \tag{} for this question? – kiss my armpit Apr 1 '13 at 23:00
@Karl'sstudents: The \tag will appear on the same line as the math content. – Werner Apr 2 '13 at 14:25
@Werner: excuse me. the explanation in your case seems to come from the external document. I tried to delete the \raggedright\lipsum*[2] and replace it with my own explanation, but the explanation will extend to nowhere. Could you explain it further? I am really new to latex... – user26362 Apr 3 '13 at 6:25
@user26362: What does your explanation look like? Is it paragraph text? You could edit your question to include what you've tried thus far. – Werner Apr 3 '13 at 6:30
@Werner: I thought I made a silly move: keep typing "afadfadfd" so the explanation will extend out. But, if I tried to type some complete sentences, they became a paragraph. Thank you very much! :) – user26362 Apr 4 '13 at 2:09

Try the alignat environment. You can find the details in mathmode.pdf.

A &= B \\
  &= C &\quad& \text{Because of D} \\
  &= D && \text{But beware of E} \\
  &    && \text{Some more on that} \\
  &= F &&
share|improve this answer

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.