summaryrefslogtreecommitdiff
path: root/sphinx/texinputs/sphinx.sty
diff options
context:
space:
mode:
authorAkihiro Uchida <uchida@ike-dyn.ritsumei.ac.jp>2012-10-20 18:34:16 +0900
committerAkihiro Uchida <uchida@ike-dyn.ritsumei.ac.jp>2012-10-20 18:34:16 +0900
commit23a2812e926ac31368b7cef11228c8cd70965380 (patch)
tree7439295d88e92c35a6e01fc2b0c0d524b975bef9 /sphinx/texinputs/sphinx.sty
parent9f77a0b0f9787c9f680a6acff973ab5e886f726a (diff)
downloadsphinx-23a2812e926ac31368b7cef11228c8cd70965380.tar.gz
fix chapter name in footer for Japanese documents
Diffstat (limited to 'sphinx/texinputs/sphinx.sty')
-rw-r--r--sphinx/texinputs/sphinx.sty4
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index 54e85677..758fb9a8 100644
--- a/sphinx/texinputs/sphinx.sty
+++ b/sphinx/texinputs/sphinx.sty
@@ -118,6 +118,10 @@
\fancyhead[LE,RO]{{\py@HeaderFamily \@title, \py@release}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
+ % 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