From c69e20250cee54fad79255cd32d5c3c8f13e1d39 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 30 Sep 2013 22:17:14 +0000
Subject: upmethodology (30sep13)

git-svn-id: svn://tug.org/texlive/trunk@31801 c570f23f-e606-0410-a88d-b1316a301751
---
 .../latex/upmethodology/upmethodology-p-common.sty  | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

(limited to 'Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty')

diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty
index f3a977fcd56..119e4e320d7 100644
--- a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty
+++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty
@@ -16,7 +16,7 @@
 % 330, Boston, MA 02111-1307, USA.
 %
 
-\global\edef\upm@package@private@doctype@ver{2013/09/19}
+\global\edef\upm@package@private@doctype@ver{2013/09/29}
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{upmethodology-p-common}[\upm@package@private@doctype@ver]
@@ -25,6 +25,19 @@
 \RequirePackage{xspace}
 \RequirePackage{xcolor}
 
+%----------------------------------------
+% UPMVERSION MACRO
+%----------------------------------------
+\input UPMVERSION.def
+\def\upm@common@parseversion@to@tex#1#2#3#4#5#6#7#8#9\@nil{#1#2#3#4/#5#6/#7#8}
+\def\upm@common@parseversion@major#1#2#3#4#5#6#7#8#9\@nil{#1#2#3#4#5#6#7#8}
+\edef\ver@UPMVERSION@major{\expandafter\upm@common@parseversion@major\UPMVERSION-\relax\@nil}
+\edef\ver@UPMVERSION{\expandafter\upm@common@parseversion@to@tex\UPMVERSION\@nil}
+\expandafter\let\csname ver@UPMVERSION.sty\endcsname\ver@UPMVERSION
+\expandafter\let\csname ver@UPMVERSION.cls\endcsname\ver@UPMVERSION
+
+\gdef\UPMVERSIONTEST{\ver@UPMVERSION\\\ver@UPMVERSION@major}
+
 %----------------------------------------
 % ARAKHNE.ORG MACRO
 %----------------------------------------
@@ -158,6 +171,12 @@
 	\fi%
 }
 
+% Loop on parts of a text given a specific separator.
+% In the bodies, the macros \upm@foreach@term is the current data.
+% #1: is the separator to consider
+% #2: is the data set
+% #3: is the body to run for each loop, except the last.
+% #4: is the body to run for the last loop.
 \def\upm@foreach#1\in#2\do#3#4{%
 	\global\upm@foreach@oneseparatorfalse%
 	\gdef\upm@foreach@searchseparator##1#1##2\@nil{%
-- 
cgit v1.2.3

