summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/abstract/abstract.sty53
1 files changed, 37 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/abstract/abstract.sty b/Master/texmf-dist/tex/latex/abstract/abstract.sty
index 6fad44c848a..ee1927806de 100644
--- a/Master/texmf-dist/tex/latex/abstract/abstract.sty
+++ b/Master/texmf-dist/tex/latex/abstract/abstract.sty
@@ -7,9 +7,8 @@
%% abstract.dtx (with options: `usc')
%%
%% -----------------------------------------------------------------
-%% Author: Peter Wilson (CUA) now at peter.r.wilson@boeing.com until June 2004
-%% (or at: pandgwilson at earthlink dot net)
-%% Copyright 2000 --- 2004 Peter R. Wilson
+%% Author: Peter Wilson, Herries Press (herries dot press at earthlink dot net)
+%% Copyright 2000 --- 2009 Peter R. Wilson
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -26,7 +25,7 @@
%% -----------------------------------------------------------------
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{abstract}[2001/02/11 v1.1 configurable abstracts]
+\ProvidesPackage{abstract}[2009/05/23 v1.2 configurable abstracts]
\newif\if@bsonecol
\@bsonecoltrue
@@ -36,13 +35,17 @@
\number@bsfalse
\newif\if@bsrunin
\@bsruninfalse
+\newif\if@bsstyle
+ \@bsstylefalse
\DeclareOption{original}{\@bsonecolfalse}
\DeclareOption{addtotoc}{\add@bstotoctrue}
\DeclareOption{number}{\number@bstrue}
\DeclareOption{runin}{\@bsrunintrue}
+\DeclareOption{style}{\@bsstyletrue}
\ProcessOptions\relax
-\if@bsrunin\number@bsfalse\fi
+\if@bsstyle\number@bsfalse\add@bstotocfalse\fi
+\if@bsrunin\number@bsfalse\@bsstylefalse\fi
\newcommand{\abstractnamefont}{\normalfont\small\bfseries}
\newcommand{\abstracttextfont}{\normalfont\small}
@@ -108,30 +111,48 @@
\chapter{\abstractname}}
}
+\newcommand*{\abstitlestyle}[1]{#1}
+
\if@titlepage
\renewenvironment{abstract}{%
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
- \if@bsrunin\else
- \ifnumber@bs \num@bs \else
- \begin{\absnamepos}%
- \abstractnamefont \abstractname
- \@endparpenalty\@M
- \end\absnamepos%
- \vspace{\abstitleskip}%
+ \if@bsrunin
+ \else
+ \if@bsstyle
+ \abstitlestyle{\abstractname}
+ \else
+ \ifnumber@bs
+ \num@bs
+ \else
+ \begin{\absnamepos}%
+ \abstractnamefont \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}
\else
\renewenvironment{abstract}{%
- \if@bsrunin\else
- \ifnumber@bs \num@bs \else
- \begin{\absnamepos}\abstractnamefont\abstractname\end\absnamepos%
- \vspace{\abstitleskip}%
+ \if@bsrunin
+ \else
+ \if@bsstyle
+ \abstitlestyle{\abstractname}
+ \else
+ \ifnumber@bs
+ \num@bs
+ \else
+ \begin{\absnamepos}\abstractnamefont\abstractname\end\absnamepos%
+%% \vspace{\abstitleskip}%
+ \fi
\fi
+ \vspace{\abstitleskip}%
\fi
\put@bsintoc%
\begin{@bstr@ctlist}\if@bsrunin\@bsrunintitle\fi\abstracttextfont}%