diff options
author | Karl Berry <karl@freefriends.org> | 2017-01-27 23:14:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-01-27 23:14:08 +0000 |
commit | 953423df3388111af14ec84c79dfa6b10e1e8aac (patch) | |
tree | d91e3ead05751436a0713703f3cae5ffd3174fe9 /Master/texmf-dist/tex/latex/tudscr/tudscrtutorial.sty | |
parent | 83082c7f9a495b3086e74c09252c4046fdbc6a72 (diff) |
tudscr (27jan17)
git-svn-id: svn://tug.org/texlive/trunk@43067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrtutorial.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tudscr/tudscrtutorial.sty | 196 |
1 files changed, 114 insertions, 82 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrtutorial.sty b/Master/texmf-dist/tex/latex/tudscr/tudscrtutorial.sty index 6ef4e522a3a..406ddd406a8 100644 --- a/Master/texmf-dist/tex/latex/tudscr/tudscrtutorial.sty +++ b/Master/texmf-dist/tex/latex/tudscr/tudscrtutorial.sty @@ -10,39 +10,32 @@ %% tudscr-manual.dtx (with options: `package,tutorial,option') %% tudscr-misc.dtx (with options: `package,tutorial,execute') %% tudscr-manual.dtx (with options: `package,tutorial,body') -%% tudscr-misc.dtx (with options: `package,tutorial,xindy') +%% tudscr-texindy.dtx (with options: `package,tutorial') %% -%% ============================================================================ +%% TUD-Script -- Corporate Design of Technische Universitaet Dresden %% -%% TUD-Script -%% Copyright (c) Falk Hanisch <tudscr@gmail.com>, 2012-2016 +%% 2017/01/26 v2.05g TUD-Script %% -%% ============================================================================ -%% -%% This work may be distributed and/or modified under the conditions of the -%% LaTeX Project Public License, version 1.3c of the license. The latest -%% version of this license is in http://www.latex-project.org/lppl.txt and -%% version 1.3c or later is part of all distributions of LaTeX 2005/12/01 -%% or later and of this work. This work has the LPPL maintenance status -%% "author-maintained". The current maintainer and author of this work -%% is Falk Hanisch. +%% Copyright (C) Falk Hanisch <tudscr@gmail.com>, 2012-2017 %% +%% This file was generated from file(s) of the TUD-Script bundle. %% ---------------------------------------------------------------------------- %% -%% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz -%% in der Version 1.3c, verteilt und/oder veraendert werden. Die aktuelle -%% Version dieser Lizenz ist http://www.latex-project.org/lppl.txt und -%% Version 1.3c oder spaeter ist Teil aller Verteilungen von LaTeX 2005/12/01 -%% oder spaeter und dieses Werks. Dieses Werk hat den LPPL-Verwaltungs-Status -%% "author-maintained", wird somit allein durch den Autor verwaltet. Der -%% aktuelle Verwalter und Autor dieses Werkes ist Falk Hanisch. +%% This work may be distributed and/or modified under the conditions +%% of the LaTeX Project Public License, version 1.3c of the license. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of +%% LaTeX 2005/12/01 or later and of this work. +%% +%% This work has the LPPL maintenance status "author-maintained". %% -%% ============================================================================ +%% The current maintainer and author of this work is Falk Hanisch. %% %%% From File: tudscr-version.dtx \begingroup \catcode`\@11\relax - \ifx\TUD@Version\undefined + \ifx\TUD@Version\@undefined \newcommand*\TUD@Version@Check[1]{% \gdef\TUD@Version{#1}% \gdef\TUDScriptVersion{#1}% @@ -64,11 +57,11 @@ \fi% } \fi - \TUD@Version@Check{2016/10/12 v2.05f TUD-Script} + \TUD@Version@Check{2017/01/26 v2.05g TUD-Script} \endgroup \NeedsTeXFormat{LaTeX2e} \providecommand*\tudscrmail{tudscr@gmail.com} -\@ifundefined{TUD@Class@Name}{% +\ifx\TUD@Class@Name\@undefined \PackageError{% tudscrtutorial% }{Unsupported class found}{% @@ -76,7 +69,7 @@ tudscr bundle (tudscrbook, tudscrreprt, tudscrartcl, tudscrposter).% }% \endinput -}{} +\fi \@ifundefined{TUDScript}{% \DeclareRobustCommand\TUDScript{% \ifdin{TUD-SCRIPT}{% @@ -86,8 +79,9 @@ }{} %%% From File: tudscr-manual.dtx \ProvidesPackage{tudscrtutorial}[% - 2016/10/12 v2.05f TUD-Script - package (internal tutorials)% + 2017/01/26 v2.05g TUD-Script + package + (internal tutorials)% ] %%% From File: tudscr-base.dtx \RequirePackage{tudscrbase}[\TUD@Version] @@ -180,12 +174,7 @@ \renewcommand*\tud@english[1]{\foreignlanguage{english}{#1}}% }{}% } -\RequirePackage{ifluatex}[2016/05/16] -\ifluatex - \RequirePackage{pdftexcmds}[2016/05/21] - \let\pdfstrcmp\pdf@strcmp - \let\pdfshellescape\pdf@shellescape -\fi +\RequirePackage{pdftexcmds}[2016/05/21] \newcommand*\tud@templist{} \let\tud@templist\relax \newcommand*\tud@list@sort[1]{% @@ -214,7 +203,7 @@ \if@tud@list@sorted% \expandafter\edef\expandafter\@tempb\expandafter{\@tempb,\@tempa}% \else% - \expandafter\ifnum\pdfstrcmp{#1}{\@tempa}<\z@\relax% + \expandafter\ifnum\pdf@strcmp{#1}{\@tempa}<\z@\relax% \ifx\@tempb\@empty% \expandafter\edef\expandafter\@tempb\expandafter{% #1,\@tempa% @@ -251,7 +240,6 @@ \renewcaptionname{ngerman}{\sectionautorefname}{Unterkapitel}% \renewcaptionname{ngerman}{\subsectionautorefname}{Abschnitt}% \renewcaptionname{ngerman}{\subsubsectionautorefname}{Unterabschnitt}% - \newcommand*\Email[1]{\href{mailto:#1}{\nolinkurl{#1}}}% \newcommand*\tud@manualname{tudscr}% \newcommand*\tudhyperref[2]{% \hyperref{../\tud@manualname.pdf}{\tud@manualname}{#1}{#2}% @@ -282,19 +270,20 @@ Nevertheless, essential commands are rudimentarily\MessageBreak% defined. At least the package `url' is loaded.% }% - \RequirePackage{url}[2013/09/16]% \providecommand*\hypersetup[1]{}% + \providecommand*\href[3][]{#3}% + \providecommand*\phantomsection{}% + \providecommand*\texorpdfstring[2]{#1}% + \RequirePackage{url}[2013/09/16]% + \providecommand*\nolinkurl[1]{\url{#1}}% + \providecommand*\hyperpage[1]{#1}% + \providecommand*\autoref{??\xspace\kernel@ifstar{\ref}{\ref}}% \providecommand*\hyperdef[3]{\label{#1.#2}#3}% \providerobustcmd*\hyperref{% \kernel@ifnextchar[{\tud@hyperref@a}{\tud@hyperref@b}% } \newcommand*\tud@hyperref@a[2][]{#2} \newcommand*\tud@hyperref@b[4]{#4} - \providecommand*\href[3][]{#3}% - \providecommand*\hyperpage[1]{#1}% - \providecommand*\autoref{??\xspace\kernel@ifstar{\ref}{\ref}}% - \providecommand*\phantomsection{}% - \providecommand*\texorpdfstring[2]{#1}% \tud@locale@german{\partautorefname}{Teil}% \tud@locale@german{\chapterautorefname}{Kapitel}% \tud@locale@german{\sectionautorefname}{Unterkapitel}% @@ -305,27 +294,27 @@ \tud@locale@english{\sectionautorefname}{section}% \tud@locale@english{\subsectionautorefname}{subsection}% \tud@locale@english{\subsubsectionautorefname}{subsubsection}% - \providecommand*\Email[1]{\mbox{#1}}% \providecommand*\tudhyperref[2]{#2}% \providecommand*\autorefname[1][]{??\xspace}% } -\RequirePackage{varioref}[2011/10/02] -\renewcommand*\fullref[1]{\hyperref[#1]{\autoref*{#1} \vpageref{#1}}} \newcommand*\hrfn[2]{% \href{#1}{\trim@spaces{#2}}% \footnote{% - \scalebox{0.95}{% + \begingroup% \def\_{_}% \edef\@tempa{#1}% \strut\expandafter\url\expandafter{\@tempa}% - }% + \endgroup% }% } +\newrobustcmd*\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}}% \AfterPackage*{hyperref}{% \patchcmd{\pdfstringdef}{\csname HyPsd@babel@}{% \let\bbl@info\@gobble\csname HyPsd@babel@% }{}{\tud@patch@wrn{pdfstringdef}}% } +\RequirePackage{varioref}[2011/10/02] +\renewcommand*\fullref[1]{\hyperref[#1]{\autoref*{#1} \vpageref{#1}}} \AfterPackage*{hyperref}{\RequirePackage[babel]{microtype}[2013/05/23]} \TUD@UnwindPackage{hyperref}{\RequirePackage[babel]{microtype}[2013/05/23]} \newrobustcmd*\bsc{\@backslashchar} @@ -555,7 +544,6 @@ \let\POParameter\@firstofone% \let\textOR\relax% \let\hologoRobust\@firstofone% - \def\TUDScript{TUD-Script}% \def\_{-}% \protected\def~{~}% }% @@ -787,19 +775,6 @@ \fi% }{}{\tud@patch@wrn{theindex}}% \fi% -\newrobustcmd*\cleversee{\tud@cleversee{\seename}} -\newrobustcmd*\cleverseealso{% - \ClassWarning{tudscrmanual}{You should use `|see' instead of `|seealso'}% - \tud@cleversee{\alsoname}% -} -\newcommand*\tud@cleversee{} -\def\tud@cleversee#1#2#3\relax{% - \IfArgIsEmpty{#3}{% - \emph{#1}\space#2% - }{% - #3, \emph{\alsoname}\space#2% - }% -} \NewDocumentCommand\makexdyindex{somo}{% \let\@tempb\@empty% \protected@edef\@tempa{% @@ -901,6 +876,19 @@ }% \tud@reserved% } +\newrobustcmd*\cleversee{\tud@cleversee{\seename}} +\newrobustcmd*\cleverseealso{% + \ClassWarning{tudscrmanual}{You should use `|see' instead of `|seealso'}% + \tud@cleversee{\alsoname}% +} +\newcommand*\tud@cleversee{} +\def\tud@cleversee#1#2#3\relax{% + \IfArgIsEmpty{#3}{% + \emph{#1}\space#2% + }{% + #3, \emph{\alsoname}\space#2% + }% +} \NewDocumentCommand\Process@Index{mmd==od()d||}{% \ifboolexpr{% bool {@tud@index}% @@ -988,7 +976,7 @@ \edef\tud@tut@temp{\@currname-temp} \newcommand*\tud@tut@readtostream[2]{% \begingroup% - \endlinechar=-1\relax% + \endlinechar=\m@ne\relax% \openin\tud@read=#1% \@tempswafalse% \loop\unless\ifeof\tud@read% @@ -1018,17 +1006,21 @@ }% } \TUDoptions{headingsvskip=-10ex} -\newcommand\StartTutorial[1][% - Bevor das eigentliche Tutorial beginnt, werden sowohl eine Dokumentklasse - als auch die f\"ur jedes \hologo{pdfLaTeX}-Dokument meiner Meinung nach - sinnvollen Pakete geladen.% -]{% - \Hy@raisedlink{\hyperdef{\jobname}{tutorials:\jobname}{}}% - \faculty{}% - \maketitle\noindent#1% +\newcommand\StartTutorial[1][]{% \immediate\openout\tud@write@a=\tud@tut@temp-preamble.tex\relax% \immediate\openout\tud@write@b=\tud@tut@temp-trunk.tex\relax% - \immediate\write\tud@write@b{^^J\string\begin{document}^^J} + \immediate\write\tud@write@b{^^J\string\begin{document}^^J}% + \Hy@raisedlink{\hyperdef{\jobname}{tutorials:\jobname}{}}% + \faculty{}% + \maketitle% + \ifblank{#1}{}{% + \noindent% + \begin{abstract}% + \noindent#1% + \end{abstract}% + \medskip% + }% + \noindent\ignorespaces% } \newcommand\FinishTutorial[1][]{% \immediate\write\tud@write@b{^^J\string\end{document}^^J} @@ -1055,7 +1047,7 @@ \lstinputlisting[style=tudscr]{\jobname-example.tex}% \end{quoting}% % - \ifnum\pdfshellescape=\@ne\relax% + \ifnum\pdf@shellescape=\@ne\relax% \ifwindows% \def\@tempa{del}% \else% @@ -1066,7 +1058,11 @@ } \newcommand\Code@Preamble{} \let\Code@Preamble\relax -\newcommand\CodePreamble[1]{\long\gdef\Code@Preamble{#1}} +\newcommand\CodePreamble[1]{% + \long\gdef\Code@Preamble{% + \hskip.5\leftmargin\textit{Die resultierende Ausgabe:}\space#1% + }% +} \newcommand*\Code@Hook{} \let\Code@Hook\relax \newcommand*\CodeHook[1]{\gdef\Code@Hook{#1}} @@ -1238,7 +1234,7 @@ \DeactivateWarningFilters[Tutorial]% \fi \newcommand*\tud@tut@pdf{% - \ifnum\pdfshellescape=\@ne\relax% + \ifnum\pdf@shellescape=\@ne\relax% \filemodCmp{\jobname-standalone-\StandaloneFile.pdf}{\jobname.tex}{}{% \begingroup% \let\printdate\@firstofone% @@ -1298,7 +1294,7 @@ }% } \AfterPackage*{pstricks}{% - \ifnum\pdfshellescape=\@ne\relax% + \ifnum\pdf@shellescape=\@ne\relax% \filemodCmp{\jobname-pics.pdf}{\jobname.tex}{% \PassOptionsToPackage{off}{auto-pst-pdf}% }{}% @@ -1306,7 +1302,7 @@ \PassOptionsToPackage{off}{auto-pst-pdf}% \fi% \RequirePackage{auto-pst-pdf}[2009/04/26]% - \ifnum\pdfshellescape=\@ne\relax% + \ifnum\pdf@shellescape=\@ne\relax% \edef\@tempa{\app@exe{\app@rm "*\app@suffix*"}}% \@tempa% \fi% @@ -1396,15 +1392,43 @@ \NewDocumentCommand\ToDo{somo}{}% \newcommand*\ListOfToDo{}% } +\AfterPackage*{inputenc}{\RequirePackage{csquotes}[2011/10/22]} +\TUD@UnwindPackage{inputenc}{\RequirePackage{csquotes}[2011/10/22]} \RequirePackage{textcomp}[2005/09/27] \RequirePackage{setspace}[2011/12/19] \setstretch{1.1} -\AfterPackage*{inputenc}{\RequirePackage{csquotes}[2011/10/22]} -\TUD@UnwindPackage{inputenc}{\RequirePackage{csquotes}[2011/10/22]} \PassOptionsToPackage{vskip=\smallskipamount}{quoting} \RequirePackage{quoting}[2014/01/28] \RequirePackage{isodate}[2010/01/03] \RequirePackage{hologo}[2012/04/26] +\newcommand*\tud@replace[3]{% + \begingroup% + \toks@{\def\@tempa##1}% + \eaddto@hook\toks@{\detokenize{#2}}% + \addto@hook\toks@{##2\@nil{\@tempb{##1}{##2}}}% + \the\toks@% + \def\@tempb##1##2{% + \IfArgIsEmpty{##2}{% + \appto#1{##1}% + \let\@tempc\relax% + }{% + \appto#1{##1#3}% + \def\@tempc{\@tempa##2\@nil}% + }% + \@tempc% + }% + \toks@{\@tempa}% + \edef\@tempc{\expandafter\detokenize\expandafter{#1}}% + \eaddto@hook\toks@{\@tempc}% + \eaddto@hook\toks@{\detokenize{#2}\@nil}% + \def#1{}% + \the\toks@% + \edef\tud@reserved{% + \noexpand\endgroup% + \def\noexpand#1{#1}% + }% + \tud@reserved% +} \newcommand*\Attention[2][\z@]{% \marginnote{% \setlength\fboxsep{0.25em} @@ -1447,6 +1471,13 @@ D\kern.05em E\kern.05em N\kern.1em-\kern.1em concept% }\xspace% } +\AfterPackage*{hyperref}{% + \pdfstringdefDisableCommands{% + \def\DDC{DRESDEN-concept}% + \def\TUDScript{TUD-Script}% + \def\KOMAScript{KOMA-Script}% + }% +} \newcommand*\Univers{\texorpdfstring{\textubn{Univers}}{Univers}\xspace} \newcommand*\DIN{\texorpdfstring{\textdbn{DIN~BOLD}}{DIN BOLD}\xspace} \newcommand*\textsbn{} @@ -1455,7 +1486,7 @@ \newcommand*\textsbs{} \newrobustcmd*\sbsfont{\sffamily\bfseries\slshape} \DeclareTextFontCommand\textsbs{\sbsfont} -%%% From File: tudscr-misc.dtx +%%% From File: tudscr-texindy.dtx \begingroup \newcommand*\tud@write@xdy{} \newwrite\tud@write@xdy @@ -1468,20 +1499,21 @@ \write\tud@write@xdy{% (define-location-class^^J% \space\space"arabic-page-numbers" ("arabic-numbers")% - \space:min-range-length 1^^J% + \space:min-range-length 2^^J% )^^J% (markup-range :sep "--")% }% \write\tud@write@xdy{% + (merge-rule "\@backslashchar[(.*)\@backslashchar]" "" :eregexp)% + }% + \write\tud@write@xdy{% (markup-locclass-list% \space:open "\string\,\string\dotfill\string\,"% \space:close "\string\relax"% + \space:sep ",\space"% )% }% \write\tud@write@xdy{% - (merge-rule "\@backslashchar[(.*)\@backslashchar]" "" :eregexp)% - }% - \write\tud@write@xdy{% (define-attributes (("declare" "!" "important" "?" "default")))^^J% (markup-locref% \space:attr "declare"\space\space% |