Hello! I wanted to write a letter… Then it appeared that there is something wrong in \typo_paragraphs_setup_three. The problem is present in todays beta (as was in the previous version). Please try the attached minimal example. Thank you and kind regards Willi
Am 08.07.2012 um 19:27 schrieb Willi Egger:
Hello!
I wanted to write a letter… Then it appeared that there is something wrong in \typo_paragraphs_setup_three. The problem is present in todays beta (as was in the previous version). Please try the attached minimal example.
tabl-mis.mkiv \def\typo_paragraphs_setup[#1][#2][#3]% we are downward compatible with [each] and [1,3] {\ifthirdargument - \def\typo_paragraphs_setup_three[#1][#2][#3]% - {\doifelse{#2}\v!each - {\typo_paragraphs_setup_saved[#1][#3]} - {\def\typo_paragraphs_setup_step##1{\typo_paragraphs_setup_saved[#1:##1][#3]}% - \processcommalist[#2]\typo_paragraphs_setup_step}} + \doifelse{#2}\v!each + {\dorecurse{\namedparagraphsparameter{#1}\c!n}{\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} \appendtoks \letvalue {\e!next \currentparagraphs}\nextparagraphs \setuevalue{\e!start\currentparagraphs}{\startparagraphs[\currentparagraphs]}% \letvalue {\e!stop \currentparagraphs}\stopparagraphs %setuevalue{\e!setup\currentparagraph\e!endsetup}{\typo_paragraphs_setup_saved[\currentparagraphs]}% - \dorecurse{\paragraphsparameter\c!n} - {\normalexpanded{\typo_paragraphs_setup_saved[\currentparagraphs:\recurselevel][\c!width=,\s!parent=\??paragraphs\currentparagraphs]}}% - \typo_paragraphs_setup_saved[\currentparagraphs][\c!distance=\zeropoint]% + \dorecurse{\paragraphsparameter\c!n} + {\normalexpanded{\typo_paragraphs_setup_saved[\currentparagraphs:\recurselevel][\c!width=,\c!distance=\zeropoint,\s!parent=\??paragraphs\currentparagraphs]}}% \to \everydefineparagraphs BTW 1: Change the \Attachment command to \nextAttachment. BTW 2: For something like your example tabulate would be simpler because you don’t have to define anything- \starttext \starttabulate \NC Bijlage \EQ Een foto. \NC\NR \stoptabulate \stoptext BTW 3: Hans added a few new commands to paragraphs to make a more table (natural table and xtable) like. %D \defineparagraphs[sample][n=2,rule=on] %D %D \startsample %D first \nextsample %D second \nextsample %D third %D \stopsample %D %D \startsample %D \input tufte \nextsample %D \input ward \nextsample %D \input davis \nextsample %D \input zapf %D \stopsample %D %D \startparagraphs[sample] %D first \nextsample %D second \nextsample %D third %D \stopparagraphs %D %D \startparagraphs[sample] %D \startparagraphscell %D first %D \stopparagraphscell %D \startparagraphscell %D second %D \stopparagraphscell %D \startparagraphscell %D third %D \stopparagraphscell %D \stopparagraphs Wolfgang
On 8-7-2012 20:15, Wolfgang Schuster wrote:
\appendtoks \letvalue {\e!next \currentparagraphs}\nextparagraphs \setuevalue{\e!start\currentparagraphs}{\startparagraphs[\currentparagraphs]}% \letvalue {\e!stop \currentparagraphs}\stopparagraphs %setuevalue{\e!setup\currentparagraph\e!endsetup}{\typo_paragraphs_setup_saved[\currentparagraphs]}% - \dorecurse{\paragraphsparameter\c!n} - {\normalexpanded{\typo_paragraphs_setup_saved[\currentparagraphs:\recurselevel][\c!width=,\s!parent=\??paragraphs\currentparagraphs]}}% - \typo_paragraphs_setup_saved[\currentparagraphs][\c!distance=\zeropoint]% + \dorecurse{\paragraphsparameter\c!n} + {\normalexpanded{\typo_paragraphs_setup_saved[\currentparagraphs:\recurselevel][\c!width=,\c!distance=\zeropoint,\s!parent=\??paragraphs\currentparagraphs]}}% \to \everydefineparagraphs
actually the lack of a parent chain one was a side effect of defining \s!parent more efficiently (=>) which interferes with assignments so I reverted that (I'll make a dedicated chain command.) ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 8-7-2012 19:27, Willi Egger wrote:
Hello!
I wanted to write a letter… Then it appeared that there is something wrong in \typo_paragraphs_setup_three. The problem is present in todays beta (as was in the previous version). Please try the attached minimal example.
fixed ----------------------------------------------------------------- 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 (3)
-
Hans Hagen
-
Willi Egger
-
Wolfgang Schuster