Akihiro Uchida  committed 0af2444

fix chapter name in footer for Japanese documents

  • Participants
  • Parent commits 001412e

Comments (0)

Files changed (1)

File sphinx/texinputs/sphinx.sty

     \fancyhead[LE,RO]{{\py@HeaderFamily \@title, \py@release}}
+    % define chaptermark with \@chappos when \@chappos is available for Japanese
+    \ifx\@chappos\undefined\else
+      \def\chaptermark##1{\markboth{\@chapapp\space\thechapter\space\@chappos\space ##1}{}}
+    \fi
   % Update the plain style so we get the page number & footer line,
   % but not a chapter or section title.  This is to keep the first