summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty474
1 files changed, 430 insertions, 44 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty b/Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty
index b2890d7f443..54966933eac 100644
--- a/Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty
+++ b/Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty
@@ -4,14 +4,18 @@
%%
%% The original source files were:
%%
-%% tudscr-version.dtx (with options: `package,comp,base')
-%% tudscr-comp.dtx (with options: `package,comp,base,identify')
+%% tudscr-version.dtx (with options: `package,comp,identify')
+%% tudscr-comp.dtx (with options: `package,comp,identify')
+%% tudscr-comp.dtx (with options: `package,comp,option')
+%% tudscr-misc.dtx (with options: `package,comp,execute')
+%% tudscr-comp.dtx (with options: `package,comp,body')
%%
%% TUD-Script -- Corporate Design of Technische Universitaet Dresden
+%% 2022/08/09 v2.06o TUD-Script
%%
-%% 2021/07/15 v2.06n TUD-Script
-%%
-%% Copyright (C) Falk Hanisch <hanisch.latex@outlook.com>, 2012-2021
+%% Copyright (C) Falk Hanisch <hanisch.latex@outlook.com>, 2012-2022
+%% https://github.com/tud-cd/tudscr
+%% https://latex.wcms-file3.tu-dresden.de/phpBB3/
%%
%% This file was generated from file(s) of the TUD-Script bundle.
%% ----------------------------------------------------------------------------
@@ -27,65 +31,447 @@
%%
%% The current maintainer and author of this work is Falk Hanisch.
%%
-%%% From File: tudscr-version.dtx
+%%%% From File: tudscr-version.dtx (no git version info was found)
+\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\begingroup
- \catcode`\@11\relax
- \ifx\TUD@Version\@undefined
- \newcommand*\TUD@Version@Check[1]{%
+ \catcode`\@11\relax%
+ \ifx\TUD@Version\@undefined%
+ \newcommand*\TUD@@Version[2]{%
\gdef\TUD@Version{#1}%
- \gdef\TUDScriptVersion{#1}%
- \def\@tempb##1 v##2 ##3\relax##4\relax{\gdef\TUDScriptVersionNumber{##2}}%
- \edef\@tempa{\TUD@Version}%
- \expandafter\@tempb\@tempa\relax? ? \relax\relax%
- \gdef\TUD@Version@KOMA{3.32}%
- }
- \else
- \newcommand*\TUD@Version@Check[1]{%
+ \gdef\TUD@KOMAVersion{#2}%
+ }%
+ \else%
+ \newcommand*\TUD@@Version[2]{%
\def\@tempa{#1}%
\ifx\TUD@Version\@tempa\else%
\@latex@warning@no@line{%
\noexpand\TUD@Version\space is `\TUD@Version',\MessageBreak%
but `#1' was expected!\MessageBreak%
You should not use classes, packages or files from\MessageBreak%
- different TUD-Script-Bundle versions%
+ different TUD-Script bundle versions%
}%
\fi%
- }
- \fi
- \TUD@Version@Check{2021/07/15 v2.06n TUD-Script}
+ }%
+ \fi%
+ \TUD@@Version{2022/08/09 v2.06o TUD-Script}{2022/05/01 v3.36 KOMA-Script}%
+ \ifx\TUDScriptVersion\@undefined%
+ \xdef\TUDScriptVersion{\TUD@Version}%
+ \def\@tempa#1 v#2 #3\relax#4\relax#5{\gdef#5{#2}}%
+ \expandafter\@tempa\TUD@Version ? ?\relax\relax{\TUDScriptVersionNumber}%
+ \expandafter\@tempa\TUD@KOMAVersion ? ?\relax\relax{\TUD@KOMAVersionNumber}%
+ \fi%
\endgroup
-\NeedsTeXFormat{LaTeX2e}[2019/10/01]
-\providecommand*\tudscrmail{hanisch.latex@outlook.com}
-\ifx\TUD@Class@Name\@undefined
- \PackageError{%
- tudscrcomp%
- }{Unsupported class found}{%
- This package can only be used with a class out of the\MessageBreak%
- tudscr bundle (tudscrbook, tudscrreprt, tudscrartcl, tudscrposter).%
- }%
- \endinput%
-\fi
\@ifundefined{TUDScript}{%
\DeclareRobustCommand\TUDScript{%
- \textsf{%
- T\kern.05em U\kern.05em D\kern.1em-\kern.1em Script%
- }%
- \ifcsname xspace\endcsname%
- \xspace%
- \fi%
+ \mbox{%
+ \textsf{%
+ T\kern.05em U\kern.05em D\kern.1em-\kern.1em Script%
+ }%
+ }\ifcsname xspace\endcsname\xspace\fi%
}%
}{}
-%%% From File: tudscr-comp.dtx
-\ProvidesPackage{tudscrcomp}[%
- 2021/07/15 v2.06n TUD-Script
+\providecommand*\TUDScriptContact{hanisch.latex@outlook.com}
+\providecommand*\TUDScriptRepository{https://github.com/tud-cd/tudscr}
+\providecommand*\TUDScriptForum{https://latex.wcms-file3.tu-dresden.de/phpBB3/}
+\providecommand*\TUD@Class@Check[1]{%
+ \ifx\TUD@Class@Name\@undefined%
+ \PackageError{#1}{TUD-Script class not loaded}{%
+ This package requires a class of the TUD-Script bundle\MessageBreak%
+ (tudscrbook, tudscrreprt, tudscrartcl, tudscrposter).%
+ }%
+ \DeclareOption*{}%
+ \ProcessOptions\relax%
+ \expandafter\endinput%
+ \fi%
+}%
+%%%% From File: tudscr-comp.dtx (no git version info was found)
+\ProvidesPackage{tudscrcomp}%
+[%
+ 2022/08/09 v2.06o TUD-Script
package
(compatibility for old tud(scr) classes)%
]
-\PassOptionsToPackage{oldcolors}{tudscrcolor}
+\TUD@Class@Check{tudscrcomp}
+\@tud@res@swafalse%
+\newcommand*\tud@comp@on@main@class{\@gobble}
+\@tfor\tud@res@a:={tudscrbook}{tudscrreprt}{tudscrartcl}\do{%
+ \@ifclassloaded{\tud@res@a}{\@tud@res@swatrue}{}%
+ \if@tud@res@swa%
+ \renewcommand*\tud@comp@on@main@class{\@firstofone}%
+ \@break@tfor%
+ \fi%
+}%
+\newcommand*\tud@comp@on@poster@class{\@gobble}
\@ifclassloaded{tudscrposter}{%
- \RequirePackageWithOptions{tudscrcomp-poster}[\TUD@Version]%
+ \renewcommand*\tud@comp@on@poster@class{\@firstofone}%
+}{}%
+%%%% From File: tudscr-comp.dtx (no git version info was found)
+\PassOptionsToPackage{extended}{tudscrcolor}
+\TUD@key{colortitle}[true]{%
+ \TUD@set@ifkey{colortitle}{@tempswa}{#1}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed%
+ \if@tempswa%
+ \TUDoptions{cdtitle=color}%
+ \else%
+ \TUDoptions{cdtitle=true}%
+ \fi%
+ \fi%
+}
+\TUD@key{nocolortitle}[true]{%
+ \TUD@set@ifkey{nocolortitle}{@tempswa}{#1}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed%
+ \if@tempswa%
+ \TUDoptions{cdtitle=true}%
+ \else%
+ \TUDoptions{cdtitle=color}%
+ \fi%
+ \fi%
+}
+\TUD@key{ddcfooter}[true]{%
+ \TUD@set@ifkey{ddcfooter}{@tempswa}{#1}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed%
+ \if@tempswa%
+ \TUDoptions{ddcfoot=true}%
+ \else%
+ \TUDoptions{ddcfoot=false}%
+ \fi%
+ \fi%
+}
+\tud@comp@on@poster@class{%
+\tud@newif\if@tud@comp@loadpackages
+\TUD@key{loadpackages}[true]{%
+ \TUD@set@ifkey{loadpackages}{@tud@comp@loadpackages}{#1}%
+}
+\AtEndPreamble{\TUD@key@toolate{loadpackages}}
+}
+\tud@comp@on@poster@class{%
+\TUD@key{bluebg}[true]{%
+ \TUD@set@ifkey{bluebg}{@tempswa}{#1}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed%
+ \if@tempswa%
+ \TUDoptions{backcolor=true}%
+ \else%
+ \TUDoptions{backcolor=false}%
+ \fi%
+ \fi%
+}
+}
+\tud@comp@on@poster@class{%
+\PassOptionsToPackage{table}{xcolor}
+}
+\tud@comp@on@poster@class{%
+\newcommand*\tud@cropmargin@set{}%
+\preto\tud@cdgeometry@@init{\tud@cropmargin@set}%
+\TUD@key{cropmargin}[5mm]{%
+ \TUD@set@dimkey[mm]{cropmargin}{\@tempa}{#1}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed%
+ \edef\tud@cropmargin@set{%
+ \noexpand\geometry{%
+ papersize={%
+ \the\dimexpr(\@tempa)*2+\paperwidth\relax,%
+ \the\dimexpr(\@tempa)*2+\paperheight\relax%
+ },%
+ layoutsize={\the\paperwidth,\the\paperheight},%
+ layoutoffset=\the\dimexpr\@tempa\relax,%
+ showcrop%
+ }%
+ }%
+ \fi%
+}
+\AtEndPreamble{\TUD@key@toolate{cropmargin}}%
+\preto\tud@cdgeometry@init{%
+ \ifundef{\schnittrand}{}{%
+ \TUDoptions{cropmargin=\schnittrand}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed\else%
+ \PackageErrorNoLine{tudscrcomp}{%
+ Wrong definition for `\string\schnittrand'%
+ }{%
+ The definition of `\string\schnittrand' does not expand\MessageBreak%
+ to a valid dimension expression.%
+ }%
+ \fi%
+ }%
+}
+}
+\tud@comp@on@poster@class{%
+\tud@newif\if@tud@mathfoot
+\TUD@key{tudmathfoot}[true]{%
+ \TUD@set@ifkey{tudmathfoot}{@tud@mathfoot}{#1}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed%
+ \if@tud@mathfoot%
+ \footcontent[\small]{%
+ \tud@footcontent@@left{}%
+ }[%
+ \tud@footcontent@@right{}{}%
+ ]%
+ \else%
+ \footcontent{%
+ \tud@footcontent@@left{\contactname}%
+ }[%
+ \tud@footcontent@@right{\authorname}{\contactpersonname}%
+ ]%
+ \fi%
+ \fi%
+}
+\TUD@key{tudmathposterfoot}[true]{\TUDoptions{tudmathfoot=#1}}%
+\TUD@key{cdfoot}{%
+ \TUD@set@numkey{cdfoot}{@tempa}{%
+ {tudscrposter}{0},{tudscrposterfoot}{0},{cdposter}{0},{tudscr}{0},%
+ {tudmathposter}{1},{tudmathfoot}{1},{tudmathposterfoot}{1},{tudmath}{1}%
+ }{#1}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed%
+ \ifcase\@tempa\relax% tudscrposter
+ \TUDoptions{tudmathfoot=false}%
+ \else% tudmathposter
+ \TUDoptions{tudmathfoot=true}%
+ \fi%
+ \fi%
+}
+}
+%%%% From File: tudscr-misc.dtx (no git version info was found)
+\TUDExecuteOptions{%
+}
+\DeclareOption*{\expandafter\TUDoptions\expandafter{\CurrentOption}}
+\TUDProcessOptions\relax
+%%%% From File: tudscr-comp.dtx (no git version info was found)
+\newcommand*\einrichtung{\faculty}
+\newcommand*\fachrichtung{\department}
+\newcommand*\institut{\institute}
+\newcommand*\professur{\chair}
+\newcommand*\moreauthor{\authormore}
+\newcommand*\tudfont{\cdfont}
+\newcommand*\dinBold{\dinbn}
+\newcommand*\dinfamily{\dinbn}
+\tud@comp@on@main@class{%
+\newcommand*\submitdate{\date}
+\newcommand*\submittedon[1]{\gdef\datetext{#1}}
+\newcommand*\supervisorII[1]{\g@addto@macro\@supervisor{\and\space#1}}
+\newcommand*\supervisedby[1]{\gdef\supervisorname{#1}}
+\newcommand*\supervisedIIby[1]{\gdef\supervisorothername{#1}}
+\newcommand*\dissertation{%
+ \thesis{\dissertationname}%
+ \let\supervisorname\refereename%
+ \let\supervisorothername\refereeothername%
+}
+\tud@newif\if@tud@comp@chapterpage
+\newcommand*\chapterpage{%
+ \global\@tud@comp@chapterpagetrue%
+ \tud@comp@chapterpage@wrn%
+}
+\newcommand*\tud@comp@chapterpage@set{%
+ \if@tud@comp@chapterpage%
+ \if@tud@chapterpage%
+ \TUDoptions{chapterpage=false}%
+ \else%
+ \TUDoptions{chapterpage=true}%
+ \fi%
+ \fi%
+}
+\newcommand*\tud@comp@chapterpage@unset{%
+ \tud@comp@chapterpage@set%
+ \global\@tud@comp@chapterpagefalse%
+}
+\newcommand*\tud@comp@chapterpage@wrn{%
+ \PackageWarning{tudscrcomp}{%
+ The command `\string\chapterpage'\space is not\MessageBreak%
+ recommended. You should use the same style for\MessageBreak%
+ chapters throughout the document%
+ }%
+ \global\let\tud@comp@chapterpage@wrn\relax%
+}
+\AtEndPreamble{%
+ \ifundef{\if@chapter}{%
+ \newif\if@chapter%
+ \ifundef{\chapter}{\@chapterfalse}{\@chaptertrue}%
+ }{}%
+ \if@chapter%
+ \pretocmd\tud@chapter@pre{%
+ \tud@comp@chapterpage@set%
+ }{}{\tud@patch@wrn{tud@chapter@pre}}%
+ \apptocmd\tud@chapter@app{%
+ \tud@comp@chapterpage@unset%
+ }{}{\tud@patch@wrn{tud@chapter@app}}%
+ \else%
+ \renewcommand*\tud@comp@chapterpage@wrn{%
+ \PackageWarning{tudscrcomp}{%
+ The command `\string\chapterpage'\space is not\MessageBreak%
+ active as the used document class does not provide\MessageBreak%
+ any chapters via `\string\chapter'%
+ }%
+ \global\let\tud@comp@chapterpage@wrn\relax%
+ }%
+ \fi%
+}
+\AfterEndPreamble{%
+ \ifundef{\theglossary}{%
+ \providecommand*\glossaryname{Glossar}%
+ \newenvironment{theglossary}[1][]{%
+ \PackageWarning{tudscrcomp}{%
+ Using the environment `theglossary' is not\MessageBreak%
+ recommended. You should rather use an appropriate\MessageBreak%
+ package such as glossaries%
+ }%
+ \let\bibname\glossaryname%
+ \bib@heading%
+ #1%
+ \list{}{%
+ \setlength\labelsep{\z@}%
+ \setlength\labelwidth{\z@}%
+ \setlength\itemindent{-\leftmargin}%
+ }%
+ }{\endlist}%
+ \newcommand\glossitem[1]{\item[] #1\par}%
+ }{}%
+}
+}
+\tud@comp@on@poster@class{%
+\AtEndPreamble{%
+ \if@tud@comp@loadpackages%
+ \RequirePackage{calc}
+ \RequirePackage{textcomp}
+ \RequirePackage{tabularx}
+ \fi%
+}
+}
+\tud@comp@on@poster@class{%
+\newcommand*\ps@tudposter{}
+\let\ps@tudposter\ps@empty
+\AfterPackage*{scrlayer-scrpage}{%
+ \DeclarePageStyleAlias{tudposter}{empty.tudheadings}%
+}
+\newrobustcmd*\telefon{\telephone}
+\patchcmd\tud@split@author@list
+ {telephone}
+ {telephone,telefon}
+ {}{\tud@patch@wrn{tud@split@author@list}}
+\newrobustcmd*\fax{\telefax}
+\patchcmd\tud@split@author@list
+ {telefax}
+ {telefax,fax}
+ {}{\tud@patch@wrn{tud@split@author@list}}
+\newrobustcmd*\email[1]{\emailaddress*{#1}}
+\patchcmd\tud@split@author@list
+ {emailaddress}
+ {emailaddress,email}
+ {}{\tud@patch@wrn{tud@split@author@list}}
+\newcommand*\homepage[1]{\webpage*{#1}}
+\newcommand*\zweitlogofile[2][]{\headlogo[{#1}]{#2}}
+\newcommand*\zweitlogo[1]{%
+ \PackageWarning{tudscrcomp}{%
+ It isn't possible to redefine the definition for\MessageBreak%
+ including a logo in the header. Please see the\MessageBreak%
+ documentation of \string\headlogo%
+ }%
+}
+\newcommand*\institutslogofile[2][]{\footlogo[{#1}]{,,,,,,,#2,}}
+\newcommand*\institutslogo[1]{%
+ \PackageWarning{tudscrcomp}{%
+ It isn't possible to redefine the definition for\MessageBreak%
+ including a logo in the footer. Please see the\MessageBreak%
+ documentation of \string\footlogo%
+ }%
+}
+\newcommand*\drittlogofile[1]{%
+ \PackageWarning{tudscrcomp}{%
+ Nothing happened, you should use \string\footlogo\MessageBreak%
+ instead. Please see the documentation of \string\footlogo\MessageBreak%
+ and option `ddc' or `ddcfoot'%
+ }%
+}
+\newcommand*\drittlogo[1]{%
+ \PackageWarning{tudscrcomp}{%
+ It isn't possible to redefine the definition for\MessageBreak%
+ including a logo in the footer. Please see the\MessageBreak%
+ documentation of \string\footlogo\space and option\MessageBreak%
+ `ddc' or `ddcfoot'%
+ }%
+}
+\newcommand*\topsectionnumdepth{\sectionnumdepth}
+\newcommand*\scr@topsection@sectionindent{\scr@section@sectionindent}
+\newcommand*\scr@topsection@beforeskip{\scr@section@beforeskip}
+\newcommand*\scr@topsection@afterskip{\scr@section@afterskip}
+\newcommand*\topsectiontocdepth{\sectiontocdepth}
+\newcommand*\scr@topsection@tocindent{\scr@section@tocindent}
+\newcommand*\scr@topsection@tocnumwidth{\scr@section@tocnumwidth}
+\newcommand*\l@topsection{\l@section}
+\DeclareNewSectionCommand[%
+ style=section,%
+ font={\usekomafont{section}},%
+ beforeskip=\z@,%
+]{topsection}
+\let\c@topsection\c@section
+\newcommand*\topsubsectionnumdepth{\subsectionnumdepth}
+\newcommand*\scr@topsubsection@sectionindent{\scr@subsection@sectionindent}
+\newcommand*\scr@topsubsection@beforeskip{\scr@subsection@beforeskip}
+\newcommand*\scr@topsubsection@afterskip{\scr@subsection@afterskip}
+\newcommand*\topsubsectiontocdepth{\subsectiontocdepth}
+\newcommand*\scr@topsubsection@tocindent{\scr@subsection@tocindent}
+\newcommand*\scr@topsubsection@tocnumwidth{\scr@subsection@tocnumwidth}
+\newcommand*\l@topsubsection{\l@subsection}
+\DeclareNewSectionCommand[%
+ style=section,%
+ font={\usekomafont{subsection}},%
+ beforeskip=\z@,%
+]{topsubsection}
+\let\c@topsubsection\c@subsection
+\NewDocumentCommand\centersection{o m}{%
+ \tud@comp@centersection{section}{#1}{#2}%
+}
+\NewDocumentCommand\centersubsection{o m}{%
+ \tud@comp@centersection{subsection}{#1}{#2}%
+}
+\NewDocumentCommand\topcentersection{o m}{%
+ \tud@comp@centersection{topsection}{#1}{#2}%
+}
+\NewDocumentCommand\topcentersubsection{o m}{%
+ \tud@comp@centersection{topsubsection}{#1}{#2}%
+}
+\newcommand*\tud@comp@centersection[3]{%
+ \tud@cs@store{raggedsection}%
+ \let\raggedsection\centering%
+ \IfValueTF{#2}{%
+ \csuse{#1}[{#2}]{#3}%
+ }{%
+ \csuse{#1}{#3}%
+ }
+ \tud@cs@restore{raggedsection}%
+}
+\newcommand\sectiontopskip{\scr@section@beforeskip}
+\newcommand\subsectiontopskip{\scr@subsection@beforeskip}
+\setcounter{secnumdepth}{\m@ne}
+\tud@newif\if@tud@comp@graytable
+\newcommand*\blautabelle{\@tud@comp@graytablefalse}
+\newcommand*\grautabelle{\@tud@comp@graytabletrue}
+\newenvironment{farbtabellen}{%
+ \if@tud@comp@graytable%
+ \rowcolors{1}{HKS92!20}{HKS92!10}%
+ \else%
+ \rowcolors{1}{HKS41!20}{HKS41!10}%
+ \fi%
+}{}
+}
+\tud@comp@on@poster@class{%
+\newcommand*\fusszeile[2][]{\footcontent[{#1}]{#2}}
+\newcommand*\footcolumn[2]{%
+ \Ifnumber{#1}{%
+ \ifcase#1\relax%
+ \footcontent{#2}%
+ \or%
+ \footcontent{#2}[*]%
+ \or%
+ \footcontent{*}[{#2}]%
+ \fi%
+ }{}%
+}
+\patchcmd\tud@footcontent@use{%
+ \tud@footcontent@@use{\tud@res@glue}%
}{%
- \RequirePackageWithOptions{tudscrcomp-book}[\TUD@Version]%
+ \if@tud@mathfoot%
+ \tud@footcontent@@use{\glueexpr\tud@dim@widemargin*21/5\relax}%
+ \else%
+ \tud@footcontent@@use{\@tud@res@glue}%
+ \fi%
+}{}{\tud@patch@wrn{tud@footcontent@use}}
}
\endinput
%%