[l2h] unknown command \verb

Greg Gamble Greg Gamble <gregg@math.rwth-aachen.de>
Mon, 25 Jun 2001 10:53:51 +0200

On Mon, Jun 25, 2001 at 04:38:17PM +0800, Stephen Patterson wrote:
> I quite often use {\verb Foo} to include verbatim text inline with the
> current text ...

I'm really surprised that that works at all in LaTeX ... as far as I recall
the intended (and documented) usage is as follows:


where the # character can be replaced with just about any other character.
I can't recall if I've tried parsing a LaTeX document with this in it with
LaTeX2HTML, but I did think I had, and I'd be surprised if that usage didn't
work. What will work just as well in cases without ``special'' characters
(like {}) is \texttt{...}. In your example, \texttt{Foo} would produce what
you want.

> but the \verb command isn't recognised by latex2html and
> the content of the command doesn't show in the html file. How can I get
> it to work?

I think LaTeX2HTML just doesn't understand your usage. I'm not on a machine
where I can test that theory currently, but I hope the suggestions above

  Greg Gamble
Greg Gamble   __________________   mailto:gregg@math.rwth-aachen.de
Lehrstuhl D fuer Mathematik                     Tel: +49 241 804545
Templergraben 64                                
52062 Aachen, Germany   http://www.math.rwth-aachen.de/~Greg.Gamble