ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definehead with some extra's
@ 1999-04-01 13:25 Gilbert van den Dobbelsteen
  1999-04-01 14:49 ` Hans Hagen
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Gilbert van den Dobbelsteen @ 1999-04-01 13:25 UTC (permalink / raw)


I have a nice problem:

  \definehead[MYMONTH][paragraph]

Ok, Now I want to suppress the generation of heads:

  \setuphead[MYMONTH]
    [command=\mycommand]

  \def\mycommand#1#2#3{}

Ok, that works, but it has an expected side effect: The heads don't show up
in the contents. After studying several things I found out that #2 contains
the commands for putting things in the .tui file. So I want to execute the
commands to create the correct entries in the .tui file, but I do not want
to typeset anything at all. Can I do something like:

  \writetolist[MYMONTH][blahblah]

Or do I need to hand-code the stuff, something like this:

\definelist[MYLIST]

  \def\MYMONTH#1{%
    \writetolist[MYLIST][#1]}

(Sorry about the syntax, it is probably not correct CONTeXt, and the
arguments are probably not in the correct order).

Gilbert.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-04-02 13:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-01 13:25 \definehead with some extra's Gilbert van den Dobbelsteen
1999-04-01 14:49 ` Hans Hagen
1999-04-01 16:10 ` Bug in \defineenumeration Taco Hoekwater
1999-04-01 15:41   ` Hans Hagen
1999-04-01 17:46 ` Taco Hoekwater
1999-04-01 16:36   ` Hans Hagen
1999-04-02 11:24 ` Taco Hoekwater
1999-04-02 11:58   ` Hans Hagen
1999-04-02 12:00   ` Hans Hagen
1999-04-02 13:14   ` Hans Hagen

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).