From 595d37aac232836c0519c45f2078c5272122eb32 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 30 Jul 2023 03:01:36 +0000 Subject: CTAN sync 202307300301 --- usergrps/dante/dtk/dtk.cls | 50 ++++++++++++---------------------------------- 1 file changed, 13 insertions(+), 37 deletions(-) (limited to 'usergrps/dante/dtk/dtk.cls') diff --git a/usergrps/dante/dtk/dtk.cls b/usergrps/dante/dtk/dtk.cls index b2be0e2af8..032ed50ee1 100644 --- a/usergrps/dante/dtk/dtk.cls +++ b/usergrps/dante/dtk/dtk.cls @@ -23,35 +23,19 @@ \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\def\DTKversion{2.08n} -\def\DTKversiondate{2022/12/14} +\def\DTKversion{2.10a} +\def\DTKversiondate{2023/07/28} \ProvidesClass{dtk}[\DTKversiondate v\DTKversion dtk documentclass (RN)] -\@ifpackagelater{iftex}{2019/10/24}{% - \RequirePackage{ifxetex,ifluatex,ifpdf,ifvtex} -}{% - \RequirePackage{iftex} -} -\RequirePackage{luatex85} - -\newcommand*\DTK@engine{} +\RequirePackage{iftex} -\ifluatex - \def\DTK@engine{4}% LuaTeX -\else - \ifxetex - \def\DTK@engine{3}% XeTeX - \else - \ifpdf - \def\DTK@engine{2}% pdfTeX - \else - \ifvtex - \def\DTK@engine{1}% VTeX - \else - \def\DTK@engine{0}% TeX+dvips - \fi - \fi - \fi +\ifluatex\else + \ClassError{dtk}{% + LuaLaTeX ist erforderlich. + }{% + Kompiliere mit LuaLaTeX. + } + \expandafter\stop \fi \RequirePackage{xkeyval} @@ -119,6 +103,8 @@ \RequirePackage{scrhack}% Andere Pakete KOMA-Script-freundlich machen +\RequirePackage[final]{listings} + \RequirePackage{hvextern} % http://www.komascript.de/release3.18 @@ -189,11 +175,7 @@ \newcommand*\DTKttFontName{} \let\DTKttFontName=\DTK@FontNameMissing \newcommand*\DTKmathFontName{} \let\DTKmathFontName=\DTK@FontNameMissing -\ifnum\DTK@engine < 3 % - \input{dtk-old-engines.clo}% pdfTeX oder TeX+dvips oder VTeX -\else - \input{dtk-new-engines.clo}% LuaTeX oder XeTeX -\fi +\input{dtk-fonts.clo} \@ifpackagelater{csquotes}{2018/02/11}{}{% \def\@inpenc@undefined{} @@ -367,10 +349,6 @@ \colorlet{DTKlstNumbers}{black} \newcommand*\DTKlstKeywordfont{\bfseries} -%\RequirePackage[final]{listings} -\PassOptionsToPackage{final}{listings} -\RequirePackage{lstautogobble} - \@ifundefined{ifDTKrecord}{\newif\ifDTKrecord \DTKrecordfalse}{} \newcommand*\address[3]{% @@ -515,7 +493,6 @@ ,commentstyle=\DTKlstfont ,basewidth=0.55em ,keepspaces -,autogobble=false ,backgroundcolor=\color{DTKlstBackground} ,numbers=none ,frame=single @@ -551,7 +528,6 @@ ,emphstyle=\DTK@lst@colorbox{DTKlstBackground!70!-DTKlstBackground}% %,prebreak= ,postbreak=\mbox{$\hookrightarrow$} -,autogobble=true } \lstdefinestyle{number}{% TODO: Evtl. doch besser Zeilennummern ganz ausrücken? -- cgit v1.2.3