mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Handle footnotes in tables in LaTeX.
This commit is contained in:
parent
d748c6d35e
commit
a42203a241
@ -19,6 +19,9 @@
|
|||||||
\RequirePackage{color}
|
\RequirePackage{color}
|
||||||
\RequirePackage{fancyvrb}
|
\RequirePackage{fancyvrb}
|
||||||
\RequirePackage{threeparttable}
|
\RequirePackage{threeparttable}
|
||||||
|
% Handle footnotes in tables.
|
||||||
|
\RequirePackage{footnote}
|
||||||
|
\makesavenoteenv{tabulary}
|
||||||
|
|
||||||
% Redefine these colors to your liking in the preamble.
|
% Redefine these colors to your liking in the preamble.
|
||||||
\definecolor{TitleColor}{rgb}{0.126,0.263,0.361}
|
\definecolor{TitleColor}{rgb}{0.126,0.263,0.361}
|
||||||
|
@ -109,6 +109,8 @@ Z \string\tymax: \the\tymax^^J}%
|
|||||||
\global\advance\TY@linewidth-#1\relax}
|
\global\advance\TY@linewidth-#1\relax}
|
||||||
\def\endtabulary{%
|
\def\endtabulary{%
|
||||||
\gdef\@halignto{}%
|
\gdef\@halignto{}%
|
||||||
|
\let\TY@footnote\footnote%
|
||||||
|
\def\footnote{}% prevent footnotes from doing anything
|
||||||
\expandafter\TY@tab\the\toks@
|
\expandafter\TY@tab\the\toks@
|
||||||
\crcr\omit
|
\crcr\omit
|
||||||
{\xdef\TY@save@row{}%
|
{\xdef\TY@save@row{}%
|
||||||
@ -172,6 +174,7 @@ Z \message{> tymin}%
|
|||||||
\TY@checkmin
|
\TY@checkmin
|
||||||
\TY@count\z@
|
\TY@count\z@
|
||||||
\let\TY@box\TY@box@v
|
\let\TY@box\TY@box@v
|
||||||
|
\let\footnote\TY@footnote % restore footnotes
|
||||||
{\expandafter\TY@final\the\toks@\endTY@final}%
|
{\expandafter\TY@final\the\toks@\endTY@final}%
|
||||||
\count@\z@
|
\count@\z@
|
||||||
\@tempswatrue
|
\@tempswatrue
|
||||||
|
Loading…
Reference in New Issue
Block a user