| 1 |
% \iffalse meta-comment |
| 2 |
% ====================================================================== |
| 3 |
% scrjura.dtx |
| 4 |
% Copyright (c) Markus Kohm, 2007-2025 |
| 5 |
% |
| 6 |
% This file is part of the LaTeX2e KOMA-Script bundle. |
| 7 |
% |
| 8 |
% This work may be distributed and/or modified under the conditions of |
| 9 |
% the LaTeX Project Public License, version 1.3c of the license. |
| 10 |
% The latest version of this license is in |
| 11 |
% http://www.latex-project.org/lppl.txt |
| 12 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 13 |
% version 2005/12/01 or later and of this work. |
| 14 |
% |
| 15 |
% This work has the LPPL maintenance status "author-maintained". |
| 16 |
% |
| 17 |
% The Current Maintainer and author of this work is Markus Kohm. |
| 18 |
% |
| 19 |
% The KOMA-Script bundle consists of all files listed in MANIFEST.md. |
| 20 |
% ====================================================================== |
| 21 |
%%% From File: $Id: scrjura.dtx 4242 2025-11-12 08:18:22Z kohm $ |
| 22 |
%<identify>%%% (run: identify) |
| 23 |
%<init>%%% (run: init) |
| 24 |
%<options>%%% (run: options) |
| 25 |
%<postoptions>%%% (run: postoptions) |
| 26 |
%<body>%%% (run: body) |
| 27 |
%<final>%%% (run: final) |
| 28 |
%<*dtx> |
| 29 |
\begingroup |
| 30 |
\def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}} |
| 31 |
\filedate$Date: 2025-11-12 09:18:22 +0100 (Mi, 12 Nov 2025) $ |
| 32 |
\def\filerevision$#1: #2 ${\gdef\filerevision{r#2}} |
| 33 |
\filerevision$Revision: 4242 $ |
| 34 |
\endgroup |
| 35 |
\expandafter\ifx\csname ProvidesFile\endcsname\relax |
| 36 |
\def\ProvidesFile#1[#2]{} |
| 37 |
\fi |
| 38 |
\ProvidesFile{scrjura.dtx}[\filedate\space\filerevision\space |
| 39 |
%</dtx> |
| 40 |
%<package&identify>\NeedsTeXFormat{LaTeX2e}[2022/06/01] |
| 41 |
%<package&identify>\ProvidesPackage{scrjura}[% |
| 42 |
%<*dtx|(package&identify)> |
| 43 |
%!KOMAScriptVersion |
| 44 |
package |
| 45 |
%<*dtx> |
| 46 |
source |
| 47 |
%</dtx> |
| 48 |
(for jurists) |
| 49 |
] |
| 50 |
%</dtx|(package&identify)> |
| 51 |
%<*dtx> |
| 52 |
\ifx\documentclass\undefined |
| 53 |
%</dtx> |
| 54 |
%<*ins> |
| 55 |
\input scrdocstrip.tex |
| 56 |
\@@input scrkernel-version.dtx |
| 57 |
\@@input scrstrip.inc |
| 58 |
\KOMAdefVariable{COPYRIGHTFROM}{2007} |
| 59 |
\generate{\usepreamble\defaultpreamble |
| 60 |
\file{scrjura.ins}{% |
| 61 |
\from{scrjura.dtx}{ins}% |
| 62 |
}% |
| 63 |
\file{scrjura.sty}{% |
| 64 |
\from{scrjura.dtx}{package,identify}% |
| 65 |
\from{scrjura.dtx}{package,body}% |
| 66 |
\from{scrlogo.dtx}{logo}% |
| 67 |
}% |
| 68 |
}% |
| 69 |
\@@input scrstrop.inc |
| 70 |
%</ins> |
| 71 |
%<*dtx> |
| 72 |
\else |
| 73 |
\let\endbatchfile\relax |
| 74 |
\fi |
| 75 |
%</dtx> |
| 76 |
%<*ins> |
| 77 |
\endbatchfile |
| 78 |
%</ins> |
| 79 |
%<*dtx> |
| 80 |
\documentclass{koma-script-source-doc} |
| 81 |
\usepackage[USenglish]{babel} |
| 82 |
\setcounter{StandardModuleDepth}{2} |
| 83 |
\begin{document} |
| 84 |
\DocInput{scrjura.dtx} |
| 85 |
\end{document} |
| 86 |
%</dtx> |
| 87 |
% \fi |
| 88 |
% |
| 89 |
% \changes{v3.36}{2022/01/25}{switch over from \cls*{scrdoc} to |
| 90 |
% \cls*{koma-script-source-doc}} |
| 91 |
% \changes{v3.40}{2023/04/17}{guide names changed} |
| 92 |
% \changes{v3.42}{2024/02/13}{compatibility wrapper to \pkg*{contract}} |
| 93 |
% |
| 94 |
% \GetFileInfo{scrjura.dtx} |
| 95 |
% \title{\KOMAScript{} in the Law Office\\ |
| 96 |
% with Package \pkg*{scrjura}} |
| 97 |
% \date{Version \fileversion{} of \filedate} |
| 98 |
% \author{\href{mailto:[email protected]}{Markus Kohm}} |
| 99 |
% \maketitle |
| 100 |
% \begin{abstract} |
| 101 |
% From \KOMAScript{} version~3.42, the \pkg*{scrjura} package is deprecated |
| 102 |
% and only a compatibility wrapper to package \pkg{contract}. |
| 103 |
% \end{abstract} |
| 104 |
% |
| 105 |
% \tableofcontents |
| 106 |
% |
| 107 |
% \section{User Manual} |
| 108 |
% |
| 109 |
% You can find the user manual of \pkg*{scrjura} in the \KOMAScript{} manual, |
| 110 |
% either the German \file{scrguide-de.pdf} or the English |
| 111 |
% \file{scrguide-en.pdf}. |
| 112 |
% |
| 113 |
% \MaybeStop{\PrintIndex} |
| 114 |
% |
| 115 |
% \section{Implementation} |
| 116 |
% |
| 117 |
% \begin{macrocode} |
| 118 |
%<*package&body> |
| 119 |
\RequirePackageWithOptions{contract}[=v0.9] |
| 120 |
% \end{macrocode} |
| 121 |
% |
| 122 |
% \begin{macro}{\contract@paragraph,\contract@subparagraph} |
| 123 |
% Both macros of \pkg{contract} support an optional argument, but |
| 124 |
% \pkg*{scrjura} expects a mandatory argument instead. |
| 125 |
% \begin{macrocode} |
| 126 |
\NewCommandCopy{\scrjura@paragraph}{\contract@paragraph} |
| 127 |
\NewCommandCopy{\scrjura@subparagraph}{\contract@subparagraph} |
| 128 |
\RenewDocumentCommand\contract@paragraph{m}{\scrjura@paragraph[{#1}]} |
| 129 |
\RenewDocumentCommand\contract@subparagraph{m}{\scrjura@subparagraph[{#1}]} |
| 130 |
% \end{macrocode} |
| 131 |
% \end{macro} |
| 132 |
% |
| 133 |
% \section{Detection and Handling of Deprecated Paragraph Commands} |
| 134 |
% |
| 135 |
% All these commands are deprecated and now generate error messages instead of |
| 136 |
% code. |
| 137 |
% |
| 138 |
% \begin{command}{\Paragraph,\SubParagraph,\refParagraph,\refParagraphN, |
| 139 |
% \DeprecatedParagraph,\ParagraphCompatibilityHacks} |
| 140 |
% \changes{scrjura-v1.0}{2014/11/22}{throw error for deprecated commands but |
| 141 |
% only once} |
| 142 |
% \changes{v3.49}{2025/11/12}{moved from package \pkg{contract}} |
| 143 |
% \begin{description} |
| 144 |
% \item[Todo:] Remove deprecated commands, because they already throw errors |
| 145 |
% for about nine years. |
| 146 |
% \end{description} |
| 147 |
% \begin{macrocode} |
| 148 |
%<*body> |
| 149 |
\providecommand*{\DeprecatedParagraph}{% |
| 150 |
\PackageError{contract}{modification of old document needed}{% |
| 151 |
It seem that this document was made for scrjura up to version |
| 152 |
0.7a.\MessageBreak |
| 153 |
Since scrjura version 0.9 \string\Paragraph, \string\SubParagraph, and all |
| 154 |
depending\MessageBreak |
| 155 |
commands, options, and counters have been renamed.\MessageBreak |
| 156 |
You should replace the terms `Paragraph' and `paragraph` by `Clause` |
| 157 |
and\MessageBreak |
| 158 |
`clause` if they are part of the name of a contract feature, otherwise |
| 159 |
this\MessageBreak |
| 160 |
document may produce severall additional error messages and maybe the |
| 161 |
wrong\MessageBreak |
| 162 |
result. Sorry for the inconvenience.% |
| 163 |
}% |
| 164 |
\ParagraphCompatibilityHacks |
| 165 |
} |
| 166 |
\providecommand*{\ParagraphCompatibilityHacks}{% |
| 167 |
\PackageWarning{contract}{compatibility hacks for `\string\Paragraph' |
| 168 |
executed.\MessageBreak |
| 169 |
There is no support for documents using these hacks!\MessageBreak |
| 170 |
There is no warranty for real compatibility!\MessageBreak |
| 171 |
Even if the LaTeX run of the document doesn't report\MessageBreak |
| 172 |
any error, the result may be completely wrong.\MessageBreak |
| 173 |
Therefore it is recommended to solve the problem,\MessageBreak |
| 174 |
instead of trying to work around using the\MessageBreak |
| 175 |
compatibility hacks% |
| 176 |
}% |
| 177 |
\gdef\Paragraph{\Clause}% |
| 178 |
\gdef\SubParagraph{\SubClause}% |
| 179 |
\gdef\c@Paragraph{\c@Clause}% |
| 180 |
\gdef\cl@Paragraph{\cl@Clause}% |
| 181 |
\gdef\c@SubParagraph{\c@SubClause}% |
| 182 |
\gdef\cl@SubParagraph{\cl@SubClause}% |
| 183 |
\gdef\theParagraph{\theClause}% |
| 184 |
\gdef\theSubParagraph{\theSubClause}% |
| 185 |
\gdef\refParagraph{\refClause}% |
| 186 |
\gdef\refParagraphN{\refClauseN}% |
| 187 |
\aliaskomafont{Paragraph}{Clause}% |
| 188 |
\scr@ifundefinedorrelax{Paragraphmark}{}{% |
| 189 |
\global\let\Clausemark\Paragraphmark |
| 190 |
}% |
| 191 |
} |
| 192 |
\providecommand*{\Paragraph}{\DeprecatedParagraph\Paragraph} |
| 193 |
\providecommand*{\SubParagraph}{\DeprecatedParagraph\SubParagraph} |
| 194 |
\providecommand*{\refParagraph}{\DeprecatedParagraph\refParagraph} |
| 195 |
\providecommand*{\refParagraphN}{\DeprecatedParagraph\refParagraphN} |
| 196 |
%</body> |
| 197 |
% \end{macrocode} |
| 198 |
% \end{command} |
| 199 |
% |
| 200 |
% \iffalse |
| 201 |
%</package&body> |
| 202 |
% \fi |
| 203 |
% |
| 204 |
% \Finale |
| 205 |
% \PrintChanges |
| 206 |
% |
| 207 |
\endinput |
| 208 |
% Local Variables: |
| 209 |
% mode: doctex |
| 210 |
% ispell-local-dictionary: "en_US" |
| 211 |
% eval: (flyspell-mode 1) |
| 212 |
% TeX-master: t |
| 213 |
% TeX-engine: luatex-dev |
| 214 |
% eval: (setcar (or (cl-member "Index" (setq-local TeX-command-list (copy-alist TeX-command-list)) :key #'car :test #'string-equal) (setq-local TeX-command-list (cons nil TeX-command-list))) '("Index" "mkindex %s" TeX-run-index nil t :help "makeindex for dtx")) |
| 215 |
% End: |