Hi, \def\typo_paragraphs_setup[#1][#2][#3]% we are downward compatible with [each] and [1,3] {\ifthirdargument \doifelse{#2}\v!each - {\typo_paragraphs_setup_saved[#1][#3]} + {\dorecurse{\namedparagraphsparameter{#1}\c!n}{\normalexpanded{\typo_paragraphs_setup_saved[#1:\recurselevel][#3]}}} {\def\typo_paragraphs_setup_step##1{\typo_paragraphs_setup_saved[#1:##1][#3]}% \processcommalist[#2]\typo_paragraphs_setup_step}% \else\ifsecondargument \typo_paragraphs_setup_saved[#1][#2]% \else\iffirstargument \typo_paragraphs_setup_saved[#1]% \fi\fi\fi} Wolfgang
On 1/3/2016 10:01 PM, Wolfgang Schuster wrote:
Hi,
\def\typo_paragraphs_setup[#1][#2][#3]% we are downward compatible with [each] and [1,3] {\ifthirdargument \doifelse{#2}\v!each - {\typo_paragraphs_setup_saved[#1][#3]} + {\dorecurse{\namedparagraphsparameter{#1}\c!n}{\normalexpanded{\typo_paragraphs_setup_saved[#1:\recurselevel][#3]}}}
{\def\typo_paragraphs_setup_step##1{\typo_paragraphs_setup_saved[#1:##1][#3]}%
\processcommalist[#2]\typo_paragraphs_setup_step}% \else\ifsecondargument \typo_paragraphs_setup_saved[#1][#2]% \else\iffirstargument \typo_paragraphs_setup_saved[#1]% \fi\fi\fi}
or {\dorecurse{\namedparagraphsparameter{#1}\c!n}% {\normalexpanded{\typo_paragraphs_setup_saved[#1:\recurselevel]}[#3]}}% as we don't want to expand #3 Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster