ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: latest Beta
Date: Fri, 21 Mar 2003 11:40:38 +0100	[thread overview]
Message-ID: <5.1.0.14.1.20030321113759.02559f00@server-1> (raw)
In-Reply-To: <873clh3wdu.fsf@gundla.ch>

At 10:24 AM 3/21/2003 +0100, Patrick Gundlach wrote:
>Hans Hagen <pragma@wxs.nl> writes:
>
>Hello,
>
> >>Sorry, cut and paste error (I added the comma on line 21).  The
> >>underlying error is still there
> >
> > in that case i need a minimal file showing the problem
>
>I am not Guy Worthington, but I had a (non successful) look at it and
>this is my testing file:
>
>==================================================
>\setuphead[chapter]
>           [alternative=command,
>            command=\ContentsHead]
>
>\def\ContentsHead#1#2%
>   {\framed [width=\hsize]{\doifelsenothing{#1}{a}{b}}}
>
>\starttext
>\chapter {Berend}
>\stoptext
>==================================================

Ah, this is beause \ContentsHead gets a truckload of rubish passed (add 
\showargument{#1} and you see what i mean) and this confuses tex when 
testing things (if..else in argument); even if i would solve this, other 
*user) code could mess up things; this is why we have (inside a head):

   \doifmodeelse{*sectionnumber}

or alternatively: \doiftextelse for content testing

(btw, sorry that i didn't yet answer your question about the numbering)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

  reply	other threads:[~2003-03-21 10:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-20 12:48 Guy Worthington
2003-03-20 16:46 ` Hans Hagen
2003-03-21  0:25   ` Guy Worthington
2003-03-21  7:37     ` Hans Hagen
2003-03-21  9:24       ` Patrick Gundlach
2003-03-21 10:40         ` Hans Hagen [this message]
2003-03-21 12:30           ` Guy Worthington

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=5.1.0.14.1.20030321113759.02559f00@server-1 \
    --to=pragma@wxs.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).