Stephen Carville wrote:
>
> On Sat, 5 May 2001, Matej Cepl wrote:
>
> - I am not user of LaTeX2HTML, but I am certain that it is possible to
> - use some special code, which is ommited by LaTeX and read by
> - LaTeX2HTML. With tth, I can write
>
> I thought so too. A few years back, when I started using LyX to
> manage my online documentation, I remember using a special command to
> include some html to let me link to some image files. I just do not
> remember what that command was.
>
> - %%tth: anything which will not go to LaTeX, but it will go to tth
> -
> - or I can use section rawhtml, which is defined as comment for LaTeX,
> - but used by tth.
> -
> - I am certain, that something similar is present in LaTeX2HTML as well.
>
> That is what I am looking for.
i have no great knowledge about shell programming, so the
following solution may be much more easier to write.
save the shellscript as myT2H and make it executable.
export your lyx file as latex and run the following shellscript
on your tex-file with no suffix .tex for your file.
myT2H myTexFile
you'll get an html-file myTexFile.html with
<center>
<a href="/index.html"><img src="/icons/noc-logo.png"></a>
</center>
when you wrote this text as tex (red) in your lyx-file!!!
#!/bin/bash
#tth $1.ex # for another t2h converter
sed s/'<'/'<'/ < /usr/bin/latex2html $1.tex >temp
sed s/'>'/'>'/ < temp > $1.html
rm temp
Herbert
--
http://www.educat.hu-berlin.de/~voss/lyx/