On Fri, 09 Apr 2010 12:00:05 +0200
Wolfgang Schuster <[email protected]> scribit:
> Am 09.04.10 11:20, schrieb R. Bastian:
> > Hello,
> >
> > how to translate in context the following plain tex:
> >
> > \font\fgras = cmbtt10
> > {\tt
> > {\obeylines
> > {\fgras def} ra():
> > \ \ \ \ a = 3
> > \ \ \ \ b = 4
> > }
> > }
> >
> MkII:
>
> \setuplines[space=on]
>
> \starttext
> \startlines\tt
> %\startlines[style=mono] % works only in MkIV
> {\bf def} ra():
> a = 3
> b = 4
> \stoplines
> \stoptext
>
> Wolfgang
>
Thanks Wolfhang. It goes better, but there is still a little bug:
{\bf def} inserts a white space in front of the line
Compare:
{\bf def} ra():
def ra():
a = 3
b = 4
--
René Bastian
www.pythoneon.org
www.musiques-rb.org
http://www.soundsurvey.org.uk/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________