diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/dtk/dtk-full.clo')
-rw-r--r-- | Master/texmf-dist/tex/latex/dtk/dtk-full.clo | 91 |
1 files changed, 48 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/dtk/dtk-full.clo b/Master/texmf-dist/tex/latex/dtk/dtk-full.clo index d9764fa1276..dbc5febb551 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}% - [2016/04/12 v0.1f dtk class options for full mode (RN)] + [2016/12/06 v0.1h dtk class options for full mode (RN)] \@ifclasslater{scrbook}{2015/09/29}{}{% \ClassError{dtk2}{% @@ -25,16 +25,10 @@ } \RequirePackage{xcolor,multicol,graphicx,tabularx} -\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 +\edef\pdfcreationdate{\pdfcreationdate} +% weil datetime2 inkompatible zu LuaTeX 0.95/luatex85, +% standardmäßig ungünstige Defionition in luatex85 +\usepackage[showzone=false]{datetime2} \newcommand*\AutorenListenName{Autoren/Organisatoren} % auch »Stichwortverzeichnis«? \newcommand*\DTK@fancyJournalname{% @@ -61,14 +55,6 @@ \edef\DTKcorrVersion{\noexpand\normalfont \noexpand\fcolorbox{black}{DTK@marker}{Korrekturversion: \DTMnow}}% \overfullrule=5pt % - \RequirePackage[pagewise]{lineno}% - \linenumbers - \linenumbersep=.8ex % - \def\linenumberfont{\normalfont\footnotesize\ttfamily}% - \def\thelinenumber{% - \fboxsep=.3ex % - \fcolorbox{black}{DTK@marker}{\@arabic{\c@page}-\@arabic{\c@linenumber}}% - }% \fi \@ifundefined{@LN}{\let\@LN=\@gobbletwo}{}% @@ -149,7 +135,7 @@ \newcommand*\DTK@addbibresource[2][]{}% \newcommand*\ORIG@printbibliography{} \let\ORIG@printbibliography=\printbibliography - \renewcommand*\printbibliography[1][]{\DTK@bib@true}% + \renewcommand*\printbibliography[1][]{\ORIG@printbibliography[heading=dtk]} \RequirePackage[split,protected]{splitidx} \makeindex \newindex[\AutorenListenName]{autoren}% \newcommand*\AutorenListe{% @@ -160,16 +146,22 @@ \printindex[autoren]% \endgroup }% + \RequirePackage{trimspaces} \newcommand\DTK@Author@list[3]{% TODO: Auch "!" und "|" maskieren? \begingroup + \setbox\DTK@tempbox\hbox{\trim@spaces{#3}}% \def\Email##1{\escape@atsign##1\relax}% herausziehen?! \def\escape@atsign##1@##2\relax{% \noexpand\Email\string{##1\string"@##2\string}% - } + }% \makeatletter - \scantokens{\protected@edef\x{% - \noexpand\sindex[autoren]{#2#1@#1 #2!#3}}}% - \x + \ifdim\wd\DTK@tempbox>\z@ + \scantokens{\protected@edef\x{% + \noexpand\sindex[autoren]{#2#1@#1 #2!#3}}}% + \x + \else + \sindex[autoren]{#2#1@#1 #2!\textcolor{red}{\huge???}}% + \fi \endgroup }% \let\DTK@Author=\DTK@Author@list @@ -204,7 +196,6 @@ \let\documentclass=\DTK@documentclass \let\usepackage=\DTK@usepackage \let\addbibresource=\DTK@addbibresource - \DTK@bib@false \c@footnote=\z@ \c@lstlisting=\z@ \c@figure=\z@ @@ -214,7 +205,6 @@ \ifDTKrecord\endgroup\expandafter\endinput\fi \DTK@embedded@begindocumenthook\ignorespaces }{% - \ifDTK@bib@\ORIG@printbibliography[heading=dtk]\fi \DTK@embedded@enddocumenthook\endinput }% \refsection[DTK\the\c@refsection]% @@ -299,6 +289,38 @@ }]{dtk-title-content} \DeclareNewPageStyleByLayers{dtk-title}{dtk-title-content} +\ifDTK@korr@% === Positionsnummern am linken Rand === + \newcommand*\formatPosNumber[1]{% + \fboxsep=.2em % + \fbox{\ifnum\arabic{page}<10 0\fi\arabic{page}-\ifnum#1<10 0\fi\@arabic{#1}}% + } + \newcommand\makePosNumbers[2]{% + \settoheight\DTK@tempdimc{\formatPosNumber{9}}% + \DTK@tempdimc=1.5\DTK@tempdimc + \DTK@tempdimd=0pt % + \DTK@tempdimb=#2 % + \@tempcnta=0 % + \@whiledim \dimexpr\DTK@tempdimd+.5\DTK@tempdimc < \textheight\do{% + \advance\@tempcnta 1 % + \DTK@tempdimb=\dimexpr\DTK@tempdimb-\DTK@tempdimc + \DTK@tempdimd=\dimexpr\DTK@tempdimd+\DTK@tempdimc + \put(#1,\DTK@tempdimb){\formatPosNumber{\@tempcnta}}% + }% + } + \DeclareNewLayer[textarea,background,mode=picture,contents={% + \begingroup + \ttfamily\scriptsize\itshape + \settowidth\DTK@tempdimc{\formatPosNumber{99}}% + \DTK@tempdima=\dimexpr-.5\textwidth-\DTK@tempdimc-.8em % + \putC{% + \makePosNumbers{\DTK@tempdima}{.5\textheight}% + }% + \endgroup + }]{dtk-line-positions} + \AddLayersToPageStyle{scrheadings}{dtk-line-positions} + \AddLayersToPageStyle{plain.scrheadings}{dtk-line-positions} +\fi + \deftriplepagestyle{dtk-toc}% {}{\DTK@toc@head}{}% {}{\hfill\normalsize\DTKcorrVersion\hfill\null}{} @@ -400,23 +422,6 @@ } \newcommand\rolllabel[1]{\hspace\labelsep \textbf{#1}\hfill} -\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}}% -\def\endErstelleGrafik{% - \@nameuse{endfilecontents*}% - \ShellEscape{\DTK@compiler\space\DTK@dateiname}% - \expandafter\includegraphics\expandafter[\DTK@grafikOptionen]{\DTK@dateiname}% -} - \providecommand*\InfoTeX{???} \newcommand*\MitarbeiterListe{} |