>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

>> I've some documents in: http://www.savebylinux.com/latex/ There are
>> 2 file and 2 directory contain HTML result from each file. I use
>> lattest latex2html and lyx program. I hope you can explore what's
>> wrong with it.

Lars> Thanks. The fix is very easy:

Lars> In the document preamble, just insert the two lines below
Lars> beginning with % :

Lars> %begin{latexonly} \IfFileExists{url.sty}{\usepackage{url}}
Lars> {\newcommand{\url}{\texttt}} %end{latexonly}

Do you know whether this is understood by the other latex->html
translators? 

Lars> BTW, (for the Lyx gurus) would it not be better, partly as a
Lars> matter of style and efficiency, to use low-level TeX coding with
Lars> this conditional code ?

Lars>   \IfFileExists{url.sty}{\usepackage{url}}{\let\url\texttt}

I'd rather use 
  \IfFileExists{url.sty}{\usepackage{url}}{\newcommand[1]{\url}{\texttt{#1}}}
or (if it helps translators)
  \IfFileExists{url.sty}{\usepackage{url}}{}
  \providecommand[1]{\url}{\texttt{#1}} 

The \let is not very latex-friendly, and the gain (in time/space
whatever) is negligible. You are right however that declaring without
parameter was a mistake. Are you sure that adding the argument helps?

JMarc

Reply via email to