Skip to content

Commit

Permalink
remove commented code, fix comments to document shell escape change
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Apr 16, 2024
1 parent c19880a commit 5a5f918
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions luatex.def
Original file line number Diff line number Diff line change
Expand Up @@ -651,16 +651,19 @@
}
% Load package epstopdf if
% a) LaTeX is running (plain TeX users are on their own),
% XXXb) and shell escape 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!
% If the .pdf is the source, rather than the .eps, you should put
% \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-esisting
% 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
Expand All @@ -680,11 +683,8 @@
\@ifpackageloaded{pst-pdf}{}{%
\@ifpackageloaded{pdftricks}{}{%
\@ifpackageloaded{graphics}{%
% \ifnum\directlua{tex.sprint(status.shell_escape)}>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
Expand Down
12 changes: 6 additions & 6 deletions pdftex.def
Original file line number Diff line number Diff line change
Expand Up @@ -652,16 +652,19 @@ E \else
}
% Load package epstopdf if
% a) LaTeX is running (plain TeX users are on their own),
% XXXb) 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!
% If the .pdf is the source, rather than the .eps, you should put
% \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-esisting
% 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
Expand All @@ -681,11 +684,8 @@ 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
Expand Down

0 comments on commit 5a5f918

Please sign in to comment.