Josh Rigler <[EMAIL PROTECTED]> writes:
| This has been asked many times, yet I have yet to read a reasonable
| answer. Why does LyX insist on redefining the \url tag to a plain text
| tag? This kind of defeats the purpose of exporting to html, NO? This
| is too obvious a flaw to be a bug, it must be intentional, but for the
| life of me, I can't understand why.
|
| The offending lines in the exported latex file are...
|
|
| \IfFileExists{url.sty}{\usepackage{url}}
| {\newcommand{\url}{\texttt}}
Which is perfectly fine for latex, ... but for a tool that is not able
to parse latex (like latex2html) this is a problem...
So how should we solve this?
If we _require_ url.sty to be present we can just use
\usepackage{url}, but if we don't require it...hmm
can you try this:
\IfFileExists{url.sty}{%
\usepackage{url}%
}{%
\newcommand{url}{\texttt}%
}
and see if that makes a difference for latex2html?
| For now, I can modify these things by hand, but that is not really an
| acceptable alternative. Is there at least some config option in lyx
| that will prevent it from doing this?
No, and to have that would be a "hackish" solution, but I think we
eventually will be able to create a fix for this problem.
Lgb