mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #633: Allow footnotes in section headers in LaTeX output.
This commit is contained in:
parent
a7f255d2f6
commit
caaa2762a3
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
Release 1.0.8 (Sep 22, 2011)
|
||||
============================
|
||||
|
||||
* #633: Allow footnotes in section headers in LaTeX output.
|
||||
|
||||
* #616: Allow keywords to be linked via intersphinx.
|
||||
|
||||
* #613: Allow Unicode characters in production list token names.
|
||||
|
@ -479,3 +479,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{}
|
||||
|
Loading…
Reference in New Issue
Block a user