mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #2593 (cont.): delay to begin document storage of original \caption
This commit is contained in:
parent
96e30b0d0e
commit
d8912c166a
@ -841,9 +841,9 @@
|
||||
\def\@captype{figure}%
|
||||
\begin{minipage}{#1}%
|
||||
}{\end{minipage}}
|
||||
% store original \caption macro for figures in longtable and tabulary
|
||||
\let\sphinxcaption\caption
|
||||
% store original \caption macro for use with figures in longtable and tabulary
|
||||
\AtBeginDocument{\let\Sphinx@originalcaption\caption}
|
||||
\newcommand*\figcaption
|
||||
{\ifx\equation$%$% this is trick to identify tabulary first pass
|
||||
\firstchoice@false\else\firstchoice@true\fi
|
||||
\sphinxcaption }
|
||||
\Sphinx@originalcaption }
|
||||
|
Loading…
Reference in New Issue
Block a user