[NTG-context] anaemic spacing around in-line typed text

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sun Apr 1 15:22:21 CEST 2007


On Sun, 1 Apr 2007 15:40:50 +0300
Vyatcheslav Yatskovsky <yatskovsky at gmail.com> 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 better way to typeset
> programming keywords?
> 
> Best regards,
> Vyatcheslav Yatskovsky
> 

There is a better way to define such a command in ConTeXt.

\def\comm
  {\groupedcommand\tt\thinspace}

\starttext

The \comm{rand} function generates pseudo-random numbers.

The {\comm rand} function generates pseudo-random numbers.

\stoptext

Wolfgang


More information about the ntg-context mailing list