summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-09-30 22:17:14 +0000
committerKarl Berry <karl@freefriends.org>2013-09-30 22:17:14 +0000
commitc69e20250cee54fad79255cd32d5c3c8f13e1d39 (patch)
tree083ce2d436ccf0c973a9171459de7e02b8a333a8 /Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty
parent76638c07f245b68b9dd3e453dab2b8796424f57f (diff)
upmethodology (30sep13)
git-svn-id: svn://tug.org/texlive/trunk@31801 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty')
-rw-r--r--Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty21
1 files changed, 20 insertions, 1 deletions
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]
@@ -26,6 +26,19 @@
\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
%----------------------------------------
\providecommand{\arakhneorg}{{\begingroup%
@@ -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{%