Math & ScienceCross-reference

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Cross-reference

Post by svend_tveskaeg »

Hi all.

Consider the following MWE:

Code: Select all

\documentclass{article}
\usepackage{mathtools}

\begin{document}
\begin{align*}
  x
  &= a\\
  &\stackrel{\mathclap{(^{\ast})}}{=} b.
\end{align*}
See $(^{\ast})$.
\end{document}
I would like to have an equation where no equation numbers are shown in the right (or left) side of the page but with a cross-reference that is shown as $(^{\ast})$ instead of me having to write it manually both in and after the equation. (I hope it makes sense...)

How do I do this?

Thank you in advance!
Last edited by svend_tveskaeg on Sun Sep 18, 2011 7:14 pm, edited 1 time in total.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Cross-reference

Post by kaiserkarl13 »

How about this?

Code: Select all

\documentclass{article}
\usepackage{amsmath}

\begin{document}
  \begin{equation}
    \begin{split}
      x &= a \\
        &= b
    \end{split}
    \tag{$\ast$}
    \label{eq:test}
  \end{equation}
  See~\eqref{eq:test}.
\end{document}
BTW, I love your signature line.
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Cross-reference

Post by svend_tveskaeg »

I would like the reference to be over the equal sign.

PS. Thanks regarding the signature.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply