Hevea (hevea + hacha) is a great tool (at least for me) to convert latex into html. It's very fast and produces very little html files. But as you have to run two differents commands to do the complete conversion, the autodetected configuration didn't do exactly what I wanted (it did only run hevea), and setting it up is not documented in the LyX documentation or on the LyX help website.
2 questions: 1- Is there a simplest way to configure it, as the way I have found and explain here? 2- Would it be possible to have more explanations somewhere about using converters, and in particular this one? I found it was particularly bad documented for a novice user like me. For months I have run hacha in a console every time... *** First, we have to run hevea. It will convert the document in one html file. After that, we have to run hacha. It will split the html file in several ones and everything will be nicer (one file for each section and so on). I don't know if there is one solution to run hacha with one lyx command. As I remember, I tried but it worked only if hevea had everything clear with just one run (and sometimes it needs to run many times). I finally got runnig it by declaring two new HTML formats: (Menus are in french because I don't know how it looks like in another language) * The two formats Menu Edition-> Pr�f�rence ->Convertisseurs-> Format ** The first format: Format: htmlhevea Nom d'interface: HTML (hevea) Raccourci: v Extension: html Visionneuse: dillo (dillo because it is very fast) ** The second format: Format: htmlhacha Nom d'interface: HTML (hacha) Raccourci: c Extension: html Visionneuse: dillo 'index.html' | dillo (Dillo must be run twice in order to see the index.html file, or Lyx has problems. Is there another way to see this index.html file?) * After that: Two conversions Menu Edition ->Pr�f�rences-> Convertisseurs-> Convertisseurs ** The first one. To create the big html file Depuis: Latex Vers: HTML (hevea) Convertisseur: hevea -fix -fran�ais -noiso -nosymb -pedantic $$i Options: originaldir,needaux (hevea-options: fix: hevea runs as many times as needed to have correct output; francais: because I write in french; other options so that old netscape is happy)(I don't really know what these originaldir and needaux options are and if other ones exist, but without it it doesn't work) ** The second one. To create the entire site. Depuis: HTML (hevea) Vers: HTML (hacha) Convertisseur: hacha -fran�ais -tocbis $$i Options: originaldir,needaux (hacha-options: francais: for french; tocbis: to have a little toc in each file) For the converter to run well, I had to deactivate the /tmp directory. If it is not deactivated, ps images are not converted. Editer-> Pr�f�rences-> Entr�es-> R�pertoires-> R�pertoire temporaire (is not activated) After that, to see the html file produced by hacha: Voir-> HTML (hacha) *** Sorry for the bad english. -- Fabrice Flore-Th�bault
