Hi Florian! On 2011-01-29 <17:21:26>, Florian Wobbe wrote:
% \one, \one[…] and \one[…][…] (no spaces between “[][]” allowed)
\def\one
\unexpanded\def\one % should make it work in footnotes Philipp
{\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 : 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 ___________________________________________________________________________________
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments