So far I've always used non-labeled alignments with align*
, but I think it's time for a small change. How do I refer to an alignment after creating it? I tried searching similar topics but I didn't find them here. I am using article
document class.
Also, does equation behave and work similarly to align
? And how would you refer to an equation number (same situation as with align
)?
Best Answer
Your question is more a general question about labeling and referencing equations.
I think one great introduction is the mathmode of Herbert Voss. It's available at CTAN.
mathmode at CTAN
In the linked document you will find an extra sub section about Labels. It is introduced by:
Update
The following point was mentioned by Mico:
The environment
equation
doesn't allow any line breaks. So the syntax will be:The environment
align
allows line breaks and so every line can get a label.To reference to a given label you can use the standard command
\ref
or any other reference command provided by some packages. I like to use\eqref
to reference to equations.Here a complete example: