wannesm/adsphd

Adding custom list of abbreviations and symbols renders broken pdf page links

Closed this issue · 1 comments

So in thesis.tex I selected the following layout

\includeabstract{abstract}
\includeabstractnl{abstractnl}

% To create a list of abbreviations, there are 2 options
% 1. manual creation of list of abbreviations and inclusion as a chapter
\includeabbreviations{abbreviations}

% To create a list of symbols, there are 2 options
% 1. include a manually created nomenclature as a chapter
\includenomenclature{nomenclaturechapter}

\tableofcontents
\listoffigures
\listoftables

At first there was no page label to click on for Beknopte samenvatting, but that was solved removing the * behind the \chapter command at the specific tex file.

However, now I obtain

image

You can clearly see in the screenshot, that Beknopte samenvatting, List of Abbreviations, List of Symbols, all point to exactly the same page v but in principle it should be v, vi and vii. Anyone got a clue what I am missing here?

A bit later I found the solution myself. In adsphd.cls one should change line 836-839 and line 841-845 to add a \phantomsection. If a page does not contain that without content, a page cannot be used as an anchor. Other includes already covered this.