From 04a38b87ecf6d1d1454f169c26f4dc5a32a0046b 2014-12-23 02:09:04 From: Bradley M. Kuhn Date: 2014-12-23 02:09:04 Subject: [PATCH] Order matters in \usepackage{hyperref}. The problem exhibited only in PDF files, wherein \ref{} links to appendix chapters referred instead to regular chapters. http://tex.stackexchange.com/questions/77886/fncychap-and-hyperref-messes-up-page-references suggest that loading hyperref second fixes the problem. This indeed worked. --- diff --git a/comprehensive-gpl-guide.tex b/comprehensive-gpl-guide.tex index c4bf3974a8a3860d2d29d8903d50a15f7e31011a..2c421181d07ff376c004f28e5923d68759948282 100644 --- a/comprehensive-gpl-guide.tex +++ b/comprehensive-gpl-guide.tex @@ -52,7 +52,6 @@ % is worse. :) My other opting was COEO, which seemed too close to % CEO. Suggestions welcome. -\usepackage{hyperref} \usepackage{listings} \usepackage{enumerate} \usepackage{enumitem} @@ -62,6 +61,9 @@ paperwidth=8.5in, paperheight=11in, left=1in, right=1in, top=1.25in, bottom=.75in, ]{geometry} +% Make sure hyperref is last in the package list. Order matters here, See: +% http://tex.stackexchange.com/questions/77886/fncychap-and-hyperref-messes-up-page-references +\usepackage{hyperref} \newcommand{\tutorialpartsplit}[2]{#2}