Appendix TOC link does not work when using Polyglossia (TeX Live 2015)












1














MWE:



documentclass{book}

usepackage{appendix}
usepackage{hyperref}
usepackage{polyglossia}
setdefaultlanguage{spanish}

begin{document}
tableofcontents
include{chapter1}
begin{appendices}
include{appendixA}
end{appendices}
end{document}


With this example, the TOC correctly points to the page number of the appendix, but the link does not work (it doesn't point anywhere). Using the PDF's table of contents does not work either. Using appendix works, however.



What's weirder, this only happens with TeX Live 2015, as shipped in Ubuntu 16.04. It does not happen with the previous LTS version.



Is this a known bug? How can I solve it proper?










share|improve this question
























  • Apéndice.a is the hyperanchor, which causes troubles.
    – Christian Hupfer
    Apr 24 '16 at 20:30
















1














MWE:



documentclass{book}

usepackage{appendix}
usepackage{hyperref}
usepackage{polyglossia}
setdefaultlanguage{spanish}

begin{document}
tableofcontents
include{chapter1}
begin{appendices}
include{appendixA}
end{appendices}
end{document}


With this example, the TOC correctly points to the page number of the appendix, but the link does not work (it doesn't point anywhere). Using the PDF's table of contents does not work either. Using appendix works, however.



What's weirder, this only happens with TeX Live 2015, as shipped in Ubuntu 16.04. It does not happen with the previous LTS version.



Is this a known bug? How can I solve it proper?










share|improve this question
























  • Apéndice.a is the hyperanchor, which causes troubles.
    – Christian Hupfer
    Apr 24 '16 at 20:30














1












1








1


0





MWE:



documentclass{book}

usepackage{appendix}
usepackage{hyperref}
usepackage{polyglossia}
setdefaultlanguage{spanish}

begin{document}
tableofcontents
include{chapter1}
begin{appendices}
include{appendixA}
end{appendices}
end{document}


With this example, the TOC correctly points to the page number of the appendix, but the link does not work (it doesn't point anywhere). Using the PDF's table of contents does not work either. Using appendix works, however.



What's weirder, this only happens with TeX Live 2015, as shipped in Ubuntu 16.04. It does not happen with the previous LTS version.



Is this a known bug? How can I solve it proper?










share|improve this question















MWE:



documentclass{book}

usepackage{appendix}
usepackage{hyperref}
usepackage{polyglossia}
setdefaultlanguage{spanish}

begin{document}
tableofcontents
include{chapter1}
begin{appendices}
include{appendixA}
end{appendices}
end{document}


With this example, the TOC correctly points to the page number of the appendix, but the link does not work (it doesn't point anywhere). Using the PDF's table of contents does not work either. Using appendix works, however.



What's weirder, this only happens with TeX Live 2015, as shipped in Ubuntu 16.04. It does not happen with the previous LTS version.



Is this a known bug? How can I solve it proper?







xetex hyperref texlive polyglossia






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 24 '16 at 18:58

























asked Apr 24 '16 at 18:15









amyspark

1828




1828












  • Apéndice.a is the hyperanchor, which causes troubles.
    – Christian Hupfer
    Apr 24 '16 at 20:30


















  • Apéndice.a is the hyperanchor, which causes troubles.
    – Christian Hupfer
    Apr 24 '16 at 20:30
















Apéndice.a is the hyperanchor, which causes troubles.
– Christian Hupfer
Apr 24 '16 at 20:30




Apéndice.a is the hyperanchor, which causes troubles.
– Christian Hupfer
Apr 24 '16 at 20:30










1 Answer
1






active

oldest

votes


















1














Since polyglossia allows unicode characters, the name Apéndice as content of appendixname causes a problem for the hyperanchor that is to be set for the correct linking.



The appendix package defines Hy@chapname to be appendixname, which is Apéndice in this case → 'wrong'.



Redefining Hy@chapname cures the problem -- just use a anchorname with 'regular' letters, i.e. no accents. etc.



documentclass{book}

usepackage{appendix}
usepackage{polyglossia}

setdefaultlanguage{spanish}


usepackage{hyperref}


makeatletter
newcommand{usebetterlinkanchor}[1]{%
defHy@chapapp{#1}%
}
makeatother



begin{document}
tableofcontents
chapter{Chapter 1}
begin{appendices}
usebetterlinkanchor{appendixchapters}
chapter{Appendix}
end{appendices}
end{document}





share|improve this answer























  • Thanks for the fix. Any ideas on why accented hyperanchors break down on just this particular version of XeLaTeX?
    – amyspark
    Apr 25 '16 at 0:15










  • @amyspark: I don't know -- did it work in a previous version?
    – Christian Hupfer
    Apr 25 '16 at 3:14










  • It did in TeX Live 2013.
    – amyspark
    Apr 25 '16 at 12:36










  • @amyspark: I can't check with TL 2013, unfortunately, but there have been some updates to polyglossia, but I think the issue is rather how xelatex builds up the links.
    – Christian Hupfer
    Apr 25 '16 at 13:29











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f306133%2fappendix-toc-link-does-not-work-when-using-polyglossia-tex-live-2015%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Since polyglossia allows unicode characters, the name Apéndice as content of appendixname causes a problem for the hyperanchor that is to be set for the correct linking.



The appendix package defines Hy@chapname to be appendixname, which is Apéndice in this case → 'wrong'.



Redefining Hy@chapname cures the problem -- just use a anchorname with 'regular' letters, i.e. no accents. etc.



documentclass{book}

usepackage{appendix}
usepackage{polyglossia}

setdefaultlanguage{spanish}


usepackage{hyperref}


makeatletter
newcommand{usebetterlinkanchor}[1]{%
defHy@chapapp{#1}%
}
makeatother



begin{document}
tableofcontents
chapter{Chapter 1}
begin{appendices}
usebetterlinkanchor{appendixchapters}
chapter{Appendix}
end{appendices}
end{document}





share|improve this answer























  • Thanks for the fix. Any ideas on why accented hyperanchors break down on just this particular version of XeLaTeX?
    – amyspark
    Apr 25 '16 at 0:15










  • @amyspark: I don't know -- did it work in a previous version?
    – Christian Hupfer
    Apr 25 '16 at 3:14










  • It did in TeX Live 2013.
    – amyspark
    Apr 25 '16 at 12:36










  • @amyspark: I can't check with TL 2013, unfortunately, but there have been some updates to polyglossia, but I think the issue is rather how xelatex builds up the links.
    – Christian Hupfer
    Apr 25 '16 at 13:29
















1














Since polyglossia allows unicode characters, the name Apéndice as content of appendixname causes a problem for the hyperanchor that is to be set for the correct linking.



The appendix package defines Hy@chapname to be appendixname, which is Apéndice in this case → 'wrong'.



Redefining Hy@chapname cures the problem -- just use a anchorname with 'regular' letters, i.e. no accents. etc.



documentclass{book}

usepackage{appendix}
usepackage{polyglossia}

setdefaultlanguage{spanish}


usepackage{hyperref}


makeatletter
newcommand{usebetterlinkanchor}[1]{%
defHy@chapapp{#1}%
}
makeatother



begin{document}
tableofcontents
chapter{Chapter 1}
begin{appendices}
usebetterlinkanchor{appendixchapters}
chapter{Appendix}
end{appendices}
end{document}





share|improve this answer























  • Thanks for the fix. Any ideas on why accented hyperanchors break down on just this particular version of XeLaTeX?
    – amyspark
    Apr 25 '16 at 0:15










  • @amyspark: I don't know -- did it work in a previous version?
    – Christian Hupfer
    Apr 25 '16 at 3:14










  • It did in TeX Live 2013.
    – amyspark
    Apr 25 '16 at 12:36










  • @amyspark: I can't check with TL 2013, unfortunately, but there have been some updates to polyglossia, but I think the issue is rather how xelatex builds up the links.
    – Christian Hupfer
    Apr 25 '16 at 13:29














1












1








1






Since polyglossia allows unicode characters, the name Apéndice as content of appendixname causes a problem for the hyperanchor that is to be set for the correct linking.



The appendix package defines Hy@chapname to be appendixname, which is Apéndice in this case → 'wrong'.



Redefining Hy@chapname cures the problem -- just use a anchorname with 'regular' letters, i.e. no accents. etc.



documentclass{book}

usepackage{appendix}
usepackage{polyglossia}

setdefaultlanguage{spanish}


usepackage{hyperref}


makeatletter
newcommand{usebetterlinkanchor}[1]{%
defHy@chapapp{#1}%
}
makeatother



begin{document}
tableofcontents
chapter{Chapter 1}
begin{appendices}
usebetterlinkanchor{appendixchapters}
chapter{Appendix}
end{appendices}
end{document}





share|improve this answer














Since polyglossia allows unicode characters, the name Apéndice as content of appendixname causes a problem for the hyperanchor that is to be set for the correct linking.



The appendix package defines Hy@chapname to be appendixname, which is Apéndice in this case → 'wrong'.



Redefining Hy@chapname cures the problem -- just use a anchorname with 'regular' letters, i.e. no accents. etc.



documentclass{book}

usepackage{appendix}
usepackage{polyglossia}

setdefaultlanguage{spanish}


usepackage{hyperref}


makeatletter
newcommand{usebetterlinkanchor}[1]{%
defHy@chapapp{#1}%
}
makeatother



begin{document}
tableofcontents
chapter{Chapter 1}
begin{appendices}
usebetterlinkanchor{appendixchapters}
chapter{Appendix}
end{appendices}
end{document}






share|improve this answer














share|improve this answer



share|improve this answer








edited 36 mins ago

























answered Apr 24 '16 at 20:52









Christian Hupfer

147k14192384




147k14192384












  • Thanks for the fix. Any ideas on why accented hyperanchors break down on just this particular version of XeLaTeX?
    – amyspark
    Apr 25 '16 at 0:15










  • @amyspark: I don't know -- did it work in a previous version?
    – Christian Hupfer
    Apr 25 '16 at 3:14










  • It did in TeX Live 2013.
    – amyspark
    Apr 25 '16 at 12:36










  • @amyspark: I can't check with TL 2013, unfortunately, but there have been some updates to polyglossia, but I think the issue is rather how xelatex builds up the links.
    – Christian Hupfer
    Apr 25 '16 at 13:29


















  • Thanks for the fix. Any ideas on why accented hyperanchors break down on just this particular version of XeLaTeX?
    – amyspark
    Apr 25 '16 at 0:15










  • @amyspark: I don't know -- did it work in a previous version?
    – Christian Hupfer
    Apr 25 '16 at 3:14










  • It did in TeX Live 2013.
    – amyspark
    Apr 25 '16 at 12:36










  • @amyspark: I can't check with TL 2013, unfortunately, but there have been some updates to polyglossia, but I think the issue is rather how xelatex builds up the links.
    – Christian Hupfer
    Apr 25 '16 at 13:29
















Thanks for the fix. Any ideas on why accented hyperanchors break down on just this particular version of XeLaTeX?
– amyspark
Apr 25 '16 at 0:15




Thanks for the fix. Any ideas on why accented hyperanchors break down on just this particular version of XeLaTeX?
– amyspark
Apr 25 '16 at 0:15












@amyspark: I don't know -- did it work in a previous version?
– Christian Hupfer
Apr 25 '16 at 3:14




@amyspark: I don't know -- did it work in a previous version?
– Christian Hupfer
Apr 25 '16 at 3:14












It did in TeX Live 2013.
– amyspark
Apr 25 '16 at 12:36




It did in TeX Live 2013.
– amyspark
Apr 25 '16 at 12:36












@amyspark: I can't check with TL 2013, unfortunately, but there have been some updates to polyglossia, but I think the issue is rather how xelatex builds up the links.
– Christian Hupfer
Apr 25 '16 at 13:29




@amyspark: I can't check with TL 2013, unfortunately, but there have been some updates to polyglossia, but I think the issue is rather how xelatex builds up the links.
– Christian Hupfer
Apr 25 '16 at 13:29


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f306133%2fappendix-toc-link-does-not-work-when-using-polyglossia-tex-live-2015%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

サソリ

広島県道265号伴広島線

Setup Asymptote in Texstudio