diff options
| author | Akihiro Uchida <uchida@ike-dyn.ritsumei.ac.jp> | 2013-12-08 14:19:15 +0900 |
|---|---|---|
| committer | Akihiro Uchida <uchida@ike-dyn.ritsumei.ac.jp> | 2013-12-08 14:19:15 +0900 |
| commit | 936f7a82cc8e4b8a864536beea7808ed88767bb2 (patch) | |
| tree | b19e33e3419a9bb5df66922053a2b1d69eb5d23d /sphinx/texinputs | |
| parent | 06e1a5584b430d3c6b1950130eef279e984c21d7 (diff) | |
| download | sphinx-936f7a82cc8e4b8a864536beea7808ed88767bb2.tar.gz | |
Fix broken hyperlinks to chapters in appendix in Japanese environment
Diffstat (limited to 'sphinx/texinputs')
| -rw-r--r-- | sphinx/texinputs/sphinx.sty | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 9b083cc6..50c0d16a 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -508,13 +508,11 @@ } \fi -% do not use \@chappos in Appendix in pTeX +% disable \@chappos in Appendix in pTeX \ifx\kanjiskip\undefined\else - \renewcommand{\appendix}{\par - \setcounter{chapter}{0} - \setcounter{section}{0} - \gdef\@chapapp{\appendixname} - \gdef\@chappos{} - \gdef\thechapter{\@Alph\c@chapter} + \let\py@OldAppendix=\appendix + \renewcommand{\appendix}{ + \py@OldAppendix + \gdef\@chappos{} } \fi |
