From 9826be6f69917fac1e9fde20ab1df61258ffbf69 Mon Sep 17 00:00:00 2001 From: jfbu Date: Tue, 11 Oct 2016 23:12:27 +0200 Subject: [PATCH] fix forgotten needed redefinitions in sphinx.sty for jsclasses --- sphinx/texinputs/sphinx.sty | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index f3608c376..e0535fdbe 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -923,16 +923,15 @@ % 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} - } + \renewenvironment{sphinxtheindex} + {\cleardoublepage\phantomsection + \begin{theindex}} + {\end{theindex}} + + \renewenvironment{sphinxthebibliography}[1] + {\cleardoublepage\phantomsection + \begin{thebibliography}{\detokenize{#1}}} + {\end{thebibliography}} \fi % disable \@chappos in Appendix in pTeX