0

Im use texstudio and i trying use \tag in the command \begin{equation}, the following form

\begin{equation}\tag{P1_\epsilon}

... 1+1=2 ...

\end{equation}

But, texstudop compiles with errors.Is there any way to do this using another command?

2
  • 4
    The argument to \tag is typeset in text mode, so you want \tag{P$1_\epsilon$}
    – egreg
    May 7, 2021 at 13:03
  • @egreg Oh man! you are my hero. I trying \tag{P1$_\epsilon$} and this and it went wrong... But \tag{P$1_\epsilon$} it worked out! May 7, 2021 at 14:03

1 Answer 1

2

The \tag{} command exits mathmode so you have to surround your argument with $ $. Also, you can not have empty lines inside \begin{equation} \end{equation}. You can either eliminate them or add a % if you want. I recommend indenting the contents of the equation to visually separate it.

\begin{equation}\tag{$P1_\epsilon$}
    1 + 1 = 2
\end{equation}

\begin{equation}\tag{$P1_\epsilon$}
%
1 + 1 = 2
%
\end{equation}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.