Merge pull request #8797 from jfbu/latex_sphinxsafeincludegraphics_corebug

Latex sphinxsafeincludegraphics corebug
This commit is contained in:
Takeshi KOMIYA 2021-01-31 18:10:50 +09:00 committed by GitHub
commit 76bbaf7389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,8 @@ Bugs fixed
* #8655: autodoc: Failed to generate document if target module contains an * #8655: autodoc: Failed to generate document if target module contains an
object that raises an exception on ``hasattr()`` object that raises an exception on ``hasattr()``
* C, ``expr`` role should start symbol lookup in the current scope. * 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 Testing
-------- --------

View File

@ -737,7 +737,7 @@
\AtBeginDocument{\spx@image@maxheight\textheight} \AtBeginDocument{\spx@image@maxheight\textheight}
% box scratch register % box scratch register
\newdimen\spx@image@box \newbox\spx@image@box
\newcommand*{\sphinxsafeincludegraphics}[2][]{% \newcommand*{\sphinxsafeincludegraphics}[2][]{%
% #1 contains possibly width=, height=, but no scale= since 1.8.4 % #1 contains possibly width=, height=, but no scale= since 1.8.4
\setbox\spx@image@box\hbox{\includegraphics[#1,draft]{#2}}% \setbox\spx@image@box\hbox{\includegraphics[#1,draft]{#2}}%