Appendix TOC link does not work when using Polyglossia (TeX Live 2015)
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
add a comment |
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
Apéndice.a
is the hyperanchor, which causes troubles.
– Christian Hupfer
Apr 24 '16 at 20:30
add a comment |
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
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
xetex hyperref texlive polyglossia
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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}
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 topolyglossia
, but I think the issue is rather howxelatex
builds up the links.
– Christian Hupfer
Apr 25 '16 at 13:29
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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}
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 topolyglossia
, but I think the issue is rather howxelatex
builds up the links.
– Christian Hupfer
Apr 25 '16 at 13:29
add a comment |
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}
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 topolyglossia
, but I think the issue is rather howxelatex
builds up the links.
– Christian Hupfer
Apr 25 '16 at 13:29
add a comment |
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}
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}
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 topolyglossia
, but I think the issue is rather howxelatex
builds up the links.
– Christian Hupfer
Apr 25 '16 at 13:29
add a comment |
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 topolyglossia
, but I think the issue is rather howxelatex
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Apéndice.a
is the hyperanchor, which causes troubles.– Christian Hupfer
Apr 24 '16 at 20:30