| 1 |
%% |
| 2 |
%% This is file `lwarp-patch-komascript.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `patch-komascript') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
\ProvidesPackage{lwarp-patch-komascript} |
| 20 |
\RequirePackage{lwarp-typearea} |
| 21 |
\RequirePackage{lwarp-tocbasic} |
| 22 |
\RequirePackage{lwarp-scrextend} |
| 23 |
\AtBeginDocument{ |
| 24 |
\LWR@traceinfo{lwarp-patch-komascript AtBeginDocument 1} |
| 25 |
|
| 26 |
\renewcommand*{\idx@heading}{% |
| 27 |
\idx@@heading{\indexname}% |
| 28 |
} |
| 29 |
|
| 30 |
\renewenvironment{theindex}{% |
| 31 |
\idx@heading% |
| 32 |
\index@preamble\par\nobreak |
| 33 |
\DeclareCommandCopy{\item}{\LWR@indexitem}% |
| 34 |
\DeclareCommandCopy{\subitem}{\LWR@indexsubitem}% |
| 35 |
\DeclareCommandCopy{\subsubitem}{\LWR@indexsubsubitem}% |
| 36 |
} |
| 37 |
{} |
| 38 |
|
| 39 |
\renewcommand*\indexspace{} |
| 40 |
|
| 41 |
}% AtBeginDocument |
| 42 |
\renewcommand*{\minisec}[1]{ |
| 43 |
\begin{BlockClass}{minisec} |
| 44 |
#1 |
| 45 |
\end{BlockClass} |
| 46 |
} |
| 47 |
\@ifundefined{setpartpreamble}{}{ |
| 48 |
\RenewDocumentCommand{\setpartpreamble}{o o +m}{% |
| 49 |
\renewcommand{\part@preamble}{#3}% |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
\@ifundefined{setchapterpreamble}{}{ |
| 54 |
\RenewDocumentCommand{\setchapterpreamble}{o o +m}{% |
| 55 |
\renewcommand{\chapter@preamble}{#3}% |
| 56 |
} |
| 57 |
} |
| 58 |
\renewcommand*{\LWR@printchaptername}{} |
| 59 |
\AtBeginDocument{ |
| 60 |
\LWR@traceinfo{lwarp-patch-komascript AtBeginDocument 2} |
| 61 |
\DeclareCommandCopy{\captionbelow}{\caption} |
| 62 |
\DeclareCommandCopy{\captionabove}{\caption} |
| 63 |
\LWR@traceinfo{lwarp-patch-komascript AtBeginDocument 2a} |
| 64 |
\DeclareCommandCopy{\captionofbelow}{\captionof} |
| 65 |
\DeclareCommandCopy{\captionofabove}{\captionof} |
| 66 |
\LWR@traceinfo{lwarp-patch-komascript AtBeginDocument 2b} |
| 67 |
} |
| 68 |
|
| 69 |
\RenewDocumentEnvironment{captionbeside}{o m o o o s} |
| 70 |
{} |
| 71 |
{% |
| 72 |
\IfValueTF{#1}% |
| 73 |
{\caption[#1]{#2}}% |
| 74 |
{\caption{#2}}% |
| 75 |
} |
| 76 |
|
| 77 |
\RenewDocumentEnvironment{captionofbeside}{m o m o o o s} |
| 78 |
{} |
| 79 |
{% |
| 80 |
\IfValueTF{#2}% |
| 81 |
{\captionof{#1}[#2]{#3}}% |
| 82 |
{\captionof{#1}{#3}}% |
| 83 |
} |
| 84 |
|
| 85 |
\RenewDocumentCommand{\setcapindent}{s m}{} |
| 86 |
\renewcommand*{\setcaphanging}{} |
| 87 |
\renewcommand*{\setcapwidth}[2][]{} |
| 88 |
\renewcommand*{\setcapdynwidth}[2][]{} |
| 89 |
\RenewDocumentCommand{\setcapmargin}{s o m}{} |
| 90 |
|
| 91 |
\AtBeginDocument{ |
| 92 |
\LWR@traceinfo{lwarp-patch-komascript AtBeginDocument done} |
| 93 |
} |
| 94 |
\endinput |
| 95 |
%% |
| 96 |
%% End of file `lwarp-patch-komascript.sty'. |