ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem with \getparameters
@ 2012-02-23  8:05 Thomas A. Schmitz
  2012-02-23 11:27 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas A. Schmitz @ 2012-02-23  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

I'm trying to use \getparameters, but I'm doing it wrong. What I want to 
do is: define an environment which starts linenumbering and takes a 
key=value argument to define the start of the numbers. Here's what I 
tried (I also tried a few other things, such as \setvariables, but 
wasn't any more successful):

\definestartstop[mynumberedblockquote]
		[before={\blank[line]
			\setupindenting[no]
			\setuplinenumbering[width=1cm,start=\getvalue{testsetupsstart}]
			\startlinenumbering},
  	          after={\stoplinenumbering
			\setupindenting[yes]
  			{\blank[line]}
	                \par}]

\def\startnumberedblockquote#1[#2]%
   {\getparameters[testsetups][start=1,#2]%
    \startmynumberedblockquote}

\define\stopnumberedblockquote%
    {\stopmynumberedblockquote}

\starttext

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy 
eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam 
voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

\startnumberedblockquote [start=9]
Lorem

ipsum

dolor

sit

amet
\stopnumberedblockquote

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy 
eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam 
voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren,

\startnumberedblockquote[start=19]
consetetur

sadipscing

elitr

sed

diam
\stopnumberedblockquote

\stoptext

But for some reason, the numbers are not local for each block. Can 
anybody shed some light into these (for me) dark an mysterious corners 
of ConTeXt?

Thanks a lot!

Thomas
___________________________________________________________________________________
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] 10+ messages in thread

end of thread, other threads:[~2012-02-23 15:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-23  8:05 problem with \getparameters Thomas A. Schmitz
2012-02-23 11:27 ` Wolfgang Schuster
2012-02-23 11:42   ` Thomas A. Schmitz
2012-02-23 12:29     ` Wolfgang Schuster
2012-02-23 15:19       ` Thomas A. Schmitz
2012-02-23 12:31     ` luigi scarso
2012-02-23 12:39       ` Wolfgang Schuster
2012-02-23 12:51         ` luigi scarso
2012-02-23 13:00           ` Wolfgang Schuster
2012-02-23 13:08             ` luigi scarso

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