Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Latex2html

  • To: lyx-users@xxxxxxxxxxxxx
  • Subject: Re: Latex2html
  • From: Roy Schestowitz <r@xxxxxxxxxxxxxxx>
  • Date: Tue, 06 Sep 2005 06:25:36 +0100
  • Delivery-date: Tue, 06 Sep 2005 06:25:38 +0100
  • Envelope-to: r@schestowitz.com
  • In-reply-to: <000a01c5b22a$8eb2a4d0$0400a8c0@grl>
  • References: <000a01c5b22a$8eb2a4d0$0400a8c0@grl>
  • User-agent: Internet Messaging Program (IMP) H3 (4.0.3)
_____/ On Mon 05 Sep 2005 15:59:58 BST, [Geoffrey Lloyd] wrote : \_____

Hi

Just wondered if anyone had any success using/installing this with WinXp and Lyx??

I tried to do an Export->Html and got an error saying it couldn't find Latex2html - I assume it doesn't come with Lyx (is this correct??)

If this is the case I will go and find it and do a full install, but given the option is there it seems rather odd - and isn't listed as an extra in the Wiki.

Geoff

Geoff,

My best advice to you is to get hold of a *nix box and install latex2html
(unless it is already installed, of course). Latex2html is predominantly
*unix-oriented, so the gain in the long run will be noticeable. I never had
much of a hard time compiling it either.

Having got latex2html installed (and in your PATH), ensure the paths to images
[1] in your LyX files are workable. For example,
'c:\my_thesis\graphics/figure1.eps' is a bad idea because it is
platform-dependent. Make sure paths are relative if possible, e.g.
'./graphics/figure1.eps'). Then, export your LyX document as LaTeX.

Having exported the document to LaTeX, export to HTML using the simple command:

<code>
latex2html *.lyx       # ensuring of course, that you have just 1 lyx file in
the current directory
</code>

The conversion is best done in your 'workspace', which contains all images
properly linked. Ensure no errors were flagged during the run. Errors are
output to the terminal (/console), as well as log files. If in doubt, skimp
them.

Customise the stylesheets if you wish to do so. Assuming your LyX file was named
file.lyx, you will find the stylesheets in ./file/file.css


I find it helpful when one binds a link to the corresponding PDF version at the
top of each HTML page, e.g.


http://www.schestowitz.com/Research/Continuation_Report/HTML/

I suppose you might encounter some improper paths in the links buttons, namely
'up', 'next', 'previous', 'contents' and 'index'. I have some scripts that fix
that in 'batch mode'. Contact me off-list if you need these scripts.

Lastly, link your HTML output and test it thoroughly, ensuring it does not flag
any errors in your logs (assuming you have access to these). Be sure to test
all images and test the style/s on various platforms and browsers if necessary.
Remember: it is most likely that people will read your thesis in HTML form, not
PDF. HTML files will also be indexed by crawlers and 404 errors will be frowned
upon.


Good luck!

Roy

[1] As for image conversions, ImageMagick is built into most Linux distribution.
You will most likely /not/ have to worry much about image conversions.


--
Roy S. Schestowitz      | "Signature pending approval"
http://Schestowitz.com  |    SuSE Linux    |     PGP-Key: 74572E8E
 5:55am  up 12 days 15:15,  4 users,  load average: 0.73, 0.75, 0.68


[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index