summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/abstract
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-28 23:43:10 +0000
committerKarl Berry <karl@freefriends.org>2009-05-28 23:43:10 +0000
commit944d2179a383e4c5a5a771bd3e39be4737186be3 (patch)
treeb1c86520d0234e6a0e4eabc51e6b8520adb8ad58 /Master/texmf-dist/tex/latex/abstract
parentb6882bb799dccf46cc7ce52a7f65ce972235cb1f (diff)
abstract 1.2 (27may09)
git-svn-id: svn://tug.org/texlive/trunk@13512 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/abstract')
-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}%