summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dtk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-07-29 20:18:58 +0000
committerKarl Berry <karl@freefriends.org>2023-07-29 20:18:58 +0000
commita25d24a204482e704c98953c4f3124c5dd39c1bc (patch)
treebc3dc11db84380cd42d494aab0b97ce761853120 /Master/texmf-dist/tex/latex/dtk
parent7072ebae588f00ddc1f340882707597c46adc9c6 (diff)
dtk (29jul23)
git-svn-id: svn://tug.org/texlive/trunk@67766 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/dtk')
-rw-r--r--Master/texmf-dist/tex/latex/dtk/dtk-fonts.clo (renamed from Master/texmf-dist/tex/latex/dtk/dtk-new-engines.clo)0
-rw-r--r--Master/texmf-dist/tex/latex/dtk/dtk-full.clo32
-rw-r--r--Master/texmf-dist/tex/latex/dtk/dtk-old-engines.clo45
-rw-r--r--Master/texmf-dist/tex/latex/dtk/dtk.cls50
4 files changed, 34 insertions, 93 deletions
diff --git a/Master/texmf-dist/tex/latex/dtk/dtk-new-engines.clo b/Master/texmf-dist/tex/latex/dtk/dtk-fonts.clo
index be315410da8..be315410da8 100644
--- a/Master/texmf-dist/tex/latex/dtk/dtk-new-engines.clo
+++ b/Master/texmf-dist/tex/latex/dtk/dtk-fonts.clo
diff --git a/Master/texmf-dist/tex/latex/dtk/dtk-full.clo b/Master/texmf-dist/tex/latex/dtk/dtk-full.clo
index 914798bb038..df80821bd3a 100644
--- a/Master/texmf-dist/tex/latex/dtk/dtk-full.clo
+++ b/Master/texmf-dist/tex/latex/dtk/dtk-full.clo
@@ -14,7 +14,7 @@
%% version 2005/12/01 or later.
\ProvidesFile{dtk-full.clo}%
- [2022/05/08 v0.1p dtk class options for full mode (RN)]
+ [2023/07/25 v0.1r dtk class options for full mode (RN)]
\@ifclasslater{scrbook}{2015/09/29}{}{%
\ClassError{dtk}{%
@@ -25,9 +25,6 @@
}
\RequirePackage{xcolor,multicol,graphicx,tabularx}
-\edef\pdfcreationdate{\pdfcreationdate}
-% weil datetime2 inkompatible zu LuaTeX 0.95/luatex85,
-% standardmäßig ungünstige Defionition in luatex85
\RequirePackage[showzone=false]{datetime2}
\newcounter{dtk@example@counter}
@@ -123,18 +120,19 @@
\AtEndDocument{\immediate\closeout\user@bibs\relax}%
}
\renewcommand*\printbibliography[1][]{}%
- \newcommand*\DTK@addbibresource[2][]{%
+ \newcommand*\DTK@addbibresource[2][]{% Variant for recording run
\@ifundefined{BIBS:\the\c@artcounter}{%
- \def\DTK@tempa{}%
+ \def\DTK@tempa{}% no comma
\expandafter\let\csname BIBS:\the\c@artcounter\endcsname\@empty
- }{\def\DTK@tempa{,}}%
- % Collect all bib filenames as comma list for \newrefsection
+ }{\def\DTK@tempa{,}}% comma
+ % Collect all bib filenames in macro \BIBS:? as comma list for \newrefsection
\expandafter\g@addto@macro\csname BIBS:\the\c@artcounter
\expandafter\endcsname\expandafter{\DTK@tempa #2}%
+ % Write current (local) \addbibresource command to file `dtk-userbibs.tex'
\immediate\write\user@bibs{%
\string\addbibresource\ifx\relax#1\relax\else[#1]\fi{#2}%
\@percentchar\space \DTK@local@inputname
- }%
+ }%
}%
\def\DTK@@usepackage#1#2[#3]{%
\edef\@tempb{\zap@space#2 \@empty}%
@@ -192,7 +190,7 @@
\AtBeginDocument{\DTK@backside}%
\def\DTK@@usepackage#1#2[#3]{}%
\def\DTK@@RequirePackage#1#2[#3]{}%
- \newcommand*\DTK@addbibresource[2][]{}%
+ \newcommand*\DTK@addbibresource[2][]{}% Variant for the document run
\newcommand*\ORIG@printbibliography{}
\let\ORIG@printbibliography=\printbibliography
\renewcommand*\printbibliography[1][]{\ORIG@printbibliography[heading=dtk]%
@@ -276,7 +274,18 @@
\c@table=\z@
\c@equation=\z@
\ifDTKrecord
- \gdef\document{\endgroup\endinput}%
+ \gdef\document{%
+ % Write current macro definition of \BIBS:? (complete bibfile list)
+ % to file `dtk-userbibs.tex'
+ \@ifundefined{BIBS:\the\c@artcounter}{}{%
+ \immediate\write\user@bibs{%
+ \string\@namedef{BIBS:\the\c@artcounter}%
+ {\@nameuse{BIBS:\the\c@artcounter}}%
+ \@percentchar\space\DTK@local@inputname
+ }%
+ }%
+ \endgroup\endinput
+ }%
\global\let\blx@warn@auxlist=\relax
\else
\renewenvironment{document}{%
@@ -285,6 +294,7 @@
\DTK@embedded@enddocumenthook\mbox{}\endinput
}%
\fi
+ % Macro \BIBS:? may have been defined by `dtk-userbibs.tex'
\@ifundefined{BIBS:\the\c@artcounter}{%
\input{\DTK@local@inputname}%
}{%
diff --git a/Master/texmf-dist/tex/latex/dtk/dtk-old-engines.clo b/Master/texmf-dist/tex/latex/dtk/dtk-old-engines.clo
deleted file mode 100644
index 6398c7b5a19..00000000000
--- a/Master/texmf-dist/tex/latex/dtk/dtk-old-engines.clo
+++ /dev/null
@@ -1,45 +0,0 @@
-
-%% This is file `dtk-old-engines.clo',
-%%
-%% LaTeX Class for ``Die TeXnische Komoedie''.
-%%
-%% Copyright (C) 2015-
-%% Rolf Niepraschk, Herbert Voss
-%%
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3c
-%% of this license or (at your option) any later version.
-%% The latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3c or later is part of all distributions of LaTeX
-%% version 2005/12/01 or later.
-
-\ProvidesFile{dtk-old-engines.clo}%
- [2021/11/12 v0.1f dtk class options for pdfTeX/TeX+dvips (RN)]
-
-\typeout{OLD-ENGINE}
-
-\RequirePackage[utf8]{inputenc}
-\RequirePackage[T1]{fontenc}
-\RequirePackage{textcomp}
-\DeclareUnicodeCharacter{20AC}{\DTK@euro}
-
-\InputIfFileExists{dtk-fonts.cfg}{%
- \typeout{*************************************^^J%
- * File `dtk-fonts.cfg' used.^^J%
- *************************************}%
-}{%
- \RequirePackage[lining=true]{libertine}%
- \def\DTKrmFontName{Linux Libertine}%
- \def\DTKsfFontName{Linux Biolinum}%
- \RequirePackage[scale=0.833,ttdefault=true]{AnonymousPro}%
- \def\DTKttFontName{Anonymous Pro}%
- %\RequirePackage[scaled=0.83]{DejaVuSansMono}%
- %\def\DTKttFontName{DejaVu Mono}%
- %
- \def\DTKmathFontName{Computer Modern Math}% ???
-}
-
-\babelprovide[hyphenrules=ngerman-x-latest]{ngerman}
-
-\endinput
diff --git a/Master/texmf-dist/tex/latex/dtk/dtk.cls b/Master/texmf-dist/tex/latex/dtk/dtk.cls
index b2be0e2af85..032ed50ee15 100644
--- a/Master/texmf-dist/tex/latex/dtk/dtk.cls
+++ b/Master/texmf-dist/tex/latex/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?