Previous Up Next

Part II
Installation and Testing


This section explains how to set up Hevea and Hacha under SWP. You will need a version of unzip that understands long file names.

6  Obtaining the files

You will need:
  1. The Hevea Win-32 system (in the file winport.zip) from
    http://facweb.knowlton.ohio-state.edu/pviton/support/winport.zip

    The SWP extensions themselves in the file hevea-swp.zip from
    http://facweb.knowlton.ohio-state.edu/pviton/support/hevea-swp.zip


  2. The Hevea manual which can be found at the main Hevea site,
    http://para.inria.fr/~maranget/hevea/
Steve Mayer has produced a nice graphical front-end to Hevea (and other TEX/LATEX converters). It can be obtained from
http://www.mayer.dial.pipex.com/tex.htm
Appendix G explains how to set up the Converter for Hevea-SWP.

7  Setting up Hevea and Hacha

  1. If you are upgrading from a previous release of Hevea, it is safe to simply get the new files and install them over the old ones.

  2. Create a directory on your disk for the Hevea files. This directory should not be part of your SWP system directory. In addition, because Hevea is a port of a Unix program, neither the directory name nor the path to it should contain spaces, so do not put the files in c:\Program Files. I suggest c:\hevea.

  3. Unzip winport.zip to this directory, preserving subdirectories. You should see four subdirectories (html, text, info, and test).

  4. Unzip the files in hevea-swp.zip to the same directory, preserving subdirectories. Some files may over-write previous ones: this is expected. You should verify that both the html and the text subdirectories contain a file swp.hva. If you're not interested in the programming to support the \today macro (see section 17.1) you can delete xdate.c and xxdate.cpp.
Next we set up some batch files.
  1. Open each .bat file and make sure that the line beginning set heveadir= points to the directory where you installed Hevea. The pointer should not end with a backslash character. If you customized previous versions of the batch files, add the customizations to the new versions.

  2. Move the files to some directory in your path: that way you will be able to call the translator from any directory on your hard disk. Delete the batch files from the Hevea directory.

8  Testing the translator

The SWP distribution contains a small test file (heveatest.tex, plus graphics files heveatest.wmf and heveatest.gif) to check that the system is working. To run the test: You can now view the result in your browser.

9  Troubleshooting

The batch files make a copy of your current path before calling Hevea; they add the Hevea directory to your path, call Hevea, and restore the original path when done. Under Windows 95/98 (but not under NT4) you may run out of the space allocated by the operating system to store these path strings. The symptom is a message “Out of Environment Space”. If this happens, you will need to increase the size of your environment area: here are two ways to do this.
Previous Up Next