> % \one, \one[…] and \one[…][…] (no spaces between “[][]” allowed)
>
> \def\one
> {\strictdoifnextoptionalelse\doone\noone}
>
> \def\noone{[]}
>
> \def\doone[#1]%
> {\strictdoifnextoptionalelse{\dodoone[#1]}{\nodoone[#1]}}
>
> \def\dodoone[#1][#2]%
> {[#1:#2]}
>
> \def\nodoone[#1]%
> {[#1]}
One more problem: Adding
\setupinteraction[state=start]
> \starttext
and\footnote{\one[1]} etc. do not work. Why not?
Florian
> \startlines
> \one text
> \one[1] text
> \one[1][2] text
> \stoplines
> \stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________