diff options
| author | Georg Brandl <georg@python.org> | 2011-09-23 08:06:12 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-09-23 08:06:12 +0200 |
| commit | 90ee1df433d7e6443eba29a5a0da9d49f7493cee (patch) | |
| tree | dc0673222fd1647eeb243aead5ae85b4a3c78303 /sphinx/texinputs/sphinx.sty | |
| parent | ecb925fcf2a2317974d394833c6ae97004c9c56d (diff) | |
| parent | 600b915d287a12ffdd68a29e15f9f10ff9461a67 (diff) | |
| download | sphinx-90ee1df433d7e6443eba29a5a0da9d49f7493cee.tar.gz | |
Merge with 1.0
Diffstat (limited to 'sphinx/texinputs/sphinx.sty')
| -rw-r--r-- | sphinx/texinputs/sphinx.sty | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index ef7b891b..84c1ca1e 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -461,3 +461,21 @@ } {\endlist} }{} + + +% From footmisc.sty: allows footnotes in titles +\let\FN@sf@@footnote\footnote +\def\footnote{\ifx\protect\@typeset@protect + \expandafter\FN@sf@@footnote + \else + \expandafter\FN@sf@gobble@opt + \fi +} +\edef\FN@sf@gobble@opt{\noexpand\protect + \expandafter\noexpand\csname FN@sf@gobble@opt \endcsname} +\expandafter\def\csname FN@sf@gobble@opt \endcsname{% + \@ifnextchar[%] + \FN@sf@gobble@twobracket + \@gobble +} +\def\FN@sf@gobble@twobracket[#1]#2{} |
