Good day people,

Today, I was wondering how to correlate the bookmark numbering with the table of contents. As the attached picture shows, the Titulo and Declaracion share the same number page at the bookmark part. In the documento, Declaracion correspond to i (Roman number for one). I have try several combinations of commands and I'm still getting the same result.

The header of main tex file is:

%            openright,
        titlepage, numbers=noenddot, headinclude,
        BCOR=5mm, paper=a4, fontsize=12pt,
% Note: Make all your adjustments in here
% \usepackage{multibib}
\usepackage[title, titletoc,toc,page]{appendix}
% workaround

The header of Declaration.tex file is:

% Declaration

Thank so much in advance for any clue and have a good day

enter image description here

  • Do you have/want Declaracion in the ToC as well? If not, I would uncomment the \cleardoublepage, which may be the source of your problem. – Werner Jan 23 '15 at 1:06
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Please post a minimal working example (MWE). – cfr Jan 23 '15 at 1:20
  • thank @Werner, I did it and I'm still getting the same output : ( – Another.Chemist Jan 23 '15 at 1:41
  • 2
    Special hint from my side, drop classicthesis. This won't be the last oddity you encounter. – Johannes_B Jan 23 '15 at 8:31
  • 1
    fancyhdr should not be used with a KOMAclass, as well as titlesec (tex.stackexchange.com/questions/224331/…). Du you want your declaration in the toc as well? If so, use \addchap. – Johannes_B Jan 23 '15 at 8:37

Since the code in the question is contradictory, I can only give a partial answer. The image contains chapters, which are not part of the code. The table of contents does have page numbers usually, but the bookmarks do not have page numbers. If a bookmark is inner document link, then it could point to a wrong page, but this is not stated in the question. And there could be wrong PDF page labels.

The file Declaration.tex contains:


\chapter usually starts a new page (\cleardoublepage). The anchor setting (\phantomsection) and bookmark (\pdfbookmark) are used before. Thus it can happen that they go to a previous page. This is solved by removing the comment character in front of \cleardoublepage:

\pdfbookmark[1]{Declaraci\'on}{declaracion}% no need for funny anchor names

\phantomsection is not needed, because \pdfbookmark already creates an anchor.

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.