summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dtk/dtk-full.clo
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/dtk/dtk-full.clo')
-rw-r--r--Master/texmf-dist/tex/latex/dtk/dtk-full.clo31
1 files changed, 20 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/dtk/dtk-full.clo b/Master/texmf-dist/tex/latex/dtk/dtk-full.clo
index 27079527d6d..d9764fa1276 100644
--- a/Master/texmf-dist/tex/latex/dtk/dtk-full.clo
+++ b/Master/texmf-dist/tex/latex/dtk/dtk-full.clo
@@ -2,7 +2,7 @@
%%
%% LaTeX Class for ``Die TeXnische Komoedie''.
%%
-%% Copyright (C) 2015-
+%% Copyright (C) 2015-
%% Rolf Niepraschk, Herbert Voss
%%
%% It may be distributed and/or modified under the
@@ -14,7 +14,7 @@
%% version 2005/12/01 or later.
\ProvidesFile{dtk-full.clo}%
- [2015/10/14 v0.1e dtk class options for full mode (RN)]
+ [2016/04/12 v0.1f dtk class options for full mode (RN)]
\@ifclasslater{scrbook}{2015/09/29}{}{%
\ClassError{dtk2}{%
@@ -25,7 +25,16 @@
}
\RequirePackage{xcolor,multicol,graphicx,tabularx}
-\RequirePackage[showzone=false]{datetime2}
+\ifx\pdfvariable\undefined % altes LuaTeX oder kein LuaTeX
+ \usepackage[showzone=false]{datetime2}
+\else
+ \RequirePackage{luatex85}
+ \let\SAVE@pdfcreationdate=\pdfcreationdate
+ \edef\pdfcreationdate{\pdfcreationdate}
+ % v1.4 ist inkompatibel mit LuaTeX 0.95/luatex85
+ \usepackage[showzone=false]{datetime2}
+ \let\pdfcreationdate=\SAVE@pdfcreationdate
+\fi
\newcommand*\AutorenListenName{Autoren/Organisatoren} % auch »Stichwortverzeichnis«?
\newcommand*\DTK@fancyJournalname{%
@@ -391,21 +400,21 @@
}
\newcommand\rolllabel[1]{\hspace\labelsep \textbf{#1}\hfill}
-\RequirePackage{filecontents}
+\RequirePackage{shellesc,filecontents}
%% [#1]: Optionen für \includegraphics [#2]: Compiler #3: Dateiname
%%
\def\ErstelleGrafik{\@ifnextchar[{\ErstelleGrafik@i}{\ErstelleGrafik@i[]}}
\def\ErstelleGrafik@i[#1]{\@ifnextchar[{\ErstelleGrafik@ii[#1]}{%
\ErstelleGrafik@ii[#1][xelatex]}}%
\def\ErstelleGrafik@ii[#1][#2]#3{%
- \gdef\dtk@dateiname{#3}%
- \gdef\dtk@grafikOptionen{#1}%
- \ifx\relax#2\relax\gdef\dtk@compiler{xelatex}\else\gdef\dtk@compiler{#2}\fi
- \@nameuse{filecontents*}{#3.tex}}
+ \gdef\DTK@dateiname{#3}%
+ \gdef\DTK@grafikOptionen{#1}%
+ \ifx\relax#2\relax\gdef\DTK@compiler{xelatex}\else\gdef\DTK@compiler{#2}\fi
+ \@nameuse{filecontents*}{#3.tex}}%
\def\endErstelleGrafik{%
- \@nameuse{endfilecontents*}
- \immediate\write18{\dtk@compiler\space\dtk@dateiname}%
- \expandafter\includegraphics\expandafter[\dtk@grafikOptionen]{\dtk@dateiname}%
+ \@nameuse{endfilecontents*}%
+ \ShellEscape{\DTK@compiler\space\DTK@dateiname}%
+ \expandafter\includegraphics\expandafter[\DTK@grafikOptionen]{\DTK@dateiname}%
}
\providecommand*\InfoTeX{???}