From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Bug in \typo_paragraphs_setup_three.
Date: Sun, 8 Jul 2012 20:15:58 +0200 [thread overview]
Message-ID: <2582E1D5-80D4-46C4-A6D4-73642010E652@gmail.com> (raw)
In-Reply-To: <5468AFEF-0BEF-4767-83DA-B0B7666B06CC@boede.nl>
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2012-07-08 18:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-08 17:27 Willi Egger
2012-07-08 18:15 ` Wolfgang Schuster [this message]
2012-07-08 18:20 ` Hans Hagen
2012-07-08 18:18 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2582E1D5-80D4-46C4-A6D4-73642010E652@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).