[NTG-context] verbatim problem
Willi Egger
ntg-context@ntg.nl
Tue, 27 Apr 2004 15:29:10 +0200
Hi,
may be I do not get it correctly, but there is a command \startlines ...
\stoplines.
Willi
John Culleton wrote:
> On Thursday 22 April 2004 08:59 am, Severin Obertüfer wrote:
>
>>hello
>>
>>i have a little verbatim problem
>>
>>i used the \startEIFFEL \stopEIFFEL verbatim environment
>>in a verry simple way like this:
>
>
> Similarly I needed to have the program obey line breaks as
> in \obeylines but interpet the lines (font changes etc.) in
> the usual way. I did not want space left between lines.
> Neither the plain TeX nor the Context solutions fit this
> purpose exactly, but plain was closer. So I cobbled up this
> code:
> \def\startobey{\medskip\setupwhitespace[none]\obeylines}
> \def\stopobey{\setupwhitespace[small] \medskip}
>
> I start the section needing verbatim line endings with
> {\startobey
> .... and end it with
> \stopobey}
>
> I don't know if the braces are necessary but the TeXBook
> seems to imply such.
>
> My solution tends to ignore blank lines so I have to put a
> \medskip instead of a blank line.
>
> This is a terrible solution but the best I could come up
> with in a hurry. No doubt someone will suggest a better
> one.
>
> BTW whre is \startEIFFEL documented? I don't recall seeing
> it before.