mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8797 from jfbu/latex_sphinxsafeincludegraphics_corebug
Latex sphinxsafeincludegraphics corebug
This commit is contained in:
commit
76bbaf7389
2
CHANGES
2
CHANGES
@ -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
|
||||||
--------
|
--------
|
||||||
|
@ -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}}%
|
||||||
|
Loading…
Reference in New Issue
Block a user