From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/368 Path: main.gmane.org!not-for-mail From: "Gilbert van den Dobbelsteen" Newsgroups: gmane.comp.tex.context Subject: \definehead with some extra's Date: Thu, 1 Apr 1999 15:25:02 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <000901be7c43$0ca44da0$0c01a8c1@worf.login-bv.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391233 23533 80.91.224.250 (23 Oct 2002 16:40:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:40:33 +0000 (UTC) Original-To: "context" Xref: main.gmane.org gmane.comp.tex.context:368 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:368 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.