Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-scrextend.sty

raw
1 %%
2 %% This is file `lwarp-scrextend.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `scrextend')
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 \LWR@ProvidesPackageDrop{scrextend}[2025/09/09]
19 \providecommand*{\maybesffamily}{}
20 \providecommand{\textmaybesf}[1]{#1}
21 \DeclareDocumentCommand{\setkomafont}{m m}{}
22 \DeclareDocumentCommand{\addkomafont}{m m}{}
23 \DeclareDocumentCommand{\usekomafont}{m}{}
24
25 \DeclareDocumentCommand{\usefontofkomafont}{m}{}
26 \DeclareDocumentCommand{\useencodingofkomafont}{m}{}
27 \DeclareDocumentCommand{\usesizeofkomafont}{m}{}
28 \DeclareDocumentCommand{\usefamilyofkomafont}{m}{}
29 \DeclareDocumentCommand{\useseriesofkomafont}{m}{}
30 \DeclareDocumentCommand{\useshapeofkomafont}{m}{}
31
32 \providecommand*{\coverpagetopmargin}{}
33 \providecommand*{\coverpagebottommargin}{}
34 \providecommand*{\coverpageleftmargin}{}
35 \providecommand*{\coverpagerightmargin}{}
36
37 \AtBeginDocument{
38 \LWR@traceinfo{lwarp-scrextend AtBeginDocument}
39 \let\LWR@koma@orig@maketitle\maketitle
40 \DeclareDocumentCommand{\maketitle}{o}{\LWR@koma@orig@maketitle}
41 }
42
43 \providecommand*{\@maketitle}{}
44 \renewrobustcmd{\@maketitle}{%
45 \ifdefvoid{\@titlehead}{}{%
46 \begin{BlockClass}{titlehead}%
47 \@titlehead%
48 \end{BlockClass}%
49 }%
50 \ifdefvoid{\@subject}{}{%
51 \begin{BlockClass}{subject}%
52 \@subject%
53 \end{BlockClass}%
54 }%
55 \LWR@stoppars%
56 \LWR@htmltag{\LWR@tagtitle}%
57 \@title%
58 \LWR@htmltag{\LWR@tagtitleend}%
59 \ifdefvoid{\@subtitle}{}{%
60 \begin{BlockClass}{subtitle}%
61 \@subtitle%
62 \end{BlockClass}%
63 }%
64 \LWR@startpars%
65 \begin{BlockClass}{author}%
66 \renewcommand*{\cr}{}%
67 \renewcommand*{\crcr}{}%
68 \renewcommand*{\noalign}{}%
69 \renewcommand{\and}{%
70 \end{BlockClass}%
71 \begin{BlockClass}{oneauthor}%
72 }%
73 \begin{BlockClass}{oneauthor}%
74 \@author%
75 \end{BlockClass}%
76 \end{BlockClass}%
77 \begin{BlockClass}{titledate}%
78 \@date%
79 \end{BlockClass}%
80 \ifdefvoid{\@published}{}{%
81 \begin{BlockClass}{published}%
82 \@published%
83 \end{BlockClass}%
84 }%
85 }
86
87 \AddSubtitlePublished
88
89 \DeclareDocumentCommand{\extratitle}{m}{}
90 \DeclareDocumentCommand{\frontispiece}{m}{}
91
92 \def\@titlehead{}%
93 \DeclareDocumentCommand{\titlehead}{m}{\gdef\@titlehead{#1}}%
94
95 \def\@subject{}%
96 \DeclareDocumentCommand{\subject}{m}{\gdef\@subject{#1}}%
97
98
99 \DeclareDocumentCommand{\publishers}{m}{\published{#1}}
100
101 \DeclareDocumentCommand{\uppertitleback}{m}{}
102 \DeclareDocumentCommand{\lowertitleback}{m}{}
103 \DeclareDocumentCommand{\dedication}{m}{}
104
105 \DeclareDocumentCommand{\ifthispageodd}{m m}{#1}
106
107 \DeclareDocumentCommand{\cleardoublepageusingstyle}{m}{}
108 \DeclareDocumentCommand{\cleardoubleemptypage}{}{}
109 \DeclareDocumentCommand{\cleardoubleplainpage}{}{}
110 \DeclareDocumentCommand{\cleardoublestandardpage}{}{}
111 \DeclareDocumentCommand{\cleardoubleoddpage}{}{}
112 \DeclareDocumentCommand{\cleardoubleoddpageusingstyle}{m}{}
113 \DeclareDocumentCommand{\cleardoubleoddemptypage}{}{}
114 \DeclareDocumentCommand{\cleardoubleoddplainpage}{}{}
115 \DeclareDocumentCommand{\cleardoubleoddstandardpage}{}{}
116 \DeclareDocumentCommand{\cleardoubleevenpage}{}{}
117 \DeclareDocumentCommand{\cleardoubleevenpageusingstyle}{m}{}
118 \DeclareDocumentCommand{\cleardoubleevenemptypage}{}{}
119 \DeclareDocumentCommand{\cleardoubleevenplainpage}{}{}
120 \DeclareDocumentCommand{\cleardoubleevenstandardpage}{}{}
121
122 \DeclareDocumentCommand{\multiplefootnoteseparator}{}{%
123 \begingroup\let\thefootnotemark\multfootsep\@makefnmark\endgroup
124 }
125
126 \DeclareDocumentCommand{\multfootsep}{}{,}
127
128 \DeclareDocumentCommand{\footref}{m}{%
129 \begingroup
130 \unrestored@protected@xdef\@thefnmark{\ref{#1}}%
131 \endgroup
132 \@footnotemark
133 }
134
135 \DeclareDocumentCommand{\deffootnote}{o m m m}{}
136 \DeclareDocumentCommand{\deffootnotemark}{m}{}
137 \DeclareDocumentCommand{\setfootnoterule}{o m}{}
138 \DeclareDocumentCommand{\raggedfootnote}{}{}
139 \DeclareDocumentCommand{\dictum}{o m}{
140 \begin{LWR@BlockClassWP}{\LWR@print@mbox{text-align:right}}{}{dictum}
141 #2
142 \IfValueT{#1}
143 {
144 \LWR@stoppars%
145 \ifbool{FormatWP}
146 {\begin{BlockClass}[\LWR@print@mbox{border-top:} 1px solid gray]{dictumauthor}}
147 {\begin{BlockClass}{dictumauthor}}
148 \dictumauthorformat{#1}
149 \end{BlockClass}
150 }
151 \end{LWR@BlockClassWP}
152 }
153
154 \DeclareDocumentCommand{\dictumwidth}{}{}
155 \DeclareDocumentCommand{\dictumauthorformat}{m}{(#1)}
156 \DeclareDocumentCommand{\dictumrule}{}{}
157 \DeclareDocumentCommand{\raggeddictum}{}{}
158 \DeclareDocumentCommand{\raggeddictumtext}{}{}
159 \DeclareDocumentCommand{\raggeddictumauthor}{}{}
160
161 \DeclareDocumentEnvironment{labeling}{o m}
162 {%
163 \def\sc@septext{#1}%
164 \list{}{}%
165 \let\makelabel\labelinglabel%
166 }
167 {
168 \endlist
169 }
170
171 \DeclareDocumentCommand{\labelinglabel}{m}{%
172 #1 \qquad \sc@septext%
173 }
174
175 \let\addmargin\relax
176 \let\endaddmargin\relax
177 \cslet{addmargin*}{\relax}
178 \cslet{endaddmargin*}{\relax}
179 \NewDocumentEnvironment{addmargin}{s O{} m}
180 {
181 \LWR@stoppars%
182 \setlength{\LWR@templengthtwo}{#3}
183 \ifblank{#2}
184 {
185 \begin{BlockClass}[
186 \LWR@print@mbox{margin-left:\LWR@printlength{\LWR@templengthtwo}} ;
187 \LWR@print@mbox{margin-right:\LWR@printlength{\LWR@templengthtwo}}
188 ]{addmargin}
189 }
190 {
191 \setlength{\LWR@templengthone}{#2}
192 \begin{BlockClass}[
193 \LWR@print@mbox{margin-left:\LWR@printlength{\LWR@templengthone}} ;
194 \LWR@print@mbox{margin-right:\LWR@printlength{\LWR@templengthtwo}}
195 ]{addmargin}
196 }
197 }
198 {\end{BlockClass}\LWR@startpars}
199
200 \ExplSyntaxOn
201 \cs_new:cpn {addmargin*} {\addmargin*}
202 \cs_new_eq:cN {endaddmargin*} \endaddmargin
203 \ExplSyntaxOff
204
205 \DeclareDocumentCommand{\marginline}{m}{\marginpar{#1}}
206
207 \endinput
208 %%
209 %% End of file `lwarp-scrextend.sty'.