Skip to content

v1.2.2

Latest

Choose a tag to compare

@mmcky mmcky released this 10 Nov 04:23

Bug Fixes

  • Fixed LaTeX Error: Not in outer par mode when building LaTeX/PDF output with a captioned figure inside an exercise or solution, including gated exercise-start / solution-start blocks (#94, #95)
    • Figures inside exercise and solution boxes are now written as \begin{figure}[H], as Sphinx already does for figures inside its own admonitions
    • This also covers code-cell outputs with mystnb: figure: caption: metadata inside a solution
    • HTML output is unchanged
  • Fixed CI test failures on Sphinx 6 and 7 caused by a newer pydata-sphinx-theme, by switching the gated directive test root to alabaster (#88)

Installation

pip install sphinx-exercise==1.2.2

See v1.2.2 release notes for full details.