-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
EN DASH disappears from PDF bookmarks in Japanese documents #4187
Comments
The issue may have to do with this
Is this a problem Japanese LaTeX users know how to solve? Using |
To resolve this, we need to migrate to uplatex. With platex, we use EUC-JP as internal encoding of PDF bookmarks. But the encoding does not contain EN-DASH. As a workaround, we can replace them by other characters (ex. hyphen in ASCII) before outputting .tex code. But to keep using pLaTeX is not important. So it would be better to migrate. |
…Japanese documents
…Japanese documents
Fix #4187: latex: EN DASH disappears from PDF bookmarks in Japanese documents
Consider following index.rst
and
language = 'ja'
. Thenmake latexpdf
includes following console output:and after enquiry it comes from the PDF bookmarks. Indeed the EN DASH are ok in PDF, but absent from bookmark. Picture:
Sphinx escapes the U+2013 (EN DASH) to
\textendash{}
in LaTeX, but this is not the cause of the problem. It happens also when using the approach at https://github.com/jfbu/sphinx/tree/fixplatexendash and inserting literal–
in the tex file.Environment info
The text was updated successfully, but these errors were encountered: