TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

I am working with the exam class, and need to align some solutions. However, I would like to move the align environment up, so that it is on the same line as the question/part number. Is this possible? Thanks

share|improve this question

You could use the aligned environment instead. It produces aligned multicolumn formulas in inline math mode, so it doesn't begin a new paragraph. Use aligned within \( ... \) or $ ... $ following the question/part number.

share|improve this answer
If you want the first line of the aligned environment to line up with the line of the question, you should use $\begin{aligned][t] (i.e., the optional argument [t] says to align the first line of the environment with the surrounding line). – Phil Hirschhorn Apr 24 '11 at 17:45
Thank you both very much! That is exactly what I was after! – user5073 Apr 25 '11 at 1:48

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.