diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.tex | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.tex index 218b1a3fed4..1ec5c196775 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.tex +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.tex @@ -1,3 +1,17 @@ + % To ensure that the page numbers are up-to-date: + % + % latex sampleEqPg + % makeglossaries sampleEqPg + % latex sampleEqPg + % makeglossaries sampleEqPg + % latex sampleEqPg + % + % The extra makeglossaries run is required because adding the + % glossary in the second LaTeX run shifts the page numbers on + % which means that the glossary needs to be updated again. + % (Note that this problem is avoided if the page numbering is + % reset after the glossary. For example, if the glossary has + % roman numbering and the subsequent pages have arabic numbering) \documentclass[a4paper,12pt]{report} \usepackage{amsmath} @@ -8,6 +22,11 @@ \newcommand{\erf}{\operatorname{erf}} \newcommand{\erfc}{\operatorname{erfc}} + % redefine the way hyperref creates the target for equations + % so that the glossary links to equation numbers work + +\renewcommand*\theHequation{\thechapter.\arabic{equation}} + \renewcommand{\glossaryname}{Index of Special Functions and Notations} \renewcommand{\glossarypreamble}{Numbers in italic indicate the equation number, |