2

I would like use the following enumeration of equations:

               x+y=z                            (1.1) some text

Where this enumeration is, say, given on the right side of equation. It consists of a numerical part which will automatically increase to (1.2) for the next equation and a fixed part containing some short text.

  • 2
    Just a suggestion: add the text to the left of the equation tag (the number). Readers can quicly browse through equations if the numbering is consistemtly placed in the same location (tipically flushed to a margin); extra text replacing the expected position for the numbering could be distracting – Gonzalo Medina Mar 5 '14 at 3:45
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – karlkoeller Mar 5 '14 at 6:28
5

You can change the way the equation numbers are printed by modifying the definition of \tagform@.

This one prints the text in the right margin:

\makeatletter
\renewcommand\tagform@[1]{\maketag@@@{(\ignorespaces#1\unskip\@@italiccorr)\rlap{ some text}}}
\makeatother

MWE:

\documentclass{article}
\usepackage{amsmath}

\makeatletter
\renewcommand\tagform@[1]{\maketag@@@{(\ignorespaces#1\unskip\@@italiccorr)\rlap{ some text}}}
\makeatother

\begin{document}
\section{test}
\noindent X\hrulefill X
\begin{equation}
  a=b
\end{equation}
\begin{equation}
  c=d
\end{equation}
\end{document} 

enter image description here

If you prefer the text not being in the right margin, change the redefinition to:

\makeatletter
\renewcommand\tagform@[1]{\maketag@@@{(\ignorespaces#1\unskip\@@italiccorr) some text}}
\makeatother

and you'll get

enter image description here

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.