1

Let say I have an labeled-equation like,

enter image description here

And I want to refer this equation in align mode like,

enter image description here

I want to know how can this be done using label and ref tools in latex? Any help would be appreciated. Thanks

  • 1
    Welcome to TeX.SX! Please help us help you by adding a MWE. – TeXnician Apr 18 '17 at 12:09
1

The same way as you reference in normal text:

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}

\begin{equation}\label{eq:abc}
a = b + c
\end{equation}
%
\begin{align*}
e + f &= g \\
\overset{\text{by \eqref{eq:abc}}}{\Longrightarrow} m + n &= p
\end{align*}

\end{document}

enter image description here

1

Like this?

enter image description here

Edit: I forgot on "by" ... corrected now

\documentclass{article}
\usepackage{mathtools}

\begin{document}
    \begin{align}
                  a+b & = c       \label{eq:1}  \\
\xRightarrow{\text by \eqref{eq:1} }} m+n & =p
    \end{align}
\end{document}
0

Hope the below coding solved your problem:

\documentclass{book}

\usepackage{amsmath,mathtools}

\begin{document}

\begin{align}

a=b+c\label{eq1}

\end{align}

\begin{align}

e+f&=g\label{eq2}\\

\xRightarrow{\text{by \eqref{eq1}}}m+n&=p

\end{align}

\end{document}
  • amsmath is loaded by mathtools, so it is not necessary to load it again ... – Zarko Apr 18 '17 at 12:40
  • 1
    blank lines aren't allowed in math mode. (perhaps this is just an accident of how this was input, but it's something you should rmember.) – barbara beeton Apr 19 '17 at 1:06

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.