diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/scrjura.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/koma-script/scrjura.sty | 106 |
1 files changed, 64 insertions, 42 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/scrjura.sty b/Master/texmf-dist/tex/latex/koma-script/scrjura.sty index 5ee1bbb68da..d1ee78fd7c9 100644 --- a/Master/texmf-dist/tex/latex/koma-script/scrjura.sty +++ b/Master/texmf-dist/tex/latex/koma-script/scrjura.sty @@ -4,10 +4,15 @@ %% %% The original source files were: %% -%% scrjura.dtx (with options: `package') +%% scrjura.dtx (with options: `package,identify') +%% scrjura.dtx (with options: `package,init') +%% scrjura.dtx (with options: `package,options') +%% scrjura.dtx (with options: `package,postoptions') +%% scrjura.dtx (with options: `package,body') +%% scrjura.dtx (with options: `package,final') %% scrlogo.dtx (with options: `logo') %% -%% Copyright (c) 2007-2017 Markus Kohm [komascript at gmx info] +%% Copyright (c) 2007-2019 Markus Kohm [komascript at gmx info] %% %% This file was generated from file(s) of the KOMA-Script bundle. %% --------------------------------------------------------------- @@ -35,17 +40,20 @@ %% %% The KOMA-Script bundle (but maybe not this file) was based upon the %% LaTeX 2.09 Script family created by Frank Neukam 1993 and the LaTeX2e -%% standard classes created by The LaTeX3 Project 1994-1996. You may +%% standard classes created by The LaTeX3 Project 1994-1996. You can %% find a complete unmodified copy of LaTeX2e at %% <http://mirror.ctan.org/tex-archive/macros/latex/base/>. %% -%%% From File: $Id: scrjura.dtx 3033 2018-09-21 07:36:59Z kohm $ +%%% From File: $Id: scrjura.dtx 3262 2019-10-10 08:25:29Z kohm $ +%%% (run: identify) \NeedsTeXFormat{LaTeX2e}[1995/06/01] \ProvidesPackage{scrjura}[% - 2019/02/01 v3.26b KOMA-Script + 2019/10/12 v3.27 KOMA-Script package (for jurists) ] +%%% From File: $Id: scrjura.dtx 3262 2019-10-10 08:25:29Z kohm $ +%%% (run: init) \@ifpackageloaded{hyperref}{% \PackageError{scrjura}{Package hyperref already loaded}{% If you want to use package scrjura with package hyperref, you have to @@ -57,44 +65,42 @@ } \RequirePackage{scrkbase}[2013/03/26] \RequirePackage{tocbasic} +\DeclareTOCStyleEntry[% + indent=1.5em, + numwidth=2em, + level=\maxdimen +]{default}{cpar} +%%% From File: $Id: scrjura.dtx 3262 2019-10-10 08:25:29Z kohm $ +%%% (run: options) \DeclareOption{contract}{% \g@addto@macro\document\contract% } -\newcounter{juratoclevel}\setcounter{juratoclevel}{\@M} \KOMA@key{juratotoc}[true]{% - \begingroup - \KOMA@set@ifkey{juratoclevel}{@tempswa}{#1}% - \ifx\FamilyKeyState\FamilyKeyStateProcessed - \if@tempswa - \setcounter{juratoclevel}{2}% - \else - \setcounter{juratoclevel}{\@M}% - \fi + \KOMA@set@ifkey{juratotoc}{@tempswa}{#1}% + \ifx\FamilyKeyState\FamilyKeyStateProcessed + \if@tempswa + \DeclareTOCStyleEntry[level=2]{default}{cpar}% \else - \setcounter{juratoclevel}{#1}% + \DeclareTOCStyleEntry[level=\maxdimen]{default}{cpar}% \fi - \endgroup - \FamilyKeyStateProcessed - \KOMA@kav@xreplacevalue{.scrjura.sty}{juratotoc}{\value{juratoclevel}}% + \else + \DeclareTOCStyleEntry[level=#1]{default}{cpar}% + \fi + \KOMA@kav@xreplacevalue{.scrjura.sty}{juratotoc}{\cpartocdepth}% } -\KOMA@kav@xadd{.scrjura.sty}{juratotoc}{\value{juratoclevel}}% -\providecommand*{\toclevel@cpar}{\arabic{juratoclevel}} -\newcommand*{\cpar@numberwidth}{2em} -\newcommand*{\cpar@indent}{1.5em} +\KOMA@kav@xadd{.scrjura.sty}{juratotoc}{\cpartocdepth}% \KOMA@key{juratocnumberwidth}{% - \begingroup\setlength{\@tempdima}{#1}\endgroup - \renewcommand*{\cpar@numberwidth}{#1}% + \DeclareTOCStyleEntry[numwidth=#1]{default}{cpar}% \FamilyKeyStateProcessed - \KOMA@kav@replacevalue{.scrjura.sty}{juratocnumberwidth}{\cpar@numberwidth}% + \KOMA@kav@replacevalue{.scrjura.sty}{juratocnumberwidth}{#1}% } -\KOMA@kav@add{.scrjura.sty}{juratocnumberwidth}{\cpar@numberwidth} +\KOMA@kav@add{.scrjura.sty}{juratocnumberwidth}{2em} \KOMA@key{juratocindent}{% - \begingroup\setlength{\@tempdima}{#1}\endgroup - \renewcommand*{\cpar@indent}{#1}% + \DeclareTOCStyleEntry[indent=#1]{default}{cpar}% \FamilyKeyStateProcessed - \KOMA@kav@replacevalue{.scrjura.sty}{juratocindent}{\cpar@indent}% + \KOMA@kav@replacevalue{.scrjura.sty}{juratocindent}{#1}% } -\KOMA@kav@add{.scrjura.sty}{juratocindent}{\cpar@indent}% +\KOMA@kav@add{.scrjura.sty}{juratocindent}{1.5em}% \KOMA@ifkey{juratitlepagebreak}{@juratitlepagebreak} \newif\ifparnumber \KOMA@key{parnumber}[true]{% @@ -262,7 +268,11 @@ \KOMA@kav@add{.scrjura.sty}{ref}{sentencelong}% \KOMA@DeclareDeprecatedOption[scrjura]{parcitename}{ref=parlong} \KOMA@DeclareDeprecatedOption[scrjura]{sentencecitename}{ref=sentencelong} +%%% From File: $Id: scrjura.dtx 3262 2019-10-10 08:25:29Z kohm $ +%%% (run: postoptions) \KOMAProcessOptions\relax +%%% From File: $Id: scrjura.dtx 3262 2019-10-10 08:25:29Z kohm $ +%%% (run: body) \providecommand*{\DeprecatedParagraph}{% \PackageError{scrjura}{modification of old document needed}{% It seem that this document was made for scrjura up to version @@ -635,6 +645,20 @@ \newcommand*{\ManualPar}{% \let\scrjura@everypar\relax } +\CheckCommand*{\@afterheading}{% + \@nobreaktrue + \everypar{% + \if@nobreak + \@nobreakfalse + \clubpenalty \@M + \if@afterindent \else + {\setbox\z@\lastbox}% + \fi + \else + \clubpenalty \@clubpenalty + \everypar{}% + \fi}% +} \newcommand*{\scrjura@afterheading}{% \@nobreaktrue \everypar{% @@ -713,15 +737,6 @@ }% } \EndIncludeInRelease -\newcommand*{\l@cpar}[2]{% - \ifnum\value{juratoclevel}>\value{tocdepth}\else - \scr@ifundefinedorrelax{bprot@dottedtocline}{% - \@dottedtocline - }{% - \bprot@dottedtocline - }{\value{juratoclevel}}{\cpar@indent}{\cpar@numberwidth}{#1}{#2}% - \fi -} \DeclareRobustCommand*{\scrjura@separator}[1]{#1} \DeclareRobustCommand*{\scrjura@usetype}[1]{\scrjura@@usetype{#1}} \newcommand*{\scrjura@@usetype}[1]{} @@ -973,9 +988,14 @@ \newcounter{sentence}[par] \renewcommand*{\thesentence}{\arabic{sentence}} \newcommand*{\theHsentence}{\theHpar-\arabic{sentence}} -\renewcommand*{\p@sentence}{\expandafter\p@@sentence} -\newcommand*{\p@@sentence}[1]{\p@par{{\par@cite{\thepar}}% - \scrjura@separator{\nobreakspace}}{\sentence@cite{#1}}} +\scr@ifundefinedorrelax{labelformat}{% + \renewcommand*{\p@sentence}{\expandafter\p@@sentence} + \newcommand*{\p@@sentence}[1]{\p@par{{\par@cite{\thepar}}% + \scrjura@separator{\nobreakspace}}{\sentence@cite{#1}}}% +}{% + \labelformat{sentence}{\p@par{{\par@cite{\thepar}}% + \scrjura@separator{\nobreakspace}}{\sentence@cite{#1}}}% +} \newcommand*{\contract@sentence}{% \ifvmode \if@endpe @@ -1086,6 +1106,8 @@ }% \fi } +%%% From File: $Id: scrjura.dtx 3262 2019-10-10 08:25:29Z kohm $ +%%% (run: final) %%% From File: $Id: scrlogo.dtx 2640 2017-05-08 09:36:55Z kohm $ \@ifundefined{KOMAScript}{% \DeclareRobustCommand{\KOMAScript}{\textsf{K\kern.05em O\kern.05em% |