Is there any way to use \tag
in side the \align
environment inside \[...\]
?
With MathJax, it seems that if you have something like this:
\[
\begin{aligned}
x &= 1 \tag{tag}\\
\end{aligned}
\]
it is rendered properly. However, putting the same thing in a TeX document and trying to compile it throws errors:
\documentclass[]{article}
\usepackage{amssymb,amsmath}
\begin{document}
\[
\begin{align}
x &= 1 \tag{tag}\\
\end{align}
\]
\end{document}
The two errors I get are "erroneous nesting of equation structures" and "\tag not allowed here."
So essentially my question is: is it possible in any way to use the \tag
in a \align
environment inside \[...\]
?
Best Answer
This works.
Note that you must not surround an
align
environment with\[...\]