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


_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to