Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-abstract.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `abstract')
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 \ProvideDocumentEnvironment{abstract}{}{}{}
19 \LWR@ProvidesPackagePass{abstract}[2009/06/08]
20
21 \AtBeginDocument{
22 \BeforeBeginEnvironment{abstract}{
23 \LWR@forcenewpage
24 \BlockClass{abstract}
25 }
26 \AfterEndEnvironment{abstract}{\endBlockClass}
27 }
28
29 \renewcommand{\@bsrunintitle}{%
30 \hspace*{\abstitleskip}%
31 {\abstractnamefont%
32 \InlineClass{abstractrunintitle}{\abstractname}%
33 \@bslabeldelim}%
34 }
35 \IfClassLoadedTF{memoir}
36 {
37 \renewenvironment{abstract}{%
38 \setup@bstract
39 \if@bsrunin
40 \else
41 \ifnumber@bs
42 \num@bs
43 \else
44 \begin{\absnamepos}%
45 \abstractnamefont \BlockClassSingle{abstracttitle}{\abstractname}
46 \end\absnamepos%
47 \vspace{\abstitleskip}%
48 \fi
49 \fi
50 \put@bsintoc%
51 \begin{@bstr@ctlist}\if@bsrunin\@bsrunintitle\fi\abstracttextfont}%
52 {\par\end{@bstr@ctlist}%\vfil\null%\endtitlepage
53 }
54 }{% not memoir
55 \if@titlepage
56 \renewenvironment{abstract}{%
57 \null\vfil
58 \@beginparpenalty\@lowpenalty
59 \if@bsrunin
60 \else
61 \if@bsstyle
62 \abstitlestyle{\BlockClassSingle{abstracttitle}{\abstractname}}
63 \else
64 \ifnumber@bs
65 \num@bs
66 \else
67 \begin{\absnamepos}%
68 \abstractnamefont \BlockClassSingle{abstracttitle}{\abstractname}
69 \@endparpenalty\@M
70 \end\absnamepos%
71 %% \vspace{\abstitleskip}%
72 \fi
73 \fi
74 \vspace{\abstitleskip}%
75 \fi
76 \put@bsintoc%
77 \begin{@bstr@ctlist}\if@bsrunin\@bsrunintitle\fi\abstracttextfont}%
78 {\par\end{@bstr@ctlist}\vfil\null%\endtitlepage
79 }
80 \else
81 \renewenvironment{abstract}{%
82 \if@bsrunin
83 \else
84 \if@bsstyle
85 \abstitlestyle{\BlockClassSingle{abstracttitle}{\abstractname}}
86 \else
87 \ifnumber@bs
88 \num@bs
89 \else
90 \begin{\absnamepos}%
91 \abstractnamefont\BlockClassSingle{abstracttitle}{\abstractname}%
92 \end\absnamepos%
93 %% \vspace{\abstitleskip}%
94 \fi
95 \fi
96 \vspace{\abstitleskip}%
97 \fi
98 \put@bsintoc%
99 \begin{@bstr@ctlist}\if@bsrunin\@bsrunintitle\fi\abstracttextfont}%
100 {\par\end{@bstr@ctlist}}
101 \fi
102 }% not memoir
103
104
105 \endinput
106 %%
107 %% End of file `lwarp-abstract.sty'.