Created
September 27, 2013 09:22
-
-
Save shigeya/6726107 to your computer and use it in GitHub Desktop.
Hack to correct encoding of PDF section browser titles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ifluatex\else\ifx\kanjiskip\undefined\else | |
\ifx\ucs\undefined | |
\usepackage{atbegshi} | |
\ifnum 42146=\euc"A4A2 | |
\AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}} | |
\else | |
\AtBeginShipoutFirst{\special{pdf:tounicode 90ms-RKSJ-UCS2}} | |
\fi\fi\fi\fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might need to install
atbegshi
but as far as you're using TeXlive version of TeX, it should be in your package.link: http://www.ctan.org/pkg/atbegshi