Thank you, Wolfgang, for your solution. Seems like \hspace cannot take numeric values at the moment, only predefined constants like "big". Maybe it is reasonable to include your code below into context core files? Meanwhile, I used "\hskip 2cm", it worked fine.
I have some problems with \hspace. I try to insert it between two images, and this is what I get 1) \hspace{1cm} or \hspace<1cm> gives space but writes "1cm" betwen images; 2) \hspace[1cm] does not work at all 3) \hspace[big] works fine, but \hspace[2*big] does not
I want to get space twice as big, but how?
Hello,
\unprotect
\def\dodohspace[#1][#2]% {\def\dododohspace##1{\dodododohspace{#1}{##1}}% \ifhmode \removeunwantedspaces \dorepeatwithcommand[#2]\dododohspace \expandafter\ignorespaces \fi}
\def\dodododohspace#1#2% {\hskip\hspaceamount{#1}{#2}}
\def\hspaceamount#1#2% {\executeifdefined{\??hs#1:#2}{\executeifdefined{\??hs:#2}{#2\relax}}}
\protect
\starttext
text \hspace[big] text
text \hspace[2*big] text
text \hspace[3*big] text
text \hspace[1cm] text
text \hspace[2cm] text
text \hspace[3cm] text
\stoptext
Best, Vyatcheslav