At 07:13 PM 12/18/2001 +0100, Patrick Gundlach wrote:
>Hi,
>
>I'd like to use the "verbatim" environment from html and typset
>it using \starttyping ... \stoptyping like this
>
>[...] 11
>
> 22
> 33 44 55 [...]
>shoud be typeset like this:
>
>11
>\starttyping
> 22
>\stoptyping
>33 44 55
>
>(I hope you get the idea)
This has to do with the fact that the verbatim env changes catcodes and
expects to see a \stoptyping.
Since i knew that you would come up with this question some day ...
\defineXMLcommand [pre] {\processtaggeddisplayverbatim{</pre>}}
is about the shortest def i can come up with, try:
\startbuffer
<pre>
does
this look \like <xml>
ok
</pre>
\stopbuffer
\processXMLbuffer
Somehow this whole <pre> thing is a bit fuzzy, since it is not clear what
should expand. If you want expansion,
\defineXMLgrouped [pre] {\tttf\obeylines\obeyspaces}
is a good alternative.
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------