Skip to content

Commit

Permalink
Merge pull request #8760 from jfbu/pdftex_8253
Browse files Browse the repository at this point in the history
LaTeX: sync pdftex engine default imageresolution with pxunit
  • Loading branch information
tk0miya authored Jan 25, 2021
2 parents 934dd62 + a786f73 commit 77fad1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ Bugs fixed
``:unknown:doc:``)
* #8711: LaTeX: backticks in code-blocks trigger latexpdf build warning (and font
change) with late TeXLive 2019
* #8253: LaTeX: Figures with no size defined get overscaled (compared to images
with size explicitly set in pixels) (fixed for ``'pdflatex'/'lualatex'`` only)

Testing
--------
Expand Down
3 changes: 3 additions & 0 deletions sphinx/templates/latex/latex.tex_t
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
\ifdefined\pdfpxdimen
\let\sphinxpxdimen\pdfpxdimen\else\newdimen\sphinxpxdimen
\fi \sphinxpxdimen=<%= pxunit %>\relax
\ifdefined\pdfimageresolution
\pdfimageresolution= \numexpr \dimexpr1in\relax/\sphinxpxdimen\relax
\fi
<% if use_xindy -%>
%% turn off hyperref patch of \index as sphinx.xdy xindy module takes care of
%% suitable \hyperpage mark-up, working around hyperref-xindy incompatibility
Expand Down

0 comments on commit 77fad1e

Please sign in to comment.