Theses, Books, Title pagesContents link to abstract point to text, not headline

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
eli-b
Posts: 3
Joined: Fri Jan 01, 2016 2:59 pm

Contents link to abstract point to text, not headline

Post by eli-b »

All roman-numeraled entries in the contents page link to a view that's a "too low". The first visible row of after using the link is the beginning of the entry's text, instead of its headline. I'm using version 1.2 of the masters-doctoral-thesis template.

This is still an improvement over version 1.1, where roman-numeraled entry links just pointed bakc to the contents page and not the entry's page at all.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Contents link to abstract point to text, not headline

Post by Johannes_B »

As far as i can see, the current version of the template is 2.2, with many many improvements over version 1.x

You should consider transforming you current content to the updated template, but be sure to have backed up all your data first.


Apart from that, i am not sure i do understand the issue. Can you provide a minimal working example, so we can reproduce the exact same behaviour? This will require your version of Thesis.cls as well, since in the old template it was necessary to change that file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
eli-b
Posts: 3
Joined: Fri Jan 01, 2016 2:59 pm

Re: Contents link to abstract point to text, not headline

Post by eli-b »

The version of the cls file is 1.2, and the version of the template is 2.2. Sorry I wasn't clear. I am using the latest version.

Using Foxit Reader, the links to the declaration of authorship, to the abstract, and
to the acknowledgements pages seem to point to the beginning of the text of each entry, instead of to the title. This is the behavior I get with the template itself, untouched, both when I compile it myself and when I download the output generated by Overleaf.

Using the Windows 10 built-in PDF reader app I get the behavior I want, so this could be an issue with Foxit Reader or an integration issue.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Contents link to abstract point to text, not headline

Post by Johannes_B »

Every template gives some comfort, but as well limits you in certain ways.

In the template as it is, the command \addchaptertocentry adds an entry to the table of contents and places the target for the hyperlink. But this happens at a time, when the predefined content is already done; i.e. the target is below the content. Since \addchaptertocentry is a mere enhancement, the behaviour will not change. Other classes have built in mechanics that not have that issue, but the class MastersDoctoralThesis.cls is based on one of the standard classes.

Right now, you can change main.tex in a manual way:

Code: Select all

\cleardoublepage
\addchaptertocentry{\abstractname} % Add the abstract to the table of contents
\begin{abstract}

I will do some testing, maybe the issue can be resolved in a more simple manner, without wrecking up other stuff.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
eli-b
Posts: 3
Joined: Fri Jan 01, 2016 2:59 pm

Re: Contents link to abstract point to text, not headline

Post by eli-b »

Thanks Johannes_B!
Applying your snippet to the abstract, acknowledgements and authorship declaration fixed my issue!
I'd humbly suggest this fix should be incorporated into the next version of the template.

Happy 2016!
Post Reply