diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls')
-rw-r--r-- | Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls | 83 |
1 files changed, 70 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls b/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls index cee1ba89c79..d4c2bbb23d3 100644 --- a/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls +++ b/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls @@ -38,7 +38,7 @@ % \section{Identification} % % \begin{macrocode} -\ProvidesClass{scrguide}[2019/02/01 v1.13d internal KOMA-Script guide class] +\ProvidesClass{scrguide}[2019/10/10 v1.15 internal KOMA-Script guide class] % \end{macrocode} % % @@ -116,11 +116,8 @@ % \end{macrocode} % \end{macro} % \end{macro} -% NOTE: I use \texttt{latin1} instead of the prefered \texttt{utf8} because of -% problems of early versions of package \textsf{listings}. % \begin{macrocode} \LoadClassWithOptions{scrbook} -\RequirePackage[latin1]{inputenc} \RequirePackage[TS1,T1]{fontenc} \newcommand*{\strngerman}{ngerman} \newcommand*{\strenglish}{english} @@ -659,6 +656,8 @@ % \begin{macro}{\PageStyle} % \begin{macro}{\Variable} % \begin{macro}{\FontElement} +% \begin{macro}{\DoHook} +% \changes{v1.14}{2019/02/20}{neu}^^A % \begin{macro}{\PName} % \begin{macro}{\PValue} % \begin{macro}{\Parameter} @@ -1003,12 +1002,12 @@ \BeginIndex{PLength}{#1}% \LabelPLength{#1}% \scr@ifundefinedorrelax{% - r@\label@desc@prefix scrlttr2-experts.cmd.@setplength}{% - \textMacro{@setplength}% + r@\label@desc@prefix scrlttr2-experts.cmd.setplength}{% + \textMacro{setplength}% }{% \begingroup \let\Macro\textMacro - \DescRef{scrlttr2-experts.cmd.@setplength}% + \DescRef{scrlttr2-experts.cmd.setplength}% \endgroup }% \PParameter{#1}\Parameter{\lengthname}% @@ -1050,7 +1049,7 @@ \endgroup } \DeclareSpecialMarkup{\FontElement}{\mbox{\texttt{#1}}}{% - \par + \par \leftskip\z@ \BeginIndex{FontElement}{#1}% \LabelFontElement{#1}% @@ -1071,6 +1070,45 @@ }% \PParameter{#1}\OParameter{\fontsettingname}% } +\newcommand*{\LabelDoHook}[2][\label@suffix]{% + \begingroup + \renewcommand*{\PName}[1]{=##1=}% + \ForDoHook{#2}{\Label@DoHook{#1}}% + \endgroup +} +\newcommand*{\Label@DoHook}[3]{% + \IfArgIsEmpty{#3}{\@firstofone}{% + \scr@ifundefinedorrelax{dhr@\label@desc@prefix\label@base.dohook.#2#1}{% + \@firstofone + }{% + \@gobble + }% + }{% + \protected@edef\@currentlabel{\DoHook{#2}}% + \label@sanitize + \Hy@MakeCurrentHref{\label@desc@prefix\label@base.dohook.#2#1}% + \ClassInfo{scrguide}{Anchor: `\@currentHref'}% + \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% + \label{\label@desc@prefix\label@base.dohook.#2#1}% + \expandafter\gdef + \csname dhr@\label@desc@prefix\label@base.dohook.#2#1\endcsname{#3}% + }% +} +\DeclareSpecialMarkup{\DoHook}{\mbox{\texttt{#1}}}{% + \par + \leftskip\z@ + \BeginIndex{DoHook}{#1}% + \LabelDoHook{#1}% + \scr@ifundefinedorrelax{r@scrbase.cmd.ExecuteDoHook}{% + \textMacro{ExecuteDoHook}% + }{% + \begingroup + \let\Macro\textMacro + \DescRef{scrbase.cmd.ExecuteDoHook}% + \endgroup + }% + \PParameter{#1}% +} \DeclareRobustCommand*{\PName}[1]{\texttt{\textit{#1}}} \DeclareRobustCommand*{\PValue}[1]{\texttt{#1}} \DeclareRobustCommand*{\Parameter}[1]{% @@ -1314,6 +1352,7 @@ \scr@Desc@let\PLength \scr@Desc@let\FontElement \scr@Desc@let\FloatStyle + \scr@Desc@let\DoHook % Todo: Replace the following by the correct definitions: \let\XMacro\textMacro \let\XEnvironment\textEnvironment @@ -1881,7 +1920,17 @@ basicstyle=\ttfamily,% columns=fullflexible,keepspaces,% aboveskip=.4\baselineskip,% - belowskip=\dp\strutbox plus 1pt minus .5pt% + belowskip=\dp\strutbox plus 1pt minus .5pt,% + literate=% + {Ö}{{\"O}}1 + {Ä}{{\"A}}1 + {Ü}{{\"U}}1 + {ß}{{\ss}}1 + {ü}{{\"u}}1 + {ä}{{\"a}}1 + {ö}{{\"o}}1 + {»}{{\guillemetright}}1 + {«}{{\guillemetleft}}1 }% \lstdefinestyle{code}{% language=[LaTeX]TeX,% @@ -1920,10 +1969,12 @@ addtokomafont,addtolengthplength,addtoreffields,addtotoclist, adrchar,adrentry, AddLayersAtBeginOfPageStyle,AddLayersToPageStyle, + AddtoDoHook,AddtoOneTimeDoHook, AfterBibliographyPreamble,AfterCalculatingTypearea, AfterFile,AfterPackage,AfterStartingTOC,AfterTOCHead, appendixmore,appendixname,areaset,autodot,automark,AtAddToTocList, - AtBeginLetter, + AtBeginLetter,At@startsection, + Before@sect,Before@ssect, BeforeFamilyProcessOptions, BeforeClosingMainAux,BeforePackage,bib@beginhook,bib@endhook, blinddocument,blindtext,Blinddocument,Blindtext, @@ -1952,14 +2003,14 @@ DestroyLayer,defpagestyle,deftripstyle, dictum,dictumauthorformat,dictumrule,dictumwidth,doforeachtocfile, ellipsispar, - encl,extratitle,FamilyBoolKey,FamilyExecuteOptions, + encl,ExecuteDoHook,extratitle,FamilyBoolKey,FamilyExecuteOptions, FamilyKeyState,FamilyKeyStateUnknown,FamilyKeyStateProcessed, FamilyKeyStateUnknownValue,FamilyKeyStateNeedValue, FamilyNumericalKey,% FamilyOption,FamilyOptions,FamilyProcessOptions,FamilySetBool, FamilyStringKey,FamilyUnknownKeyValue, figureformat,figurename,firstfoot,firsthead,FirstName,footfont,footref, - ForEachLayerOfPageStyle, + ForDoHook,ForEachLayerOfPageStyle, FreeI,FreeII,FreeIII,FreeIV, GenericMarkFormat, headfont,headmark, @@ -2008,6 +2059,7 @@ setheadsepline,setheadtopline,setheadwidth,setindexpreamble,setkomafont, setkomavar,setlengthtoplength,setparsizes,setpartpreamble,setuptoc, showfields,showenvelope,showISOenvelope,showUScommercial,showUScheck, + SplitDoHook, storeareas,StorePreventPackageFromLoading, subject,SubClause,subsectionmarkformat,subtitle,syncwithnotecolumn, tableformat,tablename,tableofcontents,textsubscript,thechapter,thefigure, @@ -2331,6 +2383,9 @@ KOMAScript \endcsname \printmultiindex[% \CrossIndex{\GuideOption}{gen}{\GuideoptIndexShort}% ]{\GuideoptIndex}{opt}% + \printmultiindex[% + \CrossIndex{\GuideHook}{gen}{\GuidehokIndexShort}% + ]{\GuidehokIndex}{hok} } \fi % \end{macrocode} @@ -2617,7 +2672,7 @@ KOMAScript \endcsname % Now we have to define different kinds of index entries. We have entries that % will be added to only one index. We have entries that will be added to one % index with reference to that index at another index. And there are even -% entries that will be added to one index with reference to to that index from +% entries that will be added to one index with reference to that index from % another index and from the main index. % \begin{macro}{\DefineSingeIndex} % This defines a single index entry, e.g. of commands. A macro will be @@ -2732,6 +2787,7 @@ KOMAScript \endcsname \DefineSingleIndex[\GuideVariable]{Variable}{cmd}{\Variable} \DefineSingleIndex{FontElement}{elm}{\FontElement} \DefineSingleIndex{PLength}{len}{\PLength} + \DefineSingleIndex{DoHook}{hok}{\DoHook} \else \DefineDoubleIndex[\GuideEnvironment]{Env}{cmd}{\Environment} \DefineDoubleIndex{Option}{opt}{\Option} @@ -2741,6 +2797,7 @@ KOMAScript \endcsname \DefineDoubleIndex[\GuideVariable]{Variable}{cmd}{\Variable} \DefineDoubleIndex{FontElement}{elm}{\FontElement} \DefineDoubleIndex{PLength}{len}{\PLength} + \DefineDoubleIndex{DoHook}{hok}{\DoHook} \fi % \end{macrocode} % |