## LaTeX forum ⇒ Math & Science ⇒ Changing an equation number to a symbol Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Cham
Posts: 813
Joined: Sat Apr 02, 2011 4:06 pm

### Changing an equation number to a symbol

For a very rare case, I need to completely change the number of a particular equation to a symbol (\mathcal{A}). How can I do this, without affecting all the other equation numbers ?

Here's a MWE to work with :
\documentclass[12pt,letterpaper]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{amsmath}\usepackage{amsfonts}\usepackage{mathtools} \begin{document} Some equation :	\begin{equation}		y(x) = a x^2 + b x + c.	\end{equation}The following equation should have $\mathcal{A}$ as a "number" :	\begin{equation}		\label{test}		x = \frac{- b \pm \sqrt{b^2 - 4 a c}}{2 a}.	\end{equation}A few comments about equation \eqref{test} :	\begin{equation}		y(z) = a + b z.	\end{equation}\end{document}

The reference should also show the correct symbol inside the text.

cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:
Use \tag:

\documentclass[12pt,letterpaper]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{amsmath}\usepackage{amsfonts}\usepackage{mathtools} \begin{document} Some equation:\begin{equation}  y(x) = a x^2 + b x + c.\end{equation}The following equation should have $\mathcal{A}$ as a  number'':\begin{equation}  \label{test}  x = \frac{- b \pm \sqrt{b^2 - 4 a c}}{2 a}. \tag{$\mathcal{A}$}\end{equation}A few comments about equation \eqref{test}:\begin{equation}  y(z) = a + b z.\end{equation} \end{document}

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

Cham
Posts: 813
Joined: Sat Apr 02, 2011 4:06 pm
Wow ! Perfect and so simple ! I didn't knew that one. Thanks !