Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is probably simple, but I can't figure it out. How can I remove the parentheses around a \tag in an align equation? I would like the second line (and only that) to contain [2] instead of ([2]). A workaround would be to give it no label, to see the label [2] as part of the equation, and move it to the right text margin by hand. But how? \hfill does not insert space here.

\documentclass{scrartcl}

\usepackage[T1]{fontenc}
\usepackage[american,ngerman]{babel}
\usepackage{amsmath}

\begin{document}
\begin{align}
  a &= b \\
  c &= d \tag{[2]}
\end{align}
\end{document}
share|improve this question
4  
Use \tag*, see p. 3 of amsmath documentation. –  egreg Jun 20 '12 at 11:27
    
Ahh... I even used that before some time ago... Thanks, egreg! –  Marius Hofert Jun 20 '12 at 11:31
    
@egreg: I made a CW anser so Marius can accept it an this question won’t stay unanswered. Hope you don’t mind :-) –  Tobi Jun 20 '12 at 11:38
    
Thanks a lot, Tobi :-) –  Marius Hofert Jun 20 '12 at 12:43
add comment

1 Answer

up vote 6 down vote accepted

As egreg said, use the starred version \tag* which is the same as \tag except that it does not automatically enclose the tag in parentheses.

\documentclass{article}

\usepackage{amsmath}

\begin{document}
    \begin{equation}
        a + b = c \tag*{[2]}
    \end{equation}
\end{document}

tag

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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