mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Load graphicx without specifying the driver
This is issue #2164. On the current main TeX installations (TeXLive, MikTeX), \pdftexversion is defined also when running latex to produce dvi files. This commit deletes TeX code which resulted in the "pdftex" driver being always assumed, which made it a priori impossible to compile via latex. The graphicx packages is smart enough to detect correctly the driver (pdftex, xetex, ...) and defaults to dvips.
This commit is contained in:
parent
a4e37fe7bf
commit
297c164711
@ -58,12 +58,7 @@
|
||||
\fi
|
||||
\fi
|
||||
|
||||
% For graphicx, check if we are compiling under latex or pdflatex.
|
||||
\ifx\pdftexversion\undefined
|
||||
\usepackage{graphicx}
|
||||
\else
|
||||
\usepackage[pdftex]{graphicx}
|
||||
\fi
|
||||
\RequirePackage{graphicx}
|
||||
|
||||
% for PDF output, use colors and maximal compression
|
||||
\newif\ifsphinxpdfoutput\sphinxpdfoutputfalse
|
||||
|
Loading…
Reference in New Issue
Block a user