Skip to content

LaTeX regression for admonitions #12594

@chrisjsewell

Description

@chrisjsewell

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions