summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tudscr/tudscrman.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-02-16 21:40:28 +0000
committerKarl Berry <karl@freefriends.org>2015-02-16 21:40:28 +0000
commit68695b0b7015bb233b4f5697ebdb9def46b9cb4a (patch)
tree94745a5ea3bedbf6b6904bf5cbb949151e8f41fd /Master/texmf-dist/tex/latex/tudscr/tudscrman.sty
parente016928e2bd0e7163bde478d7ab2419f49468c3c (diff)
tudscr (16feb15)
git-svn-id: svn://tug.org/texlive/trunk@36296 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrman.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tudscr/tudscrman.sty115
1 files changed, 75 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrman.sty b/Master/texmf-dist/tex/latex/tudscr/tudscrman.sty
index 48ab546e16e..e6095d0eb0e 100644
--- a/Master/texmf-dist/tex/latex/tudscr/tudscrman.sty
+++ b/Master/texmf-dist/tex/latex/tudscr/tudscrman.sty
@@ -15,7 +15,7 @@
%% ============================================================================
%%
%% TUD-KOMA-Script
-%% Copyright (c) Falk Hanisch <tudscr[at]gmail.com>, 2012-2014
+%% Copyright (c) Falk Hanisch <tudscr@gmail.com>, 2012-2015
%%
%% ============================================================================
%%
@@ -29,13 +29,13 @@
%%
%% ----------------------------------------------------------------------------
%%
-%% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
-%% Version 1.3c, verteilt und/oder veraendert werden. Die neuste Version
-%% dieser Lizenz ist http://www.latex-project.org/lppl.txt und Version 1.3c
-%% 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.
+%% 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.
%%
%% ============================================================================
%%
@@ -57,7 +57,7 @@
\fi%
}%
\fi%
- \@TUDVersion{2014/12/17 v2.02 TUD-KOMA-Script}%
+ \@TUDVersion{2015/02/15 v2.03 TUD-KOMA-Script}%
\endgroup%
\providecommand*\tudscrmail{tudscr@gmail.com}
\@ifundefined{tudcls@name}{%
@@ -79,7 +79,7 @@
%%% From File: tudscr-manual.dtx
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\ProvidesPackage{tudscrman}[%
- 2014/12/17 v2.02 TUD-KOMA-Script
+ 2015/02/15 v2.03 TUD-KOMA-Script
package (internal tutorials)%
]
%%% From File: tudscr-base.dtx
@@ -87,7 +87,17 @@
%%% From File: tudscr-manual.dtx
\newif\if@tud@todo
\@tud@todotrue
-\TUD@ifkey{ToDo}{@tud@todo}
+\newcommand*\tud@todo@type{}
+\TUD@key{ToDo}[true]{%
+ \TUD@set@ifkey{ToDo}{@tud@todo}{#1}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed%
+ \let\tud@todo@type\relax%
+ \else%
+ \def\tud@todo@type{#1}%
+ \@tud@todotrue%
+ \FamilyKeyStateProcessed%
+ \fi%
+}
\KOMAoptions{headings=small}
\TUDoptions{cd=true,cdfoot=true}
\AfterPackage*{pstricks}{%
@@ -112,7 +122,14 @@
\providecommand\enquote[1]{\glqg#1\grqq{}}%
}%
}
-\RequirePackage[babel]{microtype}[2013/05/23]
+\AfterPackage*{hyperref}{\RequirePackage[babel]{microtype}[2013/05/23]}
+\newlength\baselineskipglue
+\AtBeginDocument{%
+ \setlength\baselineskipglue{%
+ .4\baselineskip plus .4\baselineskip minus .2\baselineskip%
+ }%
+}
+\PassOptionsToPackage{vskip=.5\baselineskipglue}{quoting}
\RequirePackage{quoting}[2014/01/28]
\RequirePackage{isodate}[2010/01/03]
\RequirePackage{hologo}[2012/04/26]
@@ -138,10 +155,11 @@
\fi
\WarningFilter*{ifplatform}{^^J \space\space\space shell escape is disabled}
\RequirePackage{ifplatform}[2010/10/22]
-\PassOptionsToPackage{hyperindex=false}{hyperref}
-\AtEndPreamble{%
+\PassOptionsToPackage{hyperindex=false,colorlinks,linkcolor=blue}{hyperref}
+\PassOptionsToPackage{open,openlevel=0}{bookmark}
+\AtBeginDocument{%
\RequirePackage{hyperref}[2012/11/06]
- \hypersetup{colorlinks,linkcolor=blue}
+ \RequirePackage{bookmark}[2011/12/02]
\newcommand*\Email[1]{\href{mailto:#1}{\nolinkurl{#1}}}
\renewcaptionname{ngerman}{\sectionautorefname}{Unterkapitel}
\renewcaptionname{ngerman}{\subsectionautorefname}{Abschnitt}
@@ -170,7 +188,8 @@
\RequirePackage{imakeidx}[2013/07/11]%
\indexsetup{%
level=\subsection*,%
- noclearpage,firstpagestyle=headings,headers={\indexname}{\indexname}%
+ noclearpage,firstpagestyle=headings,headers={\indexname}{\indexname},%
+ othercode={\renewcommand*\subitem{\@idxitem\hspace*{15\p@}}}%
}
\newcommand*\xdyopt{-M tudscrman-temp.xdy -L german-din}
\newcommand*\tud@write@i{}
@@ -189,7 +208,7 @@
\write\tud@write@i{(markup-range :sep "--")}
\write\tud@write@i{(merge-rule "\[(.*)\]" "" :eregexp)}
\write\tud@write@i{%
- (define-attributes (("declare" "!" "important" "?" "default")))%
+ (define-attributes (("declare" "!" "important" "?" "deprecated" "default")))%
}
\write\tud@write@i{(merge-to "important" "default")}
\write\tud@write@i{(merge-to "?" "default")}
@@ -229,6 +248,13 @@
)%
}
\write\tud@write@i{%
+(markup-locref^^J%
+\space\space :open "\string\deprecatedhyperpage{"^^J%
+\space\space :close "}"^^J%
+\space\space :attr "deprecated"^^J%
+)%
+}
+\write\tud@write@i{%
(markup-locclass-list :open "\string\,\string\dotfill\string\,")%
}
\write\tud@write@i{(define-crossref-class "seeidx")}
@@ -246,15 +272,16 @@
\RequirePackage{scrwfile}[2013/08/05]
\RequirePackage{filecontents}[2011/10/08]
\WarningFilter[Tutorial]{latex}{Overwriting file}%
+\newrobustcmd*\textOR{\,\textbardbl\,}
\newrobustcmd*\PName[1]{\mbox{\texttt{\textsl{<#1>}}}}
\newrobustcmd*\PBoolean{\PName{Ein-Aus-Wert}}
-\newrobustcmd*\PBName[1]{\PBoolean|\PName{#1}}
+\newrobustcmd*\PBName[1]{\PBoolean\textOR\PName{#1}}
\newrobustcmd*\PSet{\PName{Einstellung}}
\newrobustcmd*\Parameter[1]{\mbox{\texttt{\{}\PName{#1}\texttt{\}}}}
\newrobustcmd*\OParameter[1]{\mbox{\texttt{[}\PName{#1}\texttt{]}}}
\newrobustcmd*\LParameter{\mbox{\texttt{[}\PName{Parameterliste}\texttt{]}}}
\newrobustcmd*\OLParameter[1]{%
- \mbox{\texttt{[}\PName{#1}|\PName{Parameterliste}\texttt{]}}%
+ \mbox{\texttt{[}\PName{#1}\textOR\PName{Parameterliste}\texttt{]}}%
}
\newrobustcmd*\PValue[1]{\mbox{\texttt{#1}}}
\newrobustcmd*\PParameter[1]{\mbox{\texttt{\{#1\}}}}
@@ -282,17 +309,24 @@
}{%
\IfBooleanT{#1}{\edef\@ToDo{nolist}}%
}%
- \renewcommand*\marginpar[2][]{\marginnote[##1]{##2}[\dimexpr-1.6ex+1pt]}%
- \vskip.8ex%
- \IfValueT{#4}{%
- \settowidth\marginparwidth{#4}%
- \addtolength\marginparwidth{\dimexpr1.6ex+1pt}%
- \let\par\relax\noindent%
- \edef\@tempa{\noexpand\todo[\@ToDo,noline,nolist]}%
- \@tempa{#4}%
+ \renewcommand*\marginpar[2][]{%
+ \marginnote[##1]{##2}[\dimexpr-1.6ex+1pt\relax]%
}%
- \edef\@tempa{\noexpand\todo[\@ToDo,inline]}%
- \@tempa{#3}%
+ \@tempswafalse
+ \ifdefvoid{\tud@todo@type}{\@tempswatrue}{}%
+ \IfValueT{#2}{\ifstr{#2}{\tud@todo@type}{\@tempswatrue}{}}%
+ \if@tempswa%
+ \vskip.8ex%
+ \IfValueT{#4}{%
+ \settowidth\marginparwidth{#4}%
+ \addtolength\marginparwidth{\dimexpr1.6ex+1pt\relax}%
+ \let\par\relax\noindent%
+ \edef\@tempa{\noexpand\todo[\@ToDo,noline,nolist]}%
+ \@tempa{#4}%
+ }%
+ \edef\@tempa{\noexpand\todo[\@ToDo,inline]}%
+ \@tempa{#3}%
+ \fi%
\endgroup%
\par\noindent%
}{}%
@@ -301,10 +335,6 @@
\newcommand*\ListOfToDo{\if@tud@todo\listoftodos\fi}
\reversemarginpar
\newrobustcmd*\bsc{\@backslashchar}
-\newlength\baselineskipglue
-\setlength\baselineskipglue{%
- .4\baselineskip plus .4\baselineskip minus .2\baselineskip%
-}
\newcommand*\tud@shellescape@wrn{%
\ClassWarning{\tudcls@name}{%
You have to recompile this document with\MessageBreak%
@@ -536,13 +566,13 @@
\endgroup%
}%
\@tempa{\@CodePreamble}{}%
- \setlength{\@tempdimc}{\leftskip}%
- \setlength{\leftskip}{\leftmargin}%
+ \setlength\@tempdimc{\leftskip}%
+ \setlength\leftskip{\leftmargin}%
\ActivateWarningFilters[Tutorial]%
\@tempa{\input{\jobname-temp.tex}}{\@CodeHook}%
\DeactivateWarningFilters[Tutorial]%
\global\let\@CodeHook\relax%
- \setlength{\leftskip}{\@tempdimc}%
+ \setlength\leftskip{\@tempdimc}%
\noindent\ignorespaces%
}
\newcommand*\InputCode{\input{\jobname-temp.tex}}
@@ -584,11 +614,11 @@
\@tempcnta\z@%
\@for\@tempa:=#3\do{\advance\@tempcnta\@ne}%
\ifnum\@tempcnta>\z@%
- \setlength{\@tempdima}{\textwidth}%
+ \setlength\@tempdima{\textwidth}%
\divide\@tempdima\@tempcnta%
\advance\@tempcnta\m@ne%
\multiply\@tempcnta 2%
- \addtolength{\@tempdima}{-\@tempcnta\tabcolsep}%
+ \addtolength\@tempdima{-\@tempcnta\tabcolsep}%
\@for\@tempa:=#3\do{%
\advance\@tempcnta\m@ne%
\edef\@tempb{%
@@ -678,10 +708,15 @@
\newcommand*\@printindexskip{\ifnum\imki@columns>\@ne\vspace{-\multicolsep}\fi}
\newcommand*\@printindex[1][]{%
\pagebreak[3]%
- \apptocmd{\prepare@multicols}{\hbadness10000}{}{}%
\indexprologue[\@printindexskip]{}%
\printindex[#1]\@printindexskip%
}
+\renewrobustcmd*\see[2]{%
+ \ifstr{#1}{*}{\emph{\seename}~#2}{\emph{\seename}~#1}%
+}
+\renewrobustcmd*\seealso[2]{%
+ \ifstr{#1}{*}{\emph{\alsoname}~#2}{\emph{\alsoname}~#1}%
+}
%%% From File: tudscr-misc.dtx
\RequirePackage{xspace}[2009/10/20]
\xspaceaddexceptions{"=}
@@ -692,7 +727,7 @@
\expandafter\@tempb\@tempa\relax? ? \relax\relax%
}
\newcommand*\vKOMAScript{v3.12\xspace}
-\RequirePackage{scrhack}[2014/07/07]
+\RequirePackage{scrhack}[2014/02/27]
\newcommand*\Attention[1]{\marginnote{\fbox{Achtung!}}\emph{#1}}
\NewDocumentCommand\Forum{s}{%
\IfBooleanTF{#1}{%