>>>>> "Christoph" == Christoph M Friedrich <[EMAIL PROTECTED]> writes:

Christoph> Hi, using lyx1.0.3 there is a bug when exporting an
Christoph> inserted url as latex, the exported code looks like
Christoph> \url|http://www.lyx.org|, but instead of vertical bars it
Christoph> should be {}.  Otherwise links will not work with
Christoph> latex2html.

Christoph> Hope someone can change this.

I am not what to do about that: by default, LaTeX does not understand
\url, and it needs the url.sty package to work correctly. Since we
cannot rely on url.sty to be present, we need something else when it
is not here, so we use \verb. Now,

1/ \url understands the notations \url{foo} and \url|foo| (the second
being useful if there is a } in the URL).

2/ \verb only understands the notation \verb|foo|, and we cannot do
much about that, since verbatim handling is really fragile in LaTeX

3/ LaTeX2html only understands the notation \url{foo}

Since using the {} notation would mean that people who do not have
url.sty intalled will not be able to print out LyX documentation
(which is not acceptable), I am reluctant to change that.

Maybe this should be considered as a bug in LaTeX2HTML, but I am not
sure how likely it is to be fixed.

JMarc

Reply via email to