Fix #633: Allow footnotes in section headers in LaTeX output.

This commit is contained in:
Georg Brandl 2011-09-22 19:08:51 +02:00
parent a7f255d2f6
commit caaa2762a3
2 changed files with 20 additions and 0 deletions

View File

@ -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.

View File

@ -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{}