Skip to content

Commit 0161c8e

Browse files
committed
Correct bookmark and TOC links
As links had the same number (E and 5), hyperref was always linking to the first one. This meant that there was no quick way to access Unit 5, because each link was connecting to Unit E instead. This fix added an explicit method in hyperref to set the correct links.
1 parent b3d82a8 commit 0161c8e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

units/unit04.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
\newcounter{oldchapter}
136136
\setcounter{oldchapter}{\value{chapter}}
137137
\setcounter{chapter}{4}
138+
\renewcommand{\theHchapter}{E\Alph{chapter}}
138139
\renewcommand{\thechapter}{\Alph{chapter}}
139140
\chapter{Boolean Algebra and Logic Circuits}
140141
\label{ch:boolean}
@@ -527,5 +528,6 @@
527528

528529
\setcounter{chapter}{\value{oldchapter}}
529530
\renewcommand{\thechapter}{\arabic{chapter}}
531+
\renewcommand{\theHchapter}{\arabic{chapter}}
530532

531533
\end{document}

0 commit comments

Comments
 (0)