Tell me more ×
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 always use align in my documents, and avoid equation. Is there anything wrong with that? My reasoning behind this: align > equation, so why not use it?

share|improve this question

2 Answers

While not exactly a bad idea in principle, unfortunately it is a bad idea in practise because align doesn't have the same feature as equation whereby less vertical space is added if a small equation is displayed after a paragraph that ended early on the line. For example, consider

\documentclass[twocolumn]{article}
\usepackage{amsmath}
\begin{document}
hello
\[
a+b=c
\]

hello
\begin{align}
a+b&=c
\end{align}
\end{document}

You should easily be able to see the extra space after the second ‘hello’.

share|improve this answer
What are you supposed to do though if you need to use an align environment (i.e., if typeseting an equation environment with an aligned inside is not sufficient)? – mSSM May 21 '12 at 13:11
If you need to use align then you just use align :) Just be aware of the difference, that's all. – Will Robertson May 22 '12 at 2:01

Will all due respect to Will Robertson, actually I think that it is a bad idea in principle, because they mean different things and markup (be it *TeX, HTML,...) should be logical as much as possible.

If you are typesetting an equation, then use equation and if you desire alignment you can use aligned blocks inside the equation.

You can decide easily whether you are typesetting an equation or not, by thinking how to want to reference it. If you only want one equation number to be displayed and see yourself suppressing by hand any additional equation numbers, (say by using \notag) then you are typesetting an equation and your markup should reflect that.

share|improve this answer
2  
I see what you mean about markup being logical and do agree with you in principle, but I think in this case the typesetting of the output is far more important than whether or not we can consider a single equation to be aligned with itself (and therefore 'logical' within an align environment). The difference in behaviour outlined by Will seems to me to provide a much better answer as to the actual difference between the two environments and where you could possibly run into trouble by choosing one over the other. – Michael Underwood Jul 27 '10 at 16:39
4  
I interpret "not exactly a bad idea" as a polite way of saying not really a good idea. – Charles Stewart Jul 28 '10 at 9:24

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.