diff options
Diffstat (limited to 'usergrps/dante/dtk/dtk-full.clo')
-rw-r--r-- | usergrps/dante/dtk/dtk-full.clo | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/usergrps/dante/dtk/dtk-full.clo b/usergrps/dante/dtk/dtk-full.clo index 914798bb03..df80821bd3 100644 --- a/usergrps/dante/dtk/dtk-full.clo +++ b/usergrps/dante/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}% }{% |