On Thu, 3 May 2012, Wolfgang Schuster wrote:
You assume \definelinenumbering has a second argument for the settings but this
isn’t the case
D'oh.
and you need \setuplinenumbering to set them.
I also needed to change \setvalue to \setevalue in the example, and add an
\expanded to get it to work.
\definenamespace
[whatever]
[
type=module,
name=whatever,
command=yes,
setup=yes,
parent=whatever,
]
\appendtoks
\definelinenumbering
[\currentwhatever]%
\expanded{\setuplinenumbering
[\currentwhatever]
[
color=\whateverparameter{numbercolor},
style=\whateverparameter{numberstyle},
]}%
\setevalue{start\currentwhatever}{\dostartwhatever[\currentwhatever]}%
\setevalue{stop\currentwhatever}{\dostopwhatever}%
\to\everydefinewhatever
% For illustration. The actual macro is more complicated.
\def\dostartwhatever[#1]%
{\startlinenumbering[#1]}
\def\dostopwhatever
{\stoplinenumbering}
%%%%
\definewhatever[testing][numbercolor=red,numberstyle=bold]
\starttext
\starttesting
\input knuth
\stoptesting
\stoptext
Thanks,
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________