TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
6  
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
up vote 9 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

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.