From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl (ConTeXt)
Subject: Re: before= in setupbuffer
Date: Tue, 16 Nov 1999 17:53:57 +0100 [thread overview]
Message-ID: <3.0.6.32.19991116175357.0107c380@pop.wxs.nl> (raw)
In-Reply-To: <199911161244.MAA08933@interzone.ucc.ie>
>\def\beforeAnswer{\noindent Answer \number\questionctr \crlf}
No.
\defineenumeration[Answer]
\defineblock[Answer]
\beginAnswer
\startAnswer
The Answer is always easy!
\stopAnswer
\endanswer
That's the way. A bit more typing, but better. Now, when you call up the blocks, their numbering will nicely be in sync, and, even better, you can cross link them:
\defineenumeration [Answer] [coupling=Question]
\defineenumeration [Question] [coupling=Answer]
You seldom need to define your own macros -)
Before and after are executed when a block is placed, and they normally are used for spacing or tricky font swhitches and so.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------
prev parent reply other threads:[~1999-11-16 16:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-16 12:44 Marc van Dongen
1999-11-16 16:53 ` Hans Hagen [this message]
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=3.0.6.32.19991116175357.0107c380@pop.wxs.nl \
--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).