From c4c9fe537f9caa60fdc44dc3961b5ff6139d0c59 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 24 Jun 2014 18:03:05 +0000 Subject: upmethodology (20jun14) git-svn-id: svn://tug.org/texlive/trunk@34381 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/upmethodology/UPMVERSION.def | 2 +- .../latex/upmethodology/upmethodology-document.cls | 9 ++- .../tex/latex/upmethodology/upmethodology-fmt.sty | 66 ++++++++++++++-------- 3 files changed, 51 insertions(+), 26 deletions(-) (limited to 'Master/texmf-dist/tex/latex/upmethodology') diff --git a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def index b7b6f6b03b5..22f923eda3a 100644 --- a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def +++ b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def @@ -1 +1 @@ -\def\UPMVERSION{20140303} +\def\UPMVERSION{20140620} diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls index c5105d720ec..31daf883c67 100644 --- a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls +++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls @@ -1,6 +1,6 @@ % Document class for Unified Process Methodology % -% Copyright (c) 2006-2013 Stephane GALLAND +% Copyright (c) 2006-2014 Stephane GALLAND % % This program is free library; you can redistribute it and/or modify % it under the terms of the GNU Lesser General Public License as @@ -17,7 +17,7 @@ % write to the Free Software Foundation, Inc., 59 Temple Place - Suite % 330, Boston, MA 02111-1307, USA. -\global\edef\upm@package@docclazz@ver{2013/10/09} +\global\edef\upm@package@docclazz@ver{2014/06/20} \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{upmethodology-document}[\upm@package@docclazz@ver] @@ -52,6 +52,11 @@ \xdef\upm@package@docclazz@optionstopass{\upm@package@docclazz@optionstopass,english}% \PassOptionsToPackage{english}{upmethodology-document} } +\DeclareOption{standardlists}{% + \message{*********** DISABLING UPMETHODOLOGY LISTS} + \PassOptionsToPackage{standardlists}{upmethodology-fmt} +} + \DeclareOption{nodocumentinfo}{% \global\upm@package@docclazz@nodocinfotrue% } diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty index 90c44579ae3..6dbae535964 100644 --- a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty +++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty @@ -31,6 +31,9 @@ \gdef\upm@date@second#1{{\expandafter\expandafter\expandafter\upm@date@head\expandafter\upm@date@tail#1\expandafter\@nil\expandafter\expandafter\expandafter\@nil}} \gdef\upm@date@third#1{{\expandafter\expandafter\expandafter\upm@date@tail\expandafter\upm@date@tail#1\expandafter\@nil\expandafter\expandafter\expandafter\@nil}} +\newif\ifupm@use@override@standard@lists +\global\upm@use@override@standard@liststrue + %---------------------------------------- % LOCALES %---------------------------------------- @@ -79,6 +82,9 @@ \upm@format@lang@english \PassOptionsToPackage{english}{varioref} } +\DeclareOption{standardlists}{% + \global\upm@use@override@standard@listsfalse +} \ExecuteOptions{english} \ProcessOptions \upm@lang@@ @@ -101,6 +107,7 @@ \RequirePackage{xkeyval} \RequirePackage{hyphenat} \RequirePackage{bbm} +\RequirePackage{environ}% for advanced environment declaration %---------------------------------------- % Exponent and indice @@ -1131,33 +1138,46 @@ \end{upm@fmt@enumdescription}% } -% Issue #14: enumerate behaves as enumdescription -\renewenvironment{enumerate}[1][1]{% - \begin{upm@fmt@enumdescription}{#1}{}{\string.~}{}{\enumdescriptionlabelseparator}{}% -} -{% - \end{upm@fmt@enumdescription}% -} +%% Issue #14: enumerate behaves as enumdescription +\ifupm@use@override@standard@lists + \AtBeginDocument{ + \message{*** Overriding the 'enumerate' environment. Pass option 'standardlists' for avoiding this override.} + \global\let\enumerate\@undefined + \global\let\endenumerate\@undefined + \global\NewEnviron{enumerate}[1][1]{ + \protect\begin{upm@fmt@enumdescription}{#1}{}{\string.~}{}{\enumdescriptionlabelseparator}{}% + \BODY% + \protect\end{upm@fmt@enumdescription}% + } + } +\fi %---------------------------------------- % DESCRIPTION LIST WITH BULLETS %---------------------------------------- -\gdef\upm@fmt@itemizeddescription@separator{\iflanguage{french}{ :}{:}\ } -\newcommand{\upm@fmt@itemizeddescription@formatdescription}[1]{\textbf{#1}} -\newcommand{\upm@fmt@itemizeddescription@desc}[2]{% - \upm@fmt@itemizeddescription@formatdescription{#1#2}% -} -\let\upm@fmt@olditem\item -\let\upm@item@param\upm@fmt@olditem -\let\upm@item@noparam\upm@fmt@olditem -\def\item{\@ifnextchar[\upm@item@param\upm@item@noparam} -\renewenvironment{description}[1][\upm@fmt@itemizeddescription@separator]{% - \begin{itemize}% - \renewcommand{\upm@item@param}[1][]{\upm@fmt@olditem \upm@fmt@itemizeddescription@desc{##1}{#1}}% - \renewcommand{\upm@item@noparam}{\upm@fmt@olditem }% -}{% - \end{itemize}% -} +\ifupm@use@override@standard@lists + \gdef\upm@fmt@itemizeddescription@separator{\iflanguage{french}{ :}{:}\ } + \newcommand{\upm@fmt@itemizeddescription@formatdescription}[1]{\textbf{#1}} + \newcommand{\upm@fmt@itemizeddescription@desc}[2]{% + \upm@fmt@itemizeddescription@formatdescription{#1#2}% + } + \let\upm@fmt@olditem\item + \let\upm@item@param\upm@fmt@olditem + \let\upm@item@noparam\upm@fmt@olditem + \def\item{\@ifnextchar[\upm@item@param\upm@item@noparam} + \AtBeginDocument{ + \message{*** Overriding the 'description' environment. Pass option 'standardlists' for avoiding this override.} + \global\let\description\@undefined + \global\let\enddescription\@undefined + \global\NewEnviron{description}[1][\upm@fmt@itemizeddescription@separator]{ + \begin{itemize}% + \renewcommand{\upm@item@param}[1][]{\upm@fmt@olditem \upm@fmt@itemizeddescription@desc{##1}{#1}}% + \renewcommand{\upm@item@noparam}{\upm@fmt@olditem }% + \BODY% + \end{itemize}% + } + } +\fi %---------------------------------------- % SIZE MANAGEMENT -- cgit v1.2.3