summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/upmethodology/upmethodology-backpage.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-17 18:02:43 +0000
committerKarl Berry <karl@freefriends.org>2009-11-17 18:02:43 +0000
commit592922d263ef31c47620333f40281f722a5b4e2e (patch)
treef2cf6e71567420254ee534f7f66fb531c72f75fd /Master/texmf-dist/tex/latex/upmethodology/upmethodology-backpage.sty
parent8caf232ea678d2a7c51b476be84aec1fc9e17423 (diff)
upmethodology 20091102 (2nov09)
git-svn-id: svn://tug.org/texlive/trunk@16051 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/upmethodology/upmethodology-backpage.sty')
-rw-r--r--Master/texmf-dist/tex/latex/upmethodology/upmethodology-backpage.sty86
1 files changed, 86 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-backpage.sty b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-backpage.sty
new file mode 100644
index 00000000000..754b7a0dae5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-backpage.sty
@@ -0,0 +1,86 @@
+% Back page for Unified Process Methodology
+%
+% Copyright (c) 2009 Stephane GALLAND <galland@arakhne.org>
+%
+% This program is free library; you can redistribute it and/or modify
+% it under the terms of the GNU Lesser General Public License as
+% published by the Free Software Foundation; either version 3 of the
+% License, or any later version.
+%
+% This library is distributed in the hope that it will be useful, but
+% WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+% Lesser General Public License for more details.
+%
+% You should have received a copy of the GNU Lesser General Public
+% License along with this library; see the file COPYING. If not,
+% write to the Free Software Foundation, Inc., 59 Temple Place - Suite
+% 330, Boston, MA 02111-1307, USA.
+%
+% Creation date: 2009-10-22
+% Modifications:
+% 2009-10-30 Rename \setbacklayout to \setbackcover.
+% Add \makebackcover.
+%
+
+\global\edef\upm@package@bp@ver{2009/10/30}
+
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{upmethodology-backpage}[\upm@package@bp@ver]
+
+\RequirePackage{upmethodology-p-common}
+
+%-----
+% Locales
+\def\upm@back@lang@english{
+ \gdef\upm@lang@@{\message{**** upmethodology-backpage is using English language ****}}%
+}
+\def\upm@back@lang@french{
+ \gdef\upm@lang@@{\message{**** upmethodology-backpage is using French language ****}}%
+}
+%----------------------------------------
+% OPTIONS
+%----------------------------------------
+\DeclareOption{french}{%
+ \upm@back@lang@french
+}
+\DeclareOption{francais}{%
+ \upm@back@lang@french
+}
+\DeclareOption{english}{%
+ \upm@back@lang@english
+}
+\ExecuteOptions{english}
+\ProcessOptions
+\upm@lang@@
+
+\RequirePackage{upmethodology-extension}
+
+%----
+% Set the back page layout as the classic layout theme
+%\setbackcover{layout_name}
+\newcommand{\setbackcover}[1]{%
+ \ifthenelse{\equal{#1}{none}}{%
+ \global\let\makebackcover\relax%
+ }{%
+ \errmessage{invalid back layout theme: #1}%
+ }%
+}
+\newcommand{\setbacklayout}[1]{\errmessage{\string\setbacklayout\ is deprecated. Use \string\setbackcover}}
+
+\setbackcover{none}
+
+\AtEndDocument{
+ \Ifdefined{backpage}{
+ \gdef\makebackcover{
+ \ifupmarticleformat\clearpage%
+ \else
+ \cleardoublepage%
+ \if@twoside\thispagestyle{empty}\mbox{}\clearpage\fi
+ \fi
+ \thispagestyle{empty}\Get{backpage}
+ }
+ }
+}
+
+\endinput