diff options
author | jfbu <jfbu@free.fr> | 2021-01-24 23:26:06 +0100 |
---|---|---|
committer | jfbu <jfbu@free.fr> | 2021-01-25 08:20:45 +0100 |
commit | a786f73d7f679fcbe758f76c05e71fcf846bf281 (patch) | |
tree | a251dadcc288c477454d80decf9307baa2dfc222 /sphinx/application.py | |
parent | 0ad32905bf6f49f9bc903a91bb13cb54ab95ee2a (diff) | |
download | sphinx-git-a786f73d7f679fcbe758f76c05e71fcf846bf281.tar.gz |
LaTeX: sync pdftex engine default imageresolution with pxunit
Closes: #8253
The 'pxunit' key from latex_elements instructs how to handle image
dimensions specified in px units.
But pdftex has \pdfimageresolution which is used when an image file does
not provide readable or legit values for the x and/or y resolution.
This commit syncs them: from 'pxunit' the default image resolution in
pixels per inch (an integer) is computed.
This way an image will behave the same if:
- it is loaded with no explicit size set, _and_ no readable image
resolution data is readable from the file (or that data matches the
'pxunit' setting)
- or a size is set in figure directive using px units and equal to the
natural pixel size of the image,
This also with 'lualatex' but is ignored by with 'xelatex' and
'uplatex'.
Diffstat (limited to 'sphinx/application.py')
0 files changed, 0 insertions, 0 deletions