ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Simon Pepping <spepping@scaprea.hobby.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Problem with comma lists and tabulate
Date: Thu, 13 Jun 2002 15:26:10 +0200	[thread overview]
Message-ID: <20020613152610.A777@scaprea> (raw)
In-Reply-To: <5.1.0.14.1.20020611171254.0336add8@server-1>; from pragma@wxs.nl on Tue, Jun 11, 2002 at 05:17:46PM +0200

On Tue, Jun 11, 2002 at 05:17:46PM +0200, Hans Hagen wrote:
> At 04:23 PM 6/10/2002 +0200, Simon Pepping wrote:
> >Hi,
> >
> >This file causes an error which I think should not occur. The error
> >does not occur when I remove \NC from \XMLDBshowElementTH. It seems to
> >me that either \csname next1\endcsname or \p!doprocessaction has the
> >wrong value.
> >
> >\tracingmacros=2\tracingcommands=2
> >
> >\def\XMLDBshowElementTH#1{\NC\csname XMLDB#1\endcsname}
> >
> >\starttext
> >\def\XMLDBElementList{revnumber,date,authorinitials,revremark,revdescription}
> >\starttabulate[|l|l|l|l|l|]
> >     \processcommacommand[\XMLDBElementList]\XMLDBshowElementTH \NC\NR\ML
> >\stoptabulate
> >
> >\stoptext
> 
> 
> Ah, you mean the \par message? This is related to the non existing i.e. 
> only living inside tex \endtemplate primitive and the message is one of 
> those originating deep inside tex when tex is not really able to determine 
> the problem (similar things happen with missing { or } messages when 
> v/halignments are used in the wrong v/h mode).
> 
> The problem is that commalist processing can be nested and has no grouping, 
> which means that the internal counters get confused when used inside 
> implicitly grouped situations like alignment cells. So, one way out is a 
> rather dirty trick:
> 
> \expanded{\globalprocesscommalist[\XMLDBElementList]}
> 
> i.e. use a special version of comma list processing

Well, I get a different error message, but this does solve the problem.

> [BTW, i now have a version of bTABLE cum suis running which breaks across 
> pages and has auto-repeated headers, handy for xml too]

Good. I encountered the above problem in an effort to map to a
tabulate. I have now worked out a version using bTABLE, which seems
easier to automate.

Regards, Simon

-- 
Simon Pepping
email: spepping@scaprea.hobby.nl


  reply	other threads:[~2002-06-13 13:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-10 14:23 Simon Pepping
2002-06-11 15:17 ` Hans Hagen
2002-06-13 13:26   ` Simon Pepping [this message]
2002-06-14 11:12     ` 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=20020613152610.A777@scaprea \
    --to=spepping@scaprea.hobby.nl \
    --cc=ntg-context@ntg.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).