Commits

Akihiro Uchida committed ec72f22

fix the doubled index and bibliography on the TOC in jsclasses (Japanese standard document classes)

Comments (0)

Files changed (1)

sphinx/texinputs/sphinx.sty

   \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