29 Jan
2011
29 Jan
'11
4:21 p.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