-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Presumably due to #12508, nesting a figure directive in a seealso admonitions now fails LaTeX builds:
.. seealso::
.. figure:: path/to/image.png! LaTeX Error: Not in outer par mode.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.2119 \begin{figure}[htbp]
This can be replicated if you add a construct like this to one of the latex builds in tests/test_builders/test_build_latex.py
Also, putting a sphinxadmonition in tabulary now fails (this happens in the MyST documentation):
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.6208 \end{tabulary}
cc @jfbu @AA-Turner