2007/4/1, Vyatcheslav Yatskovsky [EMAIL PROTECTED]:
Hello Wolfgang,
Thanks.
\def\comm{\thinspace\groupedcommand\tt\thinspace}
works quite well.
From a newbie standpoint, I wonder why replacing \thinspace with
\hspace[medium] fails?
It did not fail, you forget only the braces.
Hello Taco,
Thanks, I came up with the following
\def\comm#1{{\tt#1}\,}
\starttext
The \comm{rand} function generates pseudo-random numbers.
\stoptext
I quite satisfied with it, but maybe there is better way to typeset
programming keywords?
Best regards,
Vyatcheslav Yatskovsky
The
On Sun, 1 Apr 2007 15:40:50 +0300
Vyatcheslav Yatskovsky [EMAIL PROTECTED] wrote:
Hello Taco,
Thanks, I came up with the following
\def\comm#1{{\tt#1}\,}
\starttext
The \comm{rand} function generates pseudo-random numbers.
\stoptext
I quite satisfied with it, but maybe there is
Hello Wolfgang,
Thanks.
\def\comm{\thinspace\groupedcommand\tt\thinspace}
works quite well.
From a newbie standpoint, I wonder why replacing \thinspace with
\hspace[medium] fails?
(I had another version
\def\comm#1{\hspace[medium]{\tt#1}\hspace[medium]}
it worked.)
Vystcheslav
On Sun,
Vyatcheslav Yatskovsky wrote:
The following look ugly because of anaemic spacing before and after typed
text.
\starttext
The {\tt rand} function generates pseudo-random numbers.
\stoptext
How to fix it?
If you want the spaces larger than normal interword spaces,
you could consider
The following look ugly because of anaemic spacing before and after typed text.
\starttext
The {\tt rand} function generates pseudo-random numbers.
\stoptext
How to fix it?
Best,
Vyatcheslav___
ntg-context mailing list
ntg-context@ntg.nl