MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ wrong direction to an equation below a tagged one
-
- Posts: 1
- Joined: Mon Nov 15, 2021 1:45 pm
wrong direction to an equation below a tagged one
I put a tag into an equation for example:
\begin{equation} \label{eq1} \tag{A}
a = b
\end{Equation}
Below this equation I have other numbered equations, lets call one of them \label{eq2}.
On the next pages, when I click a reference to eq2, it shows the text below eq1.
How to deal with that?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
wrong direction to an equation below a tagged one

Code: Select all
\documentclass{article}
\usepackage{amsmath}
\usepackage{mwe}
\usepackage{hyperref}
\makeatletter
\newcommand*{\equationnumbering}[2][0]{%
\setcounter{equation}{#1}%
\gdef\theequation{\csname @#2\endcsname \c@equation}%
\gdef\theHequation{\csname @#2\endcsname \c@equation}%
}
\makeatother
\begin{document}
\section{Test}
\blindtext
\equationnumbering{Alph}
\begin{equation}
a = b
\label{eq1}
\end{equation}
\blindtext
\equationnumbering{arabic}
\begin{equation}
c=d
\label{eq2}
\end{equation}
\blindtext
\equationnumbering[1]{Alph}
\begin{equation}
e=f
\label{eq3}
\end{equation}
\blindtext
\equationnumbering[1]{arabic}
\begin{equation}
g=h
\label{eq4}
\end{equation}
\blindtext
See \eqref{eq1}, \eqref{eq2}, \eqref{eq3}, \eqref{eq4}
\end{document}
