Is it possible to have hyperlinked entries in the ToC, while hyperlink is disabled in minitoc?


Yes. Load the minitoc package before hyperref. Immediately after loading minitoc save the definition of \contentsline, the macro that prints the entries, in another macro. Via the command \beforeminitoc, restore the definition of \contentsline from the stored value. The small catch is that in the meantime, hyperref has changed the number of arguments required by \contentsline from 3 to 4, so you have to take that in to account in the code.

Table of contents:

Sample toc


Sample chapter







\section{First section}

\section{Second section}


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.