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/tudscrsupervisor.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/tudscrsupervisor.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tudscr/tudscrsupervisor.sty | 327 |
1 files changed, 161 insertions, 166 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrsupervisor.sty b/Master/texmf-dist/tex/latex/tudscr/tudscrsupervisor.sty index c8d41581777..a1dfebfde7b 100644 --- a/Master/texmf-dist/tex/latex/tudscr/tudscrsupervisor.sty +++ b/Master/texmf-dist/tex/latex/tudscr/tudscrsupervisor.sty @@ -5,7 +5,7 @@ %% The original source files were: %% %% tudscr-version.dtx (with options: `package,supervisor') -%% tudscr-supervisor.dtx (with options: `package') +%% tudscr-supervisor.dtx (with options: `package,supervisor') %% tudscr-fields.dtx (with options: `package,supervisor') %% tudscr-locale.dtx (with options: `package,supervisor') %% @@ -37,85 +37,109 @@ %% ============================================================================ %% %%% 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{% tudscrsupervisor% }{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-supervisor.dtx -\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{tudscrsupervisor}[% - 2016/06/17 v2.04e TUD-KOMA-Script + 2016/07/26 v2.05 TUD-KOMA-Script package (commands for supervisors)% ] +\newcommand*\tud@multiple@fields@output{} +\newcommand*\tud@multiple@fields@style{table} \newenvironment{task}[1][]{% \cleardoubleoddpage% \def\@headline{}% - \TUD@parameter{tudpage}{% - \TUD@parameter@define{headline}{\def\@headline{##1}}% + \TUD@parameter@family{tudpage}{% + \TUD@parameter@def{headline}{\def\@headline{##1}}% + \TUD@parameter@let{heading}{headline}% \TUD@parameter@let{line}{headline}% - \TUD@parameter@sethandler{\TUD@parameter@set{tudpage}{headline=##1}}% + \TUD@parameter@def{style}{\def\tud@multiple@fields@style{##1}}% + \TUD@parameter@handler@default{headline}% }% \tudpage[pagestyle=empty,#1]% \tudbookmark{\taskname}{task}% \subsection*{% \ifx\@headline\@empty% \taskname\space% - \ifx\tasktext\@empty\else\ifx\@thesis\@empty\else% - \ignorespaces\tasktext\space\trim@spaces{\@thesis}% + \ifx\tasktext\@empty\else\ifx\@@thesis\@empty\else% + \ignorespaces\tasktext\space\@@thesis% \fi\fi% \else\@headline\fi% }% - \tud@author@table% + \tud@authortable@set% }{% - \def\and{% - \tabularnewline% - \ifx\supervisorothername\@empty\else\supervisorothername\@titledelim\fi% - & \def\and{\tabularnewline &}% + \def\tud@multiple@fields@output##1{% + \ifstr{\tud@multiple@fields@style}{table}{% + \def\and{% + \tabularnewline% + \ifstr{\csuse{##1othername}}{}{}{% + \csuse{##1othername}\tud@title@delimiter% + }% + & \def\and{\tabularnewline &}% + }% + }{% + \def\and{\unskip,\space\ignorespaces}% + }% + \csuse{@##1}% }% \removelastskip% \ifdim\parskip>\z@\vskip\parskip\else\vskip\topsep\fi\medskip% \begingroup% \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative% - \begin{tabular}{@{}p{\tud@dim@table}l@{}}% - \supervisorname\@titledelim & - \@supervisor\tabularnewline[\smallskipamount]% - \issuedatetext\@titledelim & \@issuedate\tabularnewline% - \duedatetext\@titledelim & \@duedate\tabularnewline% + \begin{tabular}{@{}p{\tud@len@authortable}l@{}}% + \ifx\@referee\@empty\else% + \refereename\tud@title@delimiter & % + \tud@multiple@fields@output{referee}\tabularnewline[\smallskipamount]% + \fi% + \supervisorname\tud@title@delimiter & % + \tud@multiple@fields@output{supervisor}\tabularnewline[\smallskipamount]% + \issuedatetext\tud@title@delimiter & \@issuedate\tabularnewline% + \duedatetext\tud@title@delimiter & \@duedate\tabularnewline% \end{tabular}% - \vskip\tud@signatureskip\noindent% + \vskip\tud@len@signatureskip\noindent% \ifx\@chairman\@empty\else% \begin{tabular}{@{}l@{}}% \@chairman\tabularnewline% @@ -135,13 +159,13 @@ \aftergroup\cleardoublepage% } \newcommand\taskform[3][]{% - \begin{task}[#1] + \begin{task}[#1]% \removelastskip% - \ifxblank{#2}{}{\minisec{\objectivesname}#2}% - \ifxblank{#3}{}{% + \ifblank{#2}{}{\minisec{\objectivesname}#2}% + \ifblank{#3}{}{% \minisec{\focusname}% \begin{itemize}\tud@RaggedRight% - #3 + #3% \end{itemize}% }% \end{task}% @@ -149,23 +173,24 @@ \newenvironment{evaluation}[1][]{% \cleardoubleoddpage% \def\@headline{}% - \TUD@parameter{tudpage}{% - \TUD@parameter@define{headline}{\def\@headline{##1}}% + \TUD@parameter@family{tudpage}{% + \TUD@parameter@def{headline}{\def\@headline{##1}}% + \TUD@parameter@let{heading}{headline}% \TUD@parameter@let{line}{headline}% - \TUD@parameter@define{grade}{\def\@grade{##1}}% - \TUD@parameter@sethandler{\TUD@parameter@set{tudpage}{headline=##1}}% + \TUD@parameter@def{grade}{\def\@grade{##1}}% + \TUD@parameter@handler@default{headline}% }% \tudpage[pagestyle=empty,#1]% \tudbookmark{\evaluationname}{evaluation}% \subsection*{% \ifx\@headline\@empty% \evaluationname\space% - \ifx\evaluationtext\@empty\else\ifx\@thesis\@empty\else% - \ignorespaces\evaluationtext\space\trim@spaces{\@thesis}% + \ifx\evaluationtext\@empty\else\ifx\@@thesis\@empty\else% + \ignorespaces\evaluationtext\space\@@thesis% \fi\fi% \else\@headline\fi% }% - \tud@author@table% + \tud@authortable@set% }{% \removelastskip% \ifdim\parskip>\z@\vskip\parskip\else\vskip\topsep\fi% @@ -179,7 +204,7 @@ \vskip\@tempskipa\noindent% \ifx\@place\@empty\else\@place,\nobreakspace\fi\@date% \fi% - \vskip\tud@signatureskip\noindent% + \vskip\tud@len@signatureskip\noindent% \ifx\@referee\@empty\let\@referee\@supervisor\fi% \let\@tempa\refereename% \def\and{% @@ -200,60 +225,65 @@ \aftergroup\cleardoublepage% } \newcommand\evaluationform[5][]{% - \begin{evaluation}[#1] + \begin{evaluation}[#1]% \removelastskip% - \ifxblank{#2}{}{\minisec{\taskname}#2}% - \ifxblank{#3}{}{\minisec{\contentname}#3}% - \ifxblank{#4}{}{\minisec{\assessmentname}#4}% - \ifxblank{#5}{}{\def\@grade{#5}}% + \ifblank{#2}{}{\minisec{\taskname}#2}% + \ifblank{#3}{}{\minisec{\contentname}#3}% + \ifblank{#4}{}{\minisec{\assessmentname}#4}% + \ifblank{#5}{}{\def\@grade{#5}}% \end{evaluation}% } \newcommand*\student{\author} -\newlength\tud@dim@table% -\newcommand*\tud@author@table{% +\newlength\tud@len@authortable +\newcommand*\tud@authortable@set{% \begingroup% \let\thanks\@gobble% \let\footnote\@gobble% \tud@multiple@split{@author}% \tud@multiple@fields@preset{@author}{\null}{}% - \setlength\tud@dim@table{2em}% - \edef\@tempa{% - \namesname,\titlename,\supervisorname,\supervisorothername,% - \issuedatetext,\duedatetext,% - \expandafter\ifx\@matriculationnumber\@empty\else% - \matriculationnumbername% - \fi,% - \expandafter\ifx\@matriculationyear\@empty\else% - \matriculationyearname% - \fi,% - \expandafter\ifx\@course\@empty\else\coursename\fi,% - \expandafter\ifx\@discipline\@empty\else\disciplinename\fi,% + \setlength\tud@len@authortable{2em}% + \def\@tempb##1{% + \expandafter\ifx\csname @##1\endcsname\@empty\else% + \expandafter\appto\expandafter\@tempa\expandafter{% + \expandafter,\csname ##1name\endcsname% + }% + \fi% + }% + \def\@tempa{% + \namesname,\titlename,\issuedatetext,\duedatetext,\supervisorname% }% + \tud@ifin@and{\@supervisor}{\appto\@tempa{,\supervisorothername}}{}% + \@tempb{referee}% + \tud@ifin@and{\@referee}{\appto\@tempa{,\refereeothername}}{}% + \@tempb{matriculationnumber}% + \@tempb{matriculationyear}% + \@tempb{course}% + \@tempb{discipline}% \@for\@tempb:=\@tempa\do{% - \settowidth\@tempdima{\@tempb\@titledelim}% - \ifdim\@tempdima>\tud@dim@table\relax% - \setlength\tud@dim@table{\@tempdima}% + \settowidth\@tempdima{\@tempb\tud@title@delimiter}% + \ifdim\@tempdima>\tud@len@authortable\relax% + \setlength\tud@len@authortable{\@tempdima}% \fi% }% - \global\tud@dim@table=\tud@dim@table% + \global\tud@len@authortable=\tud@len@authortable% \begingroup% \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative% - \begin{tabular}{@{}p{\tud@dim@table}}% + \begin{tabular}{@{}p{\tud@len@authortable}}% \ifx\@course\@empty\else% - \coursename\@titledelim\tabularnewline% + \coursename\tud@title@delimiter\tabularnewline% \fi% \ifx\@discipline\@empty\else% - \disciplinename\@titledelim\tabularnewline% + \disciplinename\tud@title@delimiter\tabularnewline% \fi% - \namesname\@titledelim\tabularnewline% + \namesname\tud@title@delimiter\tabularnewline% \ifx\@matriculationnumber\@empty\else% - \matriculationnumbername\@titledelim\tabularnewline% + \matriculationnumbername\tud@title@delimiter\tabularnewline% \fi% \ifx\@matriculationyear\@empty\else% - \matriculationyearname\@titledelim\tabularnewline% + \matriculationyearname\tud@title@delimiter\tabularnewline% \fi% \end{tabular}% - \renewcommand*\tud@split@author[2]{% + \renewcommand*\tud@split@author@do[2]{% \tud@multiple@fields@store{@author}{##1}% \tud@multiple@fields@preset{@author}{\null}{##1}% \begin{tabular}{l@{}}% @@ -272,9 +302,9 @@ }% \tud@multiple@split{@author}% \vskip\smallskipamount% - \begin{tabular}{@{}p{\tud@dim@table}% - p{\dimexpr\textwidth-\tud@dim@table-2\tabcolsep\relax}@{}}% - \titlename\@titledelim & \tud@RaggedRight\textsf{\textbf{\@@title}}% + \begin{tabular}{@{}p{\tud@len@authortable}% + p{\dimexpr\textwidth-\tud@len@authortable-2\tabcolsep\relax}@{}}% + \titlename\tud@title@delimiter & \tud@RaggedRight\textsf{\textbf{\@@title}}% \end{tabular}% \par% \endgroup% @@ -282,28 +312,17 @@ \endgroup% \noindent\ignorespaces% } -\patchcmd{\tud@split@author@list}{authormore}{% - authormore,course,discipline% -}{}{\tud@patch@wrn{tud@split@author@list}} \newenvironment{notice}[1][]{% \cleardoubleoddpage% \def\@headline{\noticename}% - \TUD@parameter{tudpage}{% - \TUD@parameter@define{headline}{\def\@headline{##1}}% + \TUD@parameter@family{tudpage}{% + \TUD@parameter@def{headline}{\def\@headline{##1}}% + \TUD@parameter@let{heading}{headline}% \TUD@parameter@let{line}{headline}% - \TUD@parameter@sethandler{\TUD@parameter@set{tudpage}{headline=##1}}% + \TUD@parameter@handler@default{headline}% }% - \tudpage[pagestyle=empty,#1]% + \tudpage[pagestyle=empty,cdhead=date,#1]% \tudbookmark{\noticename}{notice}% - \ifx\@date\@empty\else% - \begingroup% - \vspace*{-\parskip}% - \vspace*{-2\baselineskip}% - \raggedleft - \@date\par% - \vspace*{-\parskip}% - \endgroup% - \fi% \ifx\@headline\@empty\else% \section*{\@headline}% \fi% @@ -312,13 +331,14 @@ \ifx\@contactperson\@empty\else% \removelastskip% \ifdim\parskip>\z@\vskip\parskip\else\vskip\topsep\fi% - \renewcommand*\tud@split@contactperson[2]{% + \renewcommand*\tud@split@contactperson@do[2]{% \tud@multiple@fields@store{@contactperson}{##1}% \tud@multiple@fields@preset{@contactperson}{}{##1}% \begin{tabular}[t]{@{}l@{}}% \ignorespaces##1\tabularnewline% \ifx\@office\@empty\else\@office\tabularnewline\fi% \ifx\@telephone\@empty\else\@telephone\tabularnewline\fi% + \ifx\@telefax\@empty\else\@telefax\tabularnewline\fi% \ifx\@emailaddress\@empty\else\@emailaddress\tabularnewline\fi% \end{tabular}% \tud@multiple@fields@restore{@contactperson}% @@ -331,93 +351,71 @@ \aftergroup\cleardoublepage% } \newcommand\noticeform[3][]{% - \begin{notice}[#1] + \begin{notice}[#1]% \removelastskip% - \ifxblank{#2}{}{% + \ifblank{#2}{}{% \ifx\@@title\@empty\else% \minisec{\expandonce{\@@title}}% \fi% #2% }% - \ifxblank{#3}{}{% + \ifblank{#3}{}{% \minisec{\focusname}% \begin{itemize}\tud@RaggedRight% - #3 + #3% \end{itemize}% }% \end{notice}% } %%% From File: tudscr-fields.dtx -\newcommand*\@course{} -\newrobustcmd*\course[1]{\gdef\@course{#1}} -\newcommand*\@discipline{} -\newrobustcmd*\discipline[1]{\gdef\@discipline{#1}} \newcommand*\@chairman{} \newcommand*\chairman[1]{\gdef\@chairman{#1}} \newcommand*\@grade{} \newcommand*\grade[1]{\gdef\@grade{#1}} \newcommand*\@headline{} \newcommand*\@issuedate{} -\newcommand*\issuedate[1]{\tud@printdate{\@issuedate}{#1}} +\newcommand*\issuedate[1]{\tud@x@isodate@printdate{\@issuedate}{#1}} \newcommand*\@duedate{} -\newcommand*\duedate[1]{\tud@printdate{\@duedate}{#1}} +\newcommand*\duedate[1]{\tud@x@isodate@printdate{\@duedate}{#1}} \newcommand*\finaldate{} \newcommand*\maturitydate{} -\@ifpackageloaded{% - tudscrposter% -}{}{% - \newcommand*\@contactperson{} - \newcommand*\contactperson[1]{\gdef\@contactperson{#1}} - \newcommand*\@office{} - \newrobustcmd*\office[1]{\gdef\@office{#1}} - \newcommand*\@telephone{} - \newrobustcmd*\telephone[1]{\gdef\@telephone{#1}} - \newcommand*\@emailaddress{} - \newrobustcmd*\emailaddress[2][]{\gdef\@emailaddress{#2}} - \AfterPackage*{hyperref}{% - \renewrobustcmd*\emailaddress[2][hidelinks]{% - \gdef\@emailaddress{% - \begingroup% - \hypersetup{#1}% - \href{mailto:#2}{#2}% - \endgroup% - }% - }% - }% - \newcommand*\tud@multiple@fields@preset[3]{% - \letcs\@tempa{tud@split#1@list}% - \let\and\relax% - \@for\@tempb:=\@tempa\do{% - \ifx\@tempb\@empty\else% - \edef\@tempc{\@nameuse{\@tempb}}% - \ifstr{#2}{*}{% - \@namedef{@\@tempb}{}% - }{% - \begingroup% - \protected@expandtwoargs\in@{\@tempc}{\@nameuse{#1}}% - \ifin@% - \ifcsempty{@\@tempb}{\@tempc{#2}}{}% - \fi% - \endgroup% - }% - \fi% +\@ifclassloaded{tudscrposter}{\@tempswafalse}{\@tempswatrue} +\if@tempswa +\newcommand*\@contactperson{} +\newcommand*\contactperson[1]{\gdef\@contactperson{#1}} +\newcommand*\@office{} +\newrobustcmd*\office[1]{\gdef\@office{#1}} +\newcommand*\@telephone{} +\newrobustcmd*\telephone[1]{\gdef\@telephone{#1}} +\newcommand*\@telefax{} +\newrobustcmd*\telefax[1]{\gdef\@telefax{#1}} +\newcommand*\@emailaddress{} +\newrobustcmd*\emailaddress{% + \kernel@ifstar{\tud@emailaddress@simple}{\tud@emailaddress@hyper}% +} +\newrobustcmd*\tud@emailaddress@simple[1]{\gdef\@emailaddress{#1}} +\newrobustcmd*\tud@emailaddress@hyper[2][]{\gdef\@emailaddress{#2}} +\AfterPackage*{hyperref}{% + \renewrobustcmd*\tud@emailaddress@hyper[2][hidelinks]{% + \gdef\@emailaddress{% + \begingroup% + \urlstyle{same}% + \hypersetup{#1}% + \href{mailto:#2}{\nolinkurl{#2}}% + \endgroup% }% - \begingroup% - \let\thanks\@gobble% - \let\footnote\@gobble% - \sbox\z@{#3}% - \endgroup% }% - \newcommand*\tud@split@contactperson[2]{} - \newcommand*\tud@split@contactperson@list{office,telephone,emailaddress} } +\newcommand*\tud@split@contactperson@do[2]{} +\newcommand*\tud@split@contactperson@list{office,telephone,telefax,emailaddress} +\fi %%% From File: tudscr-locale.dtx +\tud@locale@define{\authorname} +\tud@locale@define{\contactname} +\tud@locale@define{\contactpersonname} \tud@locale@define{\taskname} \tud@locale@define{\tasktext} \tud@locale@define{\namesname} -\tud@locale@define{\titlename} -\tud@locale@define{\coursename} -\tud@locale@define{\disciplinename} \tud@locale@define{\issuedatetext} \tud@locale@define{\duedatetext} \tud@locale@define{\chairmanname} @@ -429,13 +427,12 @@ \tud@locale@define{\assessmentname} \tud@locale@define{\gradetext} \tud@locale@define{\noticename} -\tud@locale@define{\contactpersonname} +\tud@locale@german{\authorname}{Autor}% +\tud@locale@german{\contactname}{Kontakt}% +\tud@locale@german{\contactpersonname}{Ansprechpartner}% \tud@locale@german{\taskname}{Aufgabenstellung}% \tud@locale@german{\tasktext}{f\"ur die Anfertigung einer}% \tud@locale@german{\namesname}{Name}% -\tud@locale@german{\titlename}{Titel}% -\tud@locale@german{\coursename}{Studiengang}% -\tud@locale@german{\disciplinename}{Studienrichtung}% \tud@locale@german{\issuedatetext}{Ausgeh\"andigt am}% \tud@locale@german{\duedatetext}{Einzureichen am}% \tud@locale@german{\chairmanname}{Pr\"ufungsausschussvorsitzender}% @@ -447,15 +444,14 @@ \tud@locale@german{\assessmentname}{Bewertung}% \tud@locale@german{\gradetext}{% Die Arbeit wird mit der Note \textbf{\@grade} bewertet.% -} +}% \tud@locale@german{\noticename}{Aushang}% -\tud@locale@german{\contactpersonname}{Ansprechpartner}% +\tud@locale@english{\authorname}{Author}% +\tud@locale@english{\contactname}{Contact}% +\tud@locale@english{\contactpersonname}{Contact}% \tud@locale@english{\taskname}{Task}% \tud@locale@english{\tasktext}{for the preparation of a}% \tud@locale@english{\namesname}{Name}% -\tud@locale@english{\titlename}{Title}% -\tud@locale@english{\coursename}{Course}% -\tud@locale@english{\disciplinename}{Discipline}% \tud@locale@english{\issuedatetext}{Issued on}% \tud@locale@english{\duedatetext}{Due date for submission}% \tud@locale@english{\chairmanname}{Chairman of the Audit Committee}% @@ -467,9 +463,8 @@ \tud@locale@english{\assessmentname}{Assessment}% \tud@locale@english{\gradetext}{% The thesis is evaluated with a grade of \textbf{\@grade}.% -} +}% \tud@locale@english{\noticename}{Notice}% -\tud@locale@english{\contactpersonname}{Contact}% \endinput %% %% End of file `tudscrsupervisor.sty'. |