summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/upmethodology
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-02-10 22:52:38 +0000
committerKarl Berry <karl@freefriends.org>2014-02-10 22:52:38 +0000
commitfba9823cd52d019b19b6e6ca59243400ca8cd434 (patch)
treefc427a4232bdcf0231b8666a38f7a02c55f5a485 /Master/texmf-dist/tex/latex/upmethodology
parenta2724db9e1e09ef417a79e8e58d731e117497dd0 (diff)
upmethodology (10feb14)
git-svn-id: svn://tug.org/texlive/trunk@32933 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/upmethodology')
-rw-r--r--Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def2
-rw-r--r--Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty35
2 files changed, 29 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
index 18ca08df2d9..8c7352552d4 100644
--- a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
+++ b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
@@ -1 +1 @@
-\def\UPMVERSION{20131214}
+\def\UPMVERSION{20130209}
diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
index 43e7b695903..cad37b19981 100644
--- a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
+++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
@@ -1,6 +1,6 @@
% Layout and Pagraph Format for Unified Process Methodology
%
-% Copyright (c) 2006-2009, 2012-2013 Stephane GALLAND <galland@arakhne.org>
+% Copyright (c) 2006-2009, 2012-2014 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
@@ -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@fmt@ver{2013/10/16}
+\global\edef\upm@package@fmt@ver{2014/02/09}
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{upmethodology-fmt}[\upm@package@fmt@ver]
@@ -1057,7 +1057,15 @@
\newcounter{@upm@fmt@enumdescription@cnt@}
\newcommand{\upm@fmt@enumdescription@fmt@}[1]{}
\newcommand{\enumdescriptionlabel}[1]{\textbf{#1}}
-\newenvironment{enumdescriptionx}[3][i]{%
+\newcommand{\enumdescriptioncounterseparator}{~-~}
+\newcommand{\enumdescriptionlabelseparator}{\upm@column@char}
+% #1: counter style.
+% #2: text before the counter.
+% #3: text after the counter.
+% #4: text between the counter and the description.
+% #5: text between the description and the rest of the text.
+% #6: text between the counter (no description) and the rest of the text.
+\newenvironment{upm@fmt@enumdescription}[6]{%
\begingroup\setcounter{@upm@fmt@enumdescription@cnt@}{1}%
\let\upm@fmt@enumdescription@savedlabel\@currentlabel%
\ifthenelse{\equal{#1}{a}}{%
@@ -1070,17 +1078,30 @@
}%
}%
\begin{list}{}{%
- \renewcommand{\makelabel}[1]{\xdef\@currentlabel{\upm@fmt@enumdescription@fmt@{@upm@fmt@enumdescription@cnt@}}\enumdescriptionlabel{\@currentlabel~-~##1}:~{\addtocounter{@upm@fmt@enumdescription@cnt@}{1}}}%
- \settowidth{\labelwidth}{iii)~}%
+ \renewcommand{\makelabel}[1]{\xdef\@currentlabel{\upm@fmt@enumdescription@fmt@{@upm@fmt@enumdescription@cnt@}}\enumdescriptionlabel{\@currentlabel#4##1\ifthenelse{\equal{a##1}{a}}{#6}{#5}}{\addtocounter{@upm@fmt@enumdescription@cnt@}{1}}}%
+ \expandafter\settowidth{\labelwidth}{#2iii#3}%
}
}{%
\global\let\@currentlabel\upm@fmt@enumdescription@savedlabel%
\end{list}\endgroup%
}
+\newenvironment{enumdescriptionx}[3][i]{%
+ \begin{upm@fmt@enumdescription}{#1}{#2}{#3}{\enumdescriptioncounterseparator}{\enumdescriptionlabelseparator}{\enumdescriptionlabelseparator}%
+}{%
+ \end{upm@fmt@enumdescription}%
+}
\newenvironment{enumdescription}[1][i]{%
- \begin{enumdescriptionx}[#1]{}{}%
+ \begin{upm@fmt@enumdescription}{#1}{}{}{\enumdescriptioncounterseparator}{\enumdescriptionlabelseparator}{\enumdescriptionlabelseparator}%
}{%
- \end{enumdescriptionx}%
+ \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}%
}
%----------------------------------------