summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
diff options
context:
space:
mode:
authorAkihiro Uchida <uchida@ike-dyn.ritsumei.ac.jp>2011-11-09 20:57:11 +0900
committerAkihiro Uchida <uchida@ike-dyn.ritsumei.ac.jp>2011-11-09 20:57:11 +0900
commit78dba4c99d92b697ad5a78f1c0fdeb883176163a (patch)
tree785f6cffdf7a12eaf2dafe3986a01f29297c6070 /sphinx/texinputs
parentb98857fb404f3c337a02867ae41811fd29f5f7ff (diff)
downloadsphinx-78dba4c99d92b697ad5a78f1c0fdeb883176163a.tar.gz
fix the doubled index and bibliography on the TOC in jsclasses (Japanese standard document classes)
Diffstat (limited to 'sphinx/texinputs')
-rw-r--r--sphinx/texinputs/sphinx.sty15
1 files changed, 15 insertions, 0 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index 8b827e8b..46cd2a1f 100644
--- a/sphinx/texinputs/sphinx.sty
+++ b/sphinx/texinputs/sphinx.sty
@@ -506,3 +506,18 @@
\setlength\footskip{2\baselineskip}
\addtolength{\textheight}{-2\baselineskip}
\fi
+
+% fix the double index and bibliography on the table of contents
+% in jsclasses (Japanese standard document classes)
+\ifx\@jsc@uplatextrue\undefined\else
+ \renewcommand{\theindex}{
+ \cleardoublepage
+ \phantomsection
+ \py@OldTheindex
+ }
+ \renewcommand{\thebibliography}[1]{
+ \cleardoublepage
+ \phantomsection
+ \py@OldThebibliography{1}
+ }
+\fi