Is there a way to use align
and tag
inline together? Here are some examples of what I tried:
\documentclass[]{article}
\begin{document}
$$\begin{aligned}
x^2 &= 1 \\
x &= -1,1 \tag{*} \\
\end{aligned}$$
\end{document}
It gives me an error, however, telling me \tag not allowed
.
\begin{align}
inside$$
will generate an error (and you should not use$$
in latex anyway). Perhaps you are looking for the first example, but without$$
(hard to tell from your question.\begin{aligned}
works inside the$$
. but the problem is that it doesn't accept tags. Here's the error I get:\tag not allowed here
! LaTeX Error: Environment aligned undefined.