LaTeX: remove usage of \scalebox by incorporating scale in height/width

Closes: #5954
This commit is contained in:
jfbu
2019-01-14 16:04:04 +01:00
parent 06da488f6f
commit e7aee6e82a
3 changed files with 34 additions and 21 deletions

View File

@@ -1225,7 +1225,7 @@ def test_latex_image_in_parsed_literal(app, status, warning):
result = (app.outdir / 'Python.tex').text(encoding='utf8')
assert ('{\\sphinxunactivateextrasandspace \\raisebox{-0.5\\height}'
'{\\scalebox{2.000000}{\\sphinxincludegraphics[height=1cm]{{pic}.png}}}'
'{\\sphinxincludegraphics[height=2.00000cm]{{pic}.png}}'
'}AFTER') in result