![](https://secure.gravatar.com/avatar/5705290add533907ed4869f7e9f586c3.jpg?s=120&d=mm&r=g)
29 Jan
2011
29 Jan
'11
9:21 a.m.
% \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