0

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.

6
  • \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. Oct 29, 2016 at 11:23
  • Well, it doesn't really matter which one I use. I did realize that only \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 Oct 29, 2016 at 11:25
  • @DavidCarlisle Thank you for clearing it up (I realized why my question was unclear from your comment). I updated my question so it's not as unclear. Oct 29, 2016 at 11:27
  • you can't number inline math as an equation? Oct 29, 2016 at 11:32
  • Your new MWE produces ! LaTeX Error: Environment aligned undefined. Oct 29, 2016 at 11:33

1 Answer 1

2

You need align or align* (and never use $$ in latex).

\documentclass{amsart}
\begin{document}
\begin{align*}
x^2 &= 1 \\
x   &= -1,1 \tag{*} 
\end{align*}
\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .