"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/examples/index.tex" (16 Jan 2021, 4564 Bytes) of package /linux/www/hevea-2.35.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TeX and LaTeX source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 \documentclass{article}
    2 \usepackage{url}
    3 \usepackage{fancysection}
    4 \colorsections{200}
    5 \title{Examples of \hevea{} usage}
    6 
    7 \begin{document}\maketitle
    8 
    9 \section*{Some examples on the web}
   10 \begin{tocenv}
   11 \item Courses
   12 \begin{tocenv}
   13 \item The on-line
   14 ``\ahref{http://www.enseignement.polytechnique.fr/profs/informatique/Luc.Maranget/compil/poly/}{\emph{polycopi\'e}}''
   15 of my compilation course at \'Ecole polytechnique.
   16 Another
   17 ``\ahref{http://www.enseignement.polytechnique.fr/profs/informatique/Luc.Maranget/421/poly/}{\emph{polycopi\'e}}'' of mine.
   18 \item Another on-line
   19 ``\ahref{http://www.enseignement.polytechnique.fr/informatique/ARCHIVES/IF/poly/index.html}{\emph{polycopi\'e}}''
   20 from \'Ecole polytechnique.
   21 \item \ahref{http://www.grappa.univ-lille3.fr/polys/reseaux-2004/index.html}{Another course}, from Universit\'e de Lille~III.
   22 \end{tocenv}
   23 \item Manuals and tutorials.
   24 \begin{tocenv}
   25 \item The on-line manual of \ahref{\url|http://www.di.ens.fr/~pouzet/lucid-synchrone/manual_html/index.html|}{Lucid Synchrone}.
   26 \item The on-line
   27 \ahref{http://caml.inria.fr/pub/docs/manual-ocaml/index.html}{Objective
   28 Caml} manual.
   29 \item The on-line
   30 \ahref{http://www.lifl.fr/\home{boulet}/softs/mldoc/index.html}{MlDoc}
   31 manual. MlDoc is a literate programming tool.
   32 \item The on-line
   33 \ahref{http://omake.metaprl.org/omake.html}{OMake} manual.
   34 \end{tocenv}
   35 \end{tocenv}
   36 
   37 
   38 \section*{Examples from the distribution}
   39 Source for these examples is included in the distribution in
   40 sub-directory \texttt{examples}.
   41 \begin{itemize}
   42 \item The \ahrefurl{Makefile}
   43 
   44 \item A simple article,  source is \ahrefurl{a.tex}.
   45 You can compare \LaTeX{} output (\ahrefurl{a.dvi}) and \hevea{} output~\ahrefurl{a.html}. The \html{} output is
   46 generated with the french option set:
   47 \begin{verbatim}
   48 # hevea a.tex
   49 \end{verbatim}
   50 While the text output generated with:
   51 \begin{verbatim}
   52 # hevea -text a.tex
   53 \end{verbatim}
   54 
   55 \item The test suite: \ahrefurl{suite.tex}
   56 (\hevea{} style file \ahrefurl{suite-macros.hva}, \LaTeX{} style file
   57 \ahrefurl{suite-macros.sty})
   58 and \ahrefurl{suite.html} (see
   59 also \ahrefurl{suite.dvi} and \ahrefurl{suite.txt}).
   60 
   61 \item A complete article, cut into pieces , with images (source is
   62 \ahrefurl{pat.tex}, output is \ahrefurl{pat.dvi}, 
   63 \ahrefurl{pat.html} and \ahrefurl{pat.txt}). To yield this result, \verb+gpic+ is first
   64 applied to \verb+pat.tex+, yielding \verb+tmp.tex+; \LaTeX\ and
   65 \texttt{bibtex} are then used to produce the appropriate \verb+tmp.aux+ and
   66 \verb+tmp.bbl+ files; finally \hevea{}, \hacha{} and \texttt{imagen}
   67 are run as follows:
   68 \begin{verbatim}
   69 # hevea pat.hva -e pat.def tmp.tex
   70 # hacha -o pat.html tmp.html
   71 # imagen tmp
   72 \end{verbatim}
   73 Notice that the \LaTeX{} style file \ahrefurl{pat.def} is not loaded and
   74 that a simplified \ahrefurl{pat.hva} is loaded.
   75 
   76 Using option ``\texttt{-fix}'', \texttt{imagen} does not need to be
   77 run explicitely~:
   78 \begin{verbatim}
   79 # hevea -fix pat.hva -e pat.def tmp.tex
   80 # hacha -o pat.html tmp.html
   81 \end{verbatim}
   82 
   83 This example also serves as a test of \hacha{} advanced features,
   84 direct access to the article \ahref{conclusion.html}{conclusion}
   85 and \ahref{benchmarks.html}{performance figures}.
   86 
   87 \item How to use the \verb+latexonly+ and \verb+toimage+ environments
   88 inside other environments.
   89 Source files are \ahrefurl{env.hva} and
   90 \ahrefurl{env.tex}), output file is \ahrefurl{env.html}.
   91 \texttt{gpic}, \hevea{} and \texttt{imagen}
   92 are run as follows:
   93 \begin{verbatim}
   94 # gpic -t < env.tex > tenv.tex
   95 # hevea env.hva tenv.tex -o env.html
   96 # imagen env
   97 \end{verbatim}
   98 
   99 \item The ``\emph{Smile!}'' example, from the manual.
  100 Files are \ahrefurl{smile.hva}, \ahrefurl{smile.tex} and
  101 \ahrefurl{smile.html}, command sequence is~:
  102 \begin{verbatim}
  103 # gpic -t < smile.tex > tsmile.tex
  104 # hevea smile.hva tsmile.tex -o smile.html
  105 # imagen smile
  106 \end{verbatim}
  107 
  108 \item A few amstex primitives, \ahrefurl{amstex.tex},
  109 \ahrefurl{amstex.dvi}, \ahrefurl{amstex.html} and \ahrefurl{amstex.txt}.
  110 \hevea{} is invoked as:
  111 \begin{verbatim}
  112 # hevea [-text] amstex.tex
  113 \end{verbatim}
  114 
  115 \item The \texttt{graphics} package, \ahrefurl{graphics.tex}
  116 and \ahrefurl{graphics.html}.
  117 \hevea{} is invoked as:
  118 \begin{verbatim}
  119 # hevea graphics.tex
  120 # imagen graphics
  121 \end{verbatim} 
  122 
  123 \item A lot of symbols, \ahrefurl{sym.html}.
  124 Almost all the symbols provided by default and by packages
  125 \texttt{latexsym},
  126 \texttt{textcomp},
  127 \texttt{amssymb} and \texttt{amsmath}.
  128 
  129 \item \ahref{boxes.html}{Boxes}, boxes (and lengths).
  130 
  131 \item \ahref{test/index.html}{More tests}: systematic tests of some of \hevea{} features.
  132 \end{itemize}
  133 \end{document}