summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/graphics-def/pdftex.def
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-04-17 03:01:32 +0000
committerNorbert Preining <norbert@preining.info>2024-04-17 03:01:32 +0000
commit5e39b1cb205459cadf7e418c73567bf999923ce7 (patch)
treed679843a5c3b555a21dfab4f10c60eb59fa54510 /macros/latex/contrib/graphics-def/pdftex.def
parent9800bfd04f16cdf2663b542883c67de4d0926b21 (diff)
CTAN sync 202404170301
Diffstat (limited to 'macros/latex/contrib/graphics-def/pdftex.def')
-rw-r--r--macros/latex/contrib/graphics-def/pdftex.def17
1 files changed, 9 insertions, 8 deletions
diff --git a/macros/latex/contrib/graphics-def/pdftex.def b/macros/latex/contrib/graphics-def/pdftex.def
index 35eb376cfd..0c2afa3608 100644
--- a/macros/latex/contrib/graphics-def/pdftex.def
+++ b/macros/latex/contrib/graphics-def/pdftex.def
@@ -3,7 +3,7 @@
%% Hans Hagen, Heiko Oberdiek and
%% Martin Schr\"oder
%% Copyright (C) 2016-2018 LaTeX3 project and Heiko Oberdiek
-%% Copyright (C) 2018-2022 LaTeX3 project
+%% Copyright (C) 2018-2024 LaTeX3 project
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -20,7 +20,7 @@
%% https://github.com/latex3/graphics-def/issues
%%
\ProvidesFile{pdftex.def}
- [2022/09/22 v1.2b Graphics/color driver for pdftex]
+ [2024/04/13 v1.2c Graphics/color driver for pdftex]
\def\GPT@space{ }
\def\c@lor@arg#1{%
\dimen@#1\p@
@@ -652,9 +652,8 @@ E \else
}
% Load package epstopdf if
% a) LaTeX is running (plain TeX users are on their own),
-% b) and shell escape (\write18) is enabled (possibly restricted),
-% c) and \DoNotLoadEpstopdf either does not exist or is not \relax,
-% d) and neither pst-pdf nor pdftricks is loaded (by \begin{document}).
+% b) and \DoNotLoadEpstopdf either does not exist or is not \relax,
+% c) and neither pst-pdf nor pdftricks is loaded (by \begin{document}).
%
% In other words, by default .eps files will be automatically
% converted to .pdf files when outputting pdf. This can be wrong!
@@ -662,6 +661,10 @@ E \else
% \newcommand{\DoNotLoadEpstopdf}{}
% before even the \documentclass line of your document.
%
+% Earlier versions did not load epstopdf if shell escape was disabled.
+% Now load, for better error reporting and to allow inclusion of pre-existing
+% converted files: see gh/38
+%
% More information about the epstopdf run will be in the .log file;
% see http://ctan.org/pkg/epstopdf-pkg for more info about the
% epstopdf package itself. In turn, it calls the epstopdf script
@@ -681,11 +684,9 @@ E \else
\@ifpackageloaded{pst-pdf}{}{%
\@ifpackageloaded{pdftricks}{}{%
\@ifpackageloaded{graphics}{%
- \ifnum\pdfshellescape>0 %
- % only add .eps to file extension list if epstopdf is loaded
\edef\Gin@extensions{\Gin@extensions,.eps}%
\RequirePackage{epstopdf-base}[2009/07/12]%
- \fi}{}
+ }{}
}% pdftricks not loaded
}% pst-pdf not loaded
\fi