Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > e8b7ce893d130f732758286a15c74b5e > files > 65

hevea-1.10-4mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>

<META http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<META name="GENERATOR" content="hevea 1.10">
<META name="Author" content="Luc Maranget">
<LINK rel="stylesheet" type="text/css" href="manual.css">
<TITLE>Installation</TITLE>
</HEAD>
<BODY >
<A HREF="manual043.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
<A HREF="manual040.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
<A HREF="manual045.html"><IMG SRC="next_motif.gif" ALT="Next"></A>
<HR>
<H2 CLASS="section"><A NAME="htoc161">C.4</A>&#XA0;&#XA0;Installation</H2><UL>
<LI><A HREF="manual044.html#toc128">Requirements</A>
</LI><LI><A HREF="manual044.html#toc129">Principles</A>
</LI></UL>
<H3 CLASS="subsection"><A NAME="toc128"></A><A NAME="htoc162">C.4.1</A>&#XA0;&#XA0;Requirements</H3><P><A NAME="requirements"></A>
The programs <TT>hevea</TT> and <TT>hacha</TT> are written in
<A HREF="http://caml.inria.fr/ocaml/">Objective Caml</A>. Thus, you
really need Objective Caml (the more recent version, the better) to
compile them.
However, some binary distributions exist, which are managed by
people other than me (thanks to them).
Links to some of these distributions appear in <A HREF="http://hevea.inria.fr/">H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A home page</A>.</P><P><A NAME="imagen:needs"></A>H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A users may instruct the program not to process a
part of the input (see section&#XA0;<A HREF="manual008.html#imagen">6</A>). Instead, this part is
processed into a 
<CODE>.gif</CODE> file and H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A outputs a link to the image file.
L<sup>A</sup>T<sub>E</sub>X source is changed into <CODE>.gif</CODE> images by the <CODE>imagen</CODE>
script, which basically calls, L<sup>A</sup>T<sub>E</sub>X, <TT>dvips</TT>,
<TT><A HREF="http://www.cs.wisc.edu/~ghost/index.html">ghostscript</A></TT>
and a few tools from the image processing package
<TT><A HREF="http://netpbm.sourceforge.net/">netpbm</A></TT>.</P><P>To benefit from the full functionality of H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A, you need all
this software. However, H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A runs without them, but then you will
have to produce images by yourself.</P><H3 CLASS="subsection"><A NAME="toc129"></A><A NAME="htoc163">C.4.2</A>&#XA0;&#XA0;Principles</H3><P>
The details are given in the <TT><A HREF="ftp://ftp.inria.fr/INRIA/moscova/hevea/README">README</A></TT>
file from the distribution.
Basically, H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A should be given a library
directory. The installation procedure stores the <TT>hevea.hva</TT>
and base style files in this directory.
There are two compilation modes, the <TT>opt</TT> mode selects the
native code OCaml compiler <TT>ocamlopt</TT>, while the <TT>byte</TT>
mode selects the bytecode OCaml compiler <TT>ocamlc</TT>.
In H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A case, <TT>ocamlopt</TT> produces code that is up to three
times as fast as the one produced by <TT>ocamlc</TT>.
Thus, default compilation mode is <TT>opt</TT>, however it may be the
case on some systems that only <TT>ocamlc</TT> is available.</P><P>Note that, when installing H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A from the source distribution, the
<TT>hevea.sty</TT> file is simply copied to H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A
library directory. It remains users responsibility to
make it accessible to L<sup>A</sup>T<sub>E</sub>X.</P><HR>
<A HREF="manual043.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
<A HREF="manual040.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
<A HREF="manual045.html"><IMG SRC="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>