-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
LaTeX: :rst:dir:versionchanged with contents being a list will cause error during pdf build #9330
Copy link
Copy link
Closed
Milestone
Description
Describe the bug
A clear and concise description of what the bug is.
When trying to build Sphinx pdf doc on 4.x
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.26992 ...ged}{Changed in version 4.0.0: }\item {
}
(line number may not be right because actually got this on a branch adding extra text to latex.rst)
Your project
Sphinx own doc
It is caused by
.. versionchanged:: 4.0.0
- The font substitution commands added at ``2.0`` have been moved
to the ``'fontsubstitution'`` key, as their presence here made
it complicated for user to customize the value of ``'fontpkg'``.
- The default font setting has changed: it still uses Times and
Helvetica clones for serif and sans serif, but via better, more
complete TeX fonts and associated LaTeX packages. The
monospace font has been changed to better match the Times clone.
i.e. a list after versionchanged in latex.rst
Not sure if actually allowed to use a display after versionchanged?
html output fine
Reactions are currently unavailable