fmarotta / kaobook

A LaTeX class for books, reports or theses based on https://github.com/kenohori/thesis and https://github.com/Tufte-LaTeX/tufte-latex.
https://github.com/fmarotta/kaobook
LaTeX Project Public License v1.3c
869 stars 186 forks source link

index with no working hyperlinks #38

Closed flaviusjose closed 4 years ago

flaviusjose commented 4 years ago

Hello,

I am trying to generate an index at the end of the document including hyperlinks on the page numbers that take me to the respective page. I indeed get the index with the correct page numbers but no working hyperlinks.

Any help would be appreciated.

Jose Lopez

bradyneal commented 4 years ago

+1

Simply including the hyperref package normally automatically adds these hyperlinks in the index (with imakeidx).

I spent a bit of time commenting out hyperref stuff in kao.sty, but I was unable to get it to add the hyperlinks.

fmarotta commented 4 years ago

It was easier than I thought: hyperref is already loaded by the kaobook, but it should be loaded after imakeidx. I now included the imakeidx package at the very beginning of styles/kao.sty, and the hyperlinks work. Note that the caption package secretly loads hyperref, so imakeidx should also be loaded before caption. Thanks for reporting this, let me know if for you the links are still not OK.

bradyneal commented 4 years ago

Lol. Thanks @fmarotta!

flaviusjose commented 4 years ago

Now it is working! Thank you very much!