I would like to bring this old email to attention again since I have exactly the same problem with lyx 1.2. Is there any progress in this problem?
I have read the lyx/tip page where I was suggested to use ERT.
Thanks.
Bo
-----------------------------------------------------------------------
Hi all,
I'm using lyx 1.1.6f4, trying to create a simple document which will be
exported to html, and I'm havig a problem with urls. If I choose Insert->URL
and say type:
URL-> http://mysite.com/
Name -> Click here
the generated Lyx code looks like
\begin_inset LatexCommand
my\htmlurl[Click here]{http://mysite.com}
So far so good. The problem is that once lyx exports to latex (so I can run
latex2html on it) this becomes
Click here \url{http://mysite.com/}
As you can see, the information about 'Click here' being the name of the url
is gone in the latex, and there's then no way that latex2html will construct
a
properly formed url like:
<a href="http://mysite.com/">click here</a>
which is what we want (or I guess what the Insert->URL led me to expect, and
which would make Lyx a great HTML editor for simple documents where you
don't
need fancy layout).
Any solutions to this using Lyx only? I know I can just pop in all the urls
with ERT, but I'd prefer to use a Lyx-ish solution if there is one, and the
url insert seems to do 99% of the job.
Cheers,
f.
