Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When using fncychap, some of the bookmarks pointing to an appendix is linked to a random chapter. If I avoid using the package, which I am hoping not to, the bookmarks are all fine. I am using report.

The parts of the appendix marked as chapter, actually gets bookmarked to actual chapters, so Appendix A and Appendix B gets linked to Chapter 1 and Chapter 2

EDIT: Forgot to mention that I use LyX, and here is a file bookmarks_error.lyx Also, I use \usepackage[Bjarne]{fncychap}

share|improve this question
Please, make a minimal example showing the problem. In my test (some chapters and two appendices) I have none. –  egreg Sep 21 '12 at 13:45
I updated the text. Only appendix content marked chapter (appendix A, B...) is broken. –  Wilhelmsen Sep 21 '12 at 13:49
Not in my experiment. Please, without some code exhibiting the problem, it's impossible to help. –  egreg Sep 21 '12 at 14:00
Okay, there you go. Thank you –  Wilhelmsen Sep 21 '12 at 14:12

1 Answer 1

up vote 1 down vote accepted

You need two fixes:

  • If you use \addcontentsline before a \chapter, make sure to end the page before, i.e. insert a page break (\cleardoublepage, \clearpage, you will find it in LyX in the Insert/ Formatting menu). And set an anchor using \phantomsection as TeX code.

page break and anchor

  • The numbering of chapters restarts in the appendix, which can generate the same internal link names (chapter.1 for Chapter 1, chapter.1 for Chapter A). Use the hyperref option called naturalnames to avoid this, because then you would get the internal link name chapter.A. You will find it in Document Settings/ PDF Properties/ Hyperlinks:

hyperlink options

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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