From: "Gilbert van den Dobbelsteen" <gilbert@login-bv.com>
Subject: \definehead with some extra's
Date: Thu, 1 Apr 1999 15:25:02 +0200 [thread overview]
Message-ID: <000901be7c43$0ca44da0$0c01a8c1@worf.login-bv.com> (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.
next reply other threads:[~1999-04-01 13:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-01 13:25 Gilbert van den Dobbelsteen [this message]
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
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='000901be7c43$0ca44da0$0c01a8c1@worf.login-bv.com' \
--to=gilbert@login-bv.com \
/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).