From: Glen Callaghan <Glen.Callaghan@emsolutions.com.au>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Defining a command for enumeration+block
Date: Thu, 18 Nov 2010 11:15:17 +0000 [thread overview]
Message-ID: <76D14C57-6F3E-4305-A3EF-C21D563D2F83@emsolutions.com.au> (raw)
Hello,
I'm having some problems using blocks and enumeration together.
I can get it to work using something like this (see complete minimal example further down):
\beginBlock
\startEnum
Some text A
\stopEnum
\endBlock
But it doesn't seem to work if I try to define a command (macro?) to keep my source file a bit tidier.
\define[1]\Revs{
\beginBlock
\startEnum
#1
\stopEnum
\endBlock
}
\Revs{Missing Text B}
I don't get any output from the call \Revs. No doubt I'm doing something silly......
I've also noticed that it breaks if I put the \beginBlock \startEnum commands on the same line, as in:
\beginBlock \startEnum
Some text A
\stopEnum \endBlock
I've been trying this on TeX Live 2010.
thanks
Glen
---------
\defineblock[Block]
\defineenumeration[Enum][location=left,text=Test]
\define[1]\Revs{
\beginBlock
\startEnum
#1
\stopEnum
\endBlock
}
\starttext
\section{Use}
\useblocks[Block]
\reset[Enum]
\section{Define}
\beginBlock
\startEnum
Some text A
\stopEnum
\endBlock
\Revs{Missing Text B}
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2010-11-18 11:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 11:15 Glen Callaghan [this message]
2010-11-18 18:05 ` Wolfgang Schuster
[not found] <mailman.297.1290110799.4239.ntg-context@ntg.nl>
2010-11-18 21:44 ` Glen Callaghan
2010-11-18 22:13 ` Wolfgang Schuster
[not found] <mailman.307.1290132702.4239.ntg-context@ntg.nl>
2010-11-19 4:43 ` Glen Callaghan
2010-11-19 15:49 ` Wolfgang Schuster
2010-11-19 17:11 ` Hans Hagen
[not found] <mailman.329.1290186723.4239.ntg-context@ntg.nl>
2010-11-20 21:24 ` Glen Callaghan
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=76D14C57-6F3E-4305-A3EF-C21D563D2F83@emsolutions.com.au \
--to=glen.callaghan@emsolutions.com.au \
--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).