Consider the following MWE:
Code: Select all
\documentclass[UKenglish]{article}
\usepackage{babel}
\usepackage{mathtools}
\usepackage{enumitem}
\usepackage{hyperref}
\mathtoolsset{showonlyrefs}
\newcommand*{\hv}[1]{\label{eqn:#1}\stackrel{\mathclap{(#1)}}{=}}
\newcommand*{\fk}[1]{\item[\eqref{eqn:#1}]}
\begin{document}
We have
\begin{align}
\Delta y
&\hv{1} m(x_{0}+h) - m(x_{0})\\
&\hv{2} \frac{f(x_{0}+h)}{g(x_{0}+h)} - \frac{f(x_{0})}{g(x_{0})}\\
&\hv{3} \frac{f(x_{0}+h) \cdot g(x_{0})}{g(x_{0}+h) \cdot g(x_{0})} - \frac{f(x_{0}) \cdot g(x_{0}+h)}{g(x_{0}) \cdot g(x_{0}+h)}\\
&= \dots
\end{align}
Explanations:
\begin{enumerate}[itemsep=0ex]
\fk{1} A
\fk{2} B
\fk{3} C
\end{enumerate}
\end{document}
1. This way of refering to the lines in the
align
expression seems wierd. Is there a better way of doing this?2. I will like the labels "(1)", "(2)", ... to be printed above "=" only and not flushed right too. I there a way of doing this?
Ad 2. I have tried putting
\notag
at the end of each line but then I get the following error:
Code: Select all
Package amsmath Error: Multiple \label's: label 'eqn:1' will be lost.