0

I have been trying to get the pdf with bookmarks, just like this, but from a custom documentclass from GitHub. I tried everything from the forums and nothing works from me. The only option in to add manually the pdfbookmark but i want to generate automatically from the ToC. I am using Texmaker and PDFLatex.

  • 1
    Welcome to TeX.SX! Have you tried loading the bookmark package? – GuM Sep 27 at 18:05
  • Yes, i tried bookmark and hyperref. – Carlos Sep 27 at 18:10
2

The class is faulty. It tries to define its own command for the table of contents, but the definition is faulty.

\documentclass{politex}
\usepackage{hyperref}
\let\ABNTaddcontentsline\addcontentsline
\begin{document}
\tableofcontents
\chapter{abc}
\section{blub}
\end{document}
  • Thank you very much! It has solved my issue. – Carlos Sep 27 at 19:26

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.