summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-23 22:34:45 +0000
committerKarl Berry <karl@freefriends.org>2018-01-23 22:34:45 +0000
commitce07f5180b54e0229abae4d10288940c610afe31 (patch)
treefeef3d1dc42bedb22d5648026a39b03388027167 /Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty
parent607588e2b8c554ec8bfbe11f1391622768fe79c8 (diff)
lwarp (23jan18)
git-svn-id: svn://tug.org/texlive/trunk@46416 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty30
1 files changed, 29 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty
index d5f78b8c505..4d899d4076e 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty
@@ -15,6 +15,7 @@
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
+\ProvideDocumentEnvironment{abstract}{}{}{}
\LWR@ProvidesPackagePass{abstract}
\AtBeginDocument{
@@ -32,6 +33,33 @@
\@bslabeldelim}%
}
+\@ifclassloaded{memoir}
+{
+ \renewenvironment{abstract}{%
+ \null\vfil
+ \@beginparpenalty\@lowpenalty
+ \if@bsrunin
+ \else
+ \if@bsstyle
+ \abstitlestyle{\BlockClassSingle{abstracttitle}{\abstractname}}
+ \else
+ \ifnumber@bs
+ \num@bs
+ \else
+ \begin{\absnamepos}%
+ \abstractnamefont \BlockClassSingle{abstracttitle}{\abstractname}
+ \@endparpenalty\@M
+ \end\absnamepos%
+%% \vspace{\abstitleskip}%
+ \fi
+ \fi
+ \vspace{\abstitleskip}%
+ \fi
+ \put@bsintoc%
+ \begin{@bstr@ctlist}\if@bsrunin\@bsrunintitle\fi\abstracttextfont}%
+ {\par\end{@bstr@ctlist}\vfil\null%\endtitlepage
+ }
+}{% not memoir
\if@titlepage
\renewenvironment{abstract}{%
\null\vfil
@@ -79,7 +107,7 @@
\begin{@bstr@ctlist}\if@bsrunin\@bsrunintitle\fi\abstracttextfont}%
{\par\end{@bstr@ctlist}}
\fi
-
+}% not memoir
\endinput
%%