Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page reference names not localized when using latex_show_pagerefs #1030

Closed
shimizukawa opened this issue Jan 3, 2015 · 0 comments
Closed
Labels
builder:latex type:enhancement enhance or introduce a new feature
Milestone

Comments

@shimizukawa
Copy link
Member

The page references in the resulting .pdf files are not localized.

Even with using \usepackage[ngerman]{babel} included properly, the references generated via latex_show_pagerefs show up as 'page 1' etc. instead of 'Seite 1'.

The hyperref manual specifies in section 4 how to fix that, by adding proper names to the preamble. For Sphinx this can by setting

latex_elements['preamble'] = """
\addto\extrasngerman{%
\def\pageautorefname{Seite}%
}
"""

This should be done automatically for the 'supported' sphinx languages if possible.


@shimizukawa shimizukawa added type:enhancement enhance or introduce a new feature builder:latex prio:low labels Jan 3, 2015
@tk0miya tk0miya added this to the 1.4 milestone Jan 16, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
builder:latex type:enhancement enhance or introduce a new feature
Projects
None yet
Development

No branches or pull requests

2 participants