[NTG-context] anaemic spacing around in-line typed text
Vyatcheslav Yatskovsky
yatskovsky at gmail.com
Sun Apr 1 14:40:50 CEST 2007
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 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 tagging your calls using a special macro
> to do the typesetting. Perhaps like this:
> \def\function#1{ #1 }
> \starttext
> The \function{rand} function generates pseudo-random numbers.
> \stoptext
More information about the ntg-context
mailing list