From dd8e79e7fcb8e2f0ef1e47dd1b4f16deb1890eaa Mon Sep 17 00:00:00 2001 From: jfbu Date: Sun, 31 Jan 2021 09:53:09 +0100 Subject: [PATCH 1/2] Fix #8796: define \spx@image@box as a box not a dimen! This bug was introduced at 2.0 (commit 669f9c3a) (sorry) --- sphinx/texinputs/sphinx.sty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 4b637a9ec..08cf14db7 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -737,7 +737,7 @@ \AtBeginDocument{\spx@image@maxheight\textheight} % box scratch register -\newdimen\spx@image@box +\newbox\spx@image@box \newcommand*{\sphinxsafeincludegraphics}[2][]{% % #1 contains possibly width=, height=, but no scale= since 1.8.4 \setbox\spx@image@box\hbox{\includegraphics[#1,draft]{#2}}% From 567cc4fb7b6372d286533b6b9a88f454081ed351 Mon Sep 17 00:00:00 2001 From: jfbu Date: Sun, 31 Jan 2021 09:58:06 +0100 Subject: [PATCH 2/2] Update CHANGES --- CHANGES | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index bbf710f02..b57c28f33 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,8 @@ Bugs fixed * #8655: autodoc: Failed to generate document if target module contains an object that raises an exception on ``hasattr()`` * C, ``expr`` role should start symbol lookup in the current scope. +* #8796: LaTeX: potentially critical low level TeX coding mistake has gone + unnoticed so far Testing --------