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 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
add comment

1 Answer

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
add comment

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.