ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
[parent not found: <mailman.329.1290186723.4239.ntg-context@ntg.nl>]
[parent not found: <mailman.307.1290132702.4239.ntg-context@ntg.nl>]
* Defining a command for enumeration+block
@ 2010-11-18 11:15 Glen Callaghan
  2010-11-18 18:05 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Glen Callaghan @ 2010-11-18 11:15 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


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

end of thread, other threads:[~2010-11-20 21:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.297.1290110799.4239.ntg-context@ntg.nl>
2010-11-18 21:44 ` Defining a command for enumeration+block Glen Callaghan
2010-11-18 22:13   ` Wolfgang Schuster
     [not found] <mailman.329.1290186723.4239.ntg-context@ntg.nl>
2010-11-20 21:24 ` Glen Callaghan
     [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
2010-11-18 11:15 Glen Callaghan
2010-11-18 18:05 ` Wolfgang Schuster

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