diff options
author | Karl Berry <karl@freefriends.org> | 2016-07-30 23:12:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-07-30 23:12:46 +0000 |
commit | 6b200dd5c2335baa8c78037d8f1c75d1295187f4 (patch) | |
tree | 45201aff662870ef1d337d24f7ce584320a633bf /Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty | |
parent | 4e2bc5d88938c53a614ca1efafe6680e25d24c76 (diff) |
tudscr (26jul16)
git-svn-id: svn://tug.org/texlive/trunk@41776 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty | 167 |
1 files changed, 32 insertions, 135 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty b/Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty index 11193dea2a8..4fe7fb139f9 100644 --- a/Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty +++ b/Master/texmf-dist/tex/latex/tudscr/tudscrcomp.sty @@ -4,10 +4,8 @@ %% %% The original source files were: %% -%% tudscr-version.dtx (with options: `package,comp') -%% tudscr-comp.dtx (with options: `package,identify') -%% tudscr-comp.dtx (with options: `package,option') -%% tudscr-comp.dtx (with options: `package,body') +%% tudscr-version.dtx (with options: `package,comp,base') +%% tudscr-comp.dtx (with options: `package,comp,base,identify') %% %% ============================================================================ %% @@ -37,162 +35,61 @@ %% ============================================================================ %% %%% From File: tudscr-version.dtx -\begingroup% - \catcode`\@11\relax% - \ifx\TUDVersion\undefined% - \newcommand*\@TUDVersion[1]{\gdef\TUDVersion{#1}}% - \else% - \newcommand*\@TUDVersion[1]{% +\begingroup + \catcode`\@11\relax + \ifx\TUD@Version\undefined + \newcommand*\TUD@Version@Check[1]{% + \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.17}% + } + \else + \newcommand*\TUD@Version@Check[1]{% \def\@tempa{#1}% - \ifx\TUDVersion\@tempa\else% + \ifx\TUD@Version\@tempa\else% \@latex@warning@no@line{% - \noexpand\TUDVersion\space is `\TUDVersion',\MessageBreak% + \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-KOMA-Script-Bundle versions% }% \fi% - }% - \fi% - \@TUDVersion{2016/06/17 v2.04e TUD-KOMA-Script}% -\endgroup% + } + \fi + \TUD@Version@Check{2016/07/26 v2.05 TUD-KOMA-Script} +\endgroup +\NeedsTeXFormat{LaTeX2e} \providecommand*\tudscrmail{tudscr@gmail.com} -\@ifundefined{TUDClassName}{% +\@ifundefined{TUD@Class@Name}{% \PackageError{% tudscrcomp% }{Unsupported class found}{% This package can only be used with a class out of the\MessageBreak% - tudscr bundle (tudscrbook, tudscrreprt, tudscrartcl).% - } + tudscr bundle (tudscrbook, tudscrreprt, tudscrartcl, tudscrposter).% + }% \endinput }{} \@ifundefined{TUDScript}{% - \DeclareRobustCommand{\TUDScript}{% + \DeclareRobustCommand\TUDScript{% \ifdin{TUD-KOMA-SCRIPT}{% \textsf{T\kern.05em U\kern.05em D\kern.1em-\kern.1em}\KOMAScript% }\csname xspace\endcsname% }% }{} %%% From File: tudscr-comp.dtx -\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{tudscrcomp}[% - 2016/06/17 v2.04e TUD-KOMA-Script + 2016/07/26 v2.05 TUD-KOMA-Script package (compatibility for old tud(scr) classes)% ] -%%% From File: tudscr-comp.dtx -\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% -} -%%% From File: tudscr-comp.dtx -\newcommand*\einrichtung{\faculty} -\newcommand*\fachrichtung{\department} -\newcommand*\institut{\institute} -\newcommand*\professur{\chair} -\newcommand*\moreauthor{\authormore} -\newcommand*\submitdate{\date} -\newcommand*\supervisorII[1]{% - \expandafter\gdef\expandafter\@supervisor\expandafter{\@supervisor\and #1}% -} -\newcommand*\supervisedby[1]{\gdef\supervisorname{#1}} -\newcommand*\supervisedIIby[1]{\gdef\supervisorothername{#1}} -\newcommand*\submittedon[1]{\gdef\datetext{#1}} -\newcommand*\dissertation{% - \thesis{\dissertationname}% - \let\supervisorname\refereename% - \let\supervisorothername\refereeothername% -} -\AtBeginDocument{% - \ifdef{\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}% - }% -} -\newif\if@tud@chapterpage@temp -\newcommand*\chapterpage{% - \global\@tud@chapterpage@temptrue% - \tud@chapterpage@wrn% -} -\newcommand*\tud@chapterpage@set[1][]{% - \if@tud@chapterpage@temp% - \if@tud@chapterpage% - \TUDoptions{chapterpage=false}% - \else% - \TUDoptions{chapterpage=true}% - \fi% - \fi% -} -\newcommand*\tud@chapterpage@unset[1][]{% - \tud@chapterpage@set% - \global\@tud@chapterpage@tempfalse% -} -\newcommand*\tud@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@chapterpage@wrn\relax% -} -\AtEndPreamble{% - \pretocmd{\tud@chapter}{\tud@chapterpage@set}% - {}{\tud@patch@wrn{tud@nchapter}}% - \apptocmd{\tud@chapter}{\tud@chapterpage@unset}% - {}{\tud@patch@wrn{tud@nchapter}}% - \pretocmd{\tud@schapter}{\tud@chapterpage@set}% - {}{\tud@patch@wrn{tud@schapter}}% - \apptocmd{\tud@schapter}{\tud@chapterpage@unset}% - {}{\tud@patch@wrn{tud@schapter}}% - \pretocmd{\tud@addchap}{\tud@chapterpage@set}% - {}{\tud@patch@wrn{tud@naddchap}}% - \apptocmd{\tud@addchap}{\tud@chapterpage@unset}% - {}{\tud@patch@wrn{tud@naddchap}}% - \pretocmd{\tud@saddchap}{\tud@chapterpage@set}% - {}{\tud@patch@wrn{tud@saddchap}}% - \apptocmd{\tud@saddchap}{\tud@chapterpage@unset}% - {}{\tud@patch@wrn{tud@saddchap}}% +\PassOptionsToPackage{oldcolors}{tudscrcolor} +\@ifclassloaded{tudscrposter}{% + \RequirePackageWithOptions{tudscrcomp-poster}[\TUD@Version]% +}{% + \RequirePackageWithOptions{tudscrcomp-book}[\TUD@Version]% } \endinput %% |