1%% Bookmarks and hyperlinks
2%
3% change this info string if making any custom modification
4\ProvidesFile{sphinxoptionshyperref.sty}[2021/01/27 hyperref]
5
6% to make pdf with correct encoded bookmarks in Japanese
7% this should precede the hyperref package
8\ifx\kanjiskip\@undefined
9% for non-Japanese: make sure bookmarks are ok also with lualatex
10  \PassOptionsToPackage{pdfencoding=unicode}{hyperref}
11\else
12  \RequirePackage{atbegshi}
13  \ifx\ucs\@undefined
14    \ifnum 42146=\euc"A4A2
15      \AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}}
16    \else
17      \AtBeginShipoutFirst{\special{pdf:tounicode 90ms-RKSJ-UCS2}}
18    \fi
19  \else
20    \AtBeginShipoutFirst{\special{pdf:tounicode UTF8-UCS2}}
21  \fi
22\fi
23
24\ifx\@jsc@uplatextrue\@undefined\else
25  \PassOptionsToPackage{setpagesize=false}{hyperref}
26\fi
27
28% These options can be overridden inside  'hyperref' key
29% or by later use of \hypersetup.
30\PassOptionsToPackage{colorlinks,breaklinks,%
31 linkcolor=InnerLinkColor,filecolor=OuterLinkColor,%
32 menucolor=OuterLinkColor,urlcolor=OuterLinkColor,%
33 citecolor=InnerLinkColor}{hyperref}
34
35\endinput
36