hevea-2.09-manual/0000755004317100512160000000000012204704204014030 5ustar marangetcristalhevea-2.09-manual/manual022.html0000644004317100512160000002034112204704202016415 0ustar marangetcristal Reference manual Previous Up Next

Part B
Reference manual

This part follows the pattern of the LATEX reference manual [LATEX, Appendix C].


Previous Up Next hevea-2.09-manual/manual012.html0000644004317100512160000000177612204704202016427 0ustar marangetcristal Another cut subsubsection Previous Up

7.3.8  Another cut subsubsection

Another note in a subsubsection, flushed at subsubsections.2


2
At the end of my page.

Previous Up hevea-2.09-manual/manual047.html0000644004317100512160000000634612204704202016435 0ustar marangetcristal References Previous Up Next

References

[LATEX-bis]
M. Gooseens, F. Mittelbach, A. Samarin. The LATEX Companion Addison-Websley, 1994.
[LATEX]
L. Lamport. A Document Preparation System System, LATEX, User’s Guide and Reference Manual. Addison-Websley, 1994.
[htmlgen]
X. Leroy. Lessons learned from the translation of documentation from LATEX to html. ERCIM/W4G Int. Workshop on WWW Authoring and Integration Tools, 1995. Available on the web at http://cristal.inria.fr/~xleroy/w4g.html
[HTML-4.0]
D. Ragget, A. Le Hors and I. Jacobs. HTML 4.0 Reference Specification. Available on the web at http://www.w3.org/TR/REC-html40, 1997.
[HTML-5a]
W3C HTML Working groups. HTML5 A vocabulary and associated APIs for HTML and XHTML http://dev.w3.org/html5/spec/spec.html, 2012.
[HTML-5b]
HTML Living Standard http://www.whatwg.org/specs/web-apps/current-work/multipage/, 2012.
[CSS-2]
Bert Bos, Tantek Çelik, Ian Hickson and Håkon Wium Lie. Cascading Style Sheets, Level 2 Revision 2 Specification. Available on the web at http://www.w3.org/TR/REC-CSS2/, 2011.

Previous Up Next hevea-2.09-manual/manual004.png0000644004317100512160000001245612204704200016243 0ustar marangetcristalPNG  IHDRTaA $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'& 영ALi)OO7z? xo"DDX3+=e/1=<+]fRK|cלo,]z ){T8بlOrTzV $G&DPJGf/GnrAltL:5204gk!FgY߽zس {{t@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S[N#y6x˩tX0-8n3dxY`'"zV2.PY_/B nW~E ,t͟mY_~%Kw9 AN-1Pwb(Y5^[ɯq F H 5قsrVcŸpNݥ?.%<G5ZdN5lCeɽrn˧}1\*KVH}~5%tEXtdate:create2013-08-20T17:17:20+02:00%tEXtdate:modify2013-08-20T17:17:20+02:00+tEXtSoftwareGPL Ghostscript 9.05]IENDB`hevea-2.09-manual/manual023.html0000644004317100512160000001647012204704202016426 0ustar marangetcristal Commands and Environments Up Next

B.1  Commands and Environments

B.1.1  Command Names and Arguments

LATEX comments that start with “%” and end at end of line are ignored and produce no output. Usually, HEVEA ignore such comments. However, HEVEA processes text that follows “%HEVEA” and some other comments have a specific meaning to it (see section 5.3).

Command names follow strict LATEX syntax. That is, apart from #, $, ~, _ and ^, they either are “\” followed by a single non-letter character or “\” followed by a sequence of letters. Additionally, the letter sequence may be preceded by “@” (and this is the case of many of HEVEA internal commands), or terminated by “*” (starred variants are implemented as plain commands).

Users are strongly advised to follow strict LATEX syntax for arguments. That is, mandatory arguments are enclosed in curly braces {} and braces inside arguments must be properly balanced. Optional arguments are enclosed in square brackets []. However, HEVEA does its best to read arguments even when they are not enclosed in curly braces. Such arguments are a single, different from “\”, “{” and “ ”, character or a command name. Thus, constructs such as \'ecole, $a_1$ or $a_\Gamma$ are recognized and processed as école a1 and aΓ. By contrast, a^\mbox{...} is not recognized and must be written a^{\mbox{...}}.

Also note that, by contrast with LATEX, comments are parsed during argument scanning, as an important consequence brace nesting is also checked inside comments.

With respect to previous versions, HEVEA has been improved as regards emulation of complicated argument passing. That is, commands and their arguments can now appear in different static text bodies. As a consequence, HEVEA correctly processes the following source:

\newcommand{\boite}{\textbf}
\boite{In bold}

The definition of \boite makes it reduces as \textbf and HEVEA succeeds in fetching the argument “{In bold}”. We get

In bold

The above example arguably is no “legal” LATEX, but HEVEA handles it. Of course, there remains numerous “clever” LATEX tricks that exploits TEX internal behaviour, which HEVEA does not handle. For instance consider the following source:

\newcommand{\boite}[1]{\textbf#1}
\boite{{In bold}, Not in Bold.}

LATEX typesets the text “In bold” using bold font, leaving the rest of the text alone. While HEVEA typesets everything using bold font. Here is HEVEA output:

In bold, Not in Bold.

Note that, in most similar situations, HEVEA will likely crash.

As a conclusion of this important section, Users are strongly advised to use ordinary command names and curly braces and not to think too much the TEX way.

B.1.2  Environments

Environment opening and closing is performed like in LATEX, with \begin{env} and \end{env}. The *-form of an environment is a plain environment.

It is not advised to use \env and \endenv in place of \begin{env} and \end{env}.

B.1.3  Fragile Commands

Fragile commands are not relevant to HEVEA and \protect is defined as a null command.

B.1.4  Declarations

Scope rules are the same as in LATEX.

B.1.5  Invisible Commands

I am a bit lost here. However spaces in the output should correspond to users expectations. Note that, to HEVEA being invisible commands is a static property attached to command name.

B.1.6  The \\ Command

The \\ and \\* commands are the same, they perform a line break, except inside arrays where they end the current row. Optional arguments to \\ and \\* are ignored.


Up Next hevea-2.09-manual/manual016.html0000644004317100512160000000146012204704202016421 0ustar marangetcristal Another cut subsubsection Previous Up

7.3.12  Another cut subsubsection

Another note in a subsubsection at document level.7


Previous Up hevea-2.09-manual/manual048.html0000644004317100512160000007520612204704202016437 0ustar marangetcristal Index Previous Up

Index


Previous Up hevea-2.09-manual/manual031.html0000644004317100512160000000757012204704202016426 0ustar marangetcristal Figures and Other Floating Bodies Previous Up Next

B.9  Figures and Other Floating Bodies

Figures and tables are put where they appear in source, regardless of their placement arguments. They are outputted inside a BLOCKQUOTE element and they are separated from enclosing text by two horizontal rules.

Captions and cross referencing are handled. However captions are not moved at end of figures: instead, they appear where the \caption commands occur in source code. The \suppressfloats command does nothing and the figure related counters (such as topnumber) exist but are useless.

Marginal notes go in the right margin by default.
To get marginal notes in the left margin, use \reversemaginpar.

Marginal notes are handled in an HEVEA specific way. By default, all notes go in the right margin. Issuing \reversemarginpar causes the notes to go in the left margin. Unsurprisingly, issuing \normalmarginpar reverts to default behaviour.

The \marginpar command has an optional argument.

  \marginpar[left_text]{right_text}

If optional argument left_text is present and that notes go in the left margin, then left_text is the text of the note. Otherwise, right_text is the text of the note. As a conclusion, marginal notes in HEVEA always go to a fixed side of the page, which side being controlled by the commands \normalmarginpar (right side) and \reversemarginpar (left side). This departs form LATEX that selects a default side depending on the parity of the page counter.

Marginal notes are styled by the means of two environment style classes (see Section 9.3) : marginpar and marginparside. The latter marginparside takes care of margins and placement as a float, its value is marginparright for notes in the right margin and marginparleft for notes in the left margin. Users are not expected to alter those. The marginpar environment style class governs the general aspect of all marginal notes. Users can control the aspect of all marginal notes by defining a new style class and assigning the marginpar environment style class. For instance, to get all marginal notes in red font, and taking 10% of the page width (in place of the default 20%), one can issue the following commands in the document preamble.

\newstyle{.mynote}{width:10\%; color:red;}
\setenvclass{marginpar}{mynote}

Previous Up Next hevea-2.09-manual/manual008.png0000644004317100512160000000624112204704201016243 0ustar marangetcristalPNG  IHDR*d] $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'& 영ALi)OO7z? xo"DDX3+=e/1=<+]fRK|cלo,]z ){T8بlOrTzV $G&DPJGf/GnrAltL:5204gk!FgY߽zس {{t@wOm|:3<@t *K`  |d\ "U4& NNp\mp '@&+ <AX H Rt # YC AP4e@v*: :]nB#h >Ll¾Z8Ns|x7\' |+xa ʈ.FD!d3R#H+ҍ!!2|DaP4D9P|T*j3U:@P"4-A[y@t4: ].G7 { 0fgL&S9i\ b1X,Vz`ðl%v;#pF8G\0. +5.py8^oG7K n~ A`86Bp0JxK$UD/b,q+xx8FHI\R)ttL&kmtnr*MLO'!EZClH5OQp((9rʌ8^\C+&YZMPC"QXYKՠ:P##ԫqBSqi|vZm@IR%%%%%/H Cc$0J8RRZm# ۤ?0edet L[MBjFt'}mngG StYZ[6[Nb\հjJ*̪Jhʹ>l-Q ynjah;qNp^ M}ϡᙣccieg^k\\6\}\\i ܺaw}W'<}O=Yza<^xzz|4-}Oo ( n $ n ]fkYk\'.a݅aτCBC*6,b:*4r2*4j**z_tMLyL,7*Ms\m\GńD\bh$jR|Robrv`NJA0"uH*hL֦uӗ> ͌c֙ՙdKd'eoްkdcэ=ʹr6q6m6o٢%VǷo- 4 [w8h)+Y؟vUKaD"b~ yqwӒC{0{}e̲²wYn\^{p 〰­RrOBULp]u[|ͮjU-t8:z##G^47emjm,j|,&f%eDȉ'Ovֵ1ڊNS^˃Ӯ{ΰϴU?[Nk/:6t:c:]A]\t[v/H^(HqRΥ)gD_Yj^\ݸxj oZÃ< >x8(ћǙlE>ZLYZ M<2G //'&O;N}īW3JYZٿl&,]Vwzf=gO|??WA}>Mg-`*>k}et1qq?.r)ԕ?PLTE# # # # # # # # # # # # # # # # # # # # xtRNS3"DfݙUwuFCh pHYsaa?i-IDAThX E _kkAv;ҁ2H Npo/{8%xқV|UQi)y0vr+)odd^; ƒTx؜㫔 늾9LߋE,s;X)S߰`zn$m:N柛a:Ryb&ԅ*Tzk#)1nJ$Uc tȡxTL( n$q?9rbRCM<4 i#,;m??QLM:K]%$hzA`˘a:>z%rn@t"v}%U>k佒fU;\zUzW$,¹LӨFիU=^ bjk:m4T%tEXtdate:create2013-08-20T17:17:21+02:00%tEXtdate:modify2013-08-20T17:17:21+02:00b tEXtSoftwareGPL Ghostscript 9.05]IENDB`hevea-2.09-manual/thaihevea.haux0000644004317100512160000000037712204704202016662 0ustar marangetcristal\@@addtocsec{htoc}{sec1}{0}{\@print{1}\quad{}Latin/Thai Character Set{}} \@@addtocsec{htoc}{sec2}{0}{\@print{2}\quad{}Thai in \LaTeX{}} \@@addtocsec{htoc}{sec3}{0}{\@print{3}\quad{}Thai in \hevea{}} \newlabel{commands}{{1}{X}} \newlabel{thaichar}{{1}{X}} hevea-2.09-manual/manual003.png0000644004317100512160000000546012204704200016237 0ustar marangetcristalPNG  IHDR5. $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'& 영ALi)OO7z? xo"DDX3+=e/1=<+]fRK|cלo,]z ){T8بlOrTzV $G&DPJGf/GnrAltL:5204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GPL Ghostscript 9.05]IENDB`hevea-2.09-manual/manual029.html0000644004317100512160000004336512204704202016437 0ustar marangetcristal Mathematical Formulae Previous Up Next

B.7  Mathematical Formulae

B.7.1  Math Mode Environment

The three ways to use math mode ($$, \(\) and \begin{math}\end{math}) are supported. The three ways to use display math mode ($$$$, \[\] and \begin{displaymath}\end{displaymath}) are also supported. Furthermore, \ensuremath behaves as expected.

The equation, eqnarray, eqnarray* environments are supported. Equation labelling and numbering is performed in the first two environments, using the equation counter. Additionally, numbering can be suppressed in one row of an eqnarray, using the \nonumber command.

Math mode is not as powerful in HEVEA as in LATEX. The limitations of math mode can often be surpassed by using math display mode. As a matter of fact, math mode is for in-text formulas. From the html point of view, this means that math mode does not close the current flow of text and that formulas in math mode must be rendered using text-level elements only. By contrast, displayed formulas can be rendered using block-level elements. This means that HEVEA have much more possibilities in display context than inside normal flow of text. In particular, stacking text elements one above the over is possible only in display context. For instance compare how HEVEA renders $\frac{1}{\sum_{i=1}^{\infty} i$ as: 1/∑i=1 i, and $$\frac{1}{\sum_{i=1}^{\infty} i$$ as:

1
i=1
 i

B.7.2  Common Structures

HEVEA admits, subscript (_), superscripts (^) and fractions (\frac{numer}{denom}). The best effect is obtained in display mode, where html table element is extensively used. By contrast, when not in display mode, HEVEA uses only SUB and SUP text-level elements to render superscrits and subscript, and the result may not be very satisfying.

However, simple subscripts and superscripts, such as x_i or x^2, are always rendered using the SUB and SUP text-level elements and their appearance should be correct even in in-text formulas.

When occurring outside math mode, characters _ and ^ act as ordinary characters and get echoed to the output. However, a warning is issued.

An attempt is made to render all ellipsis constructs (\ldots, \cdots, \vdots and \ddots). The effect may be strange for the latter two.

B.7.3  Square Root

The nth root command \sqrt is supported only for n=3,4, thanks to the existence of Unicode characters for the same. For the others, we shift to fractional exponents, in which case, the \sqrt command is defined as follows:

\newcommand{\sqrt}[3][2]{\left(#2\right)^{1/#1}}

Then, the source fragment: $$\sqrt[5]{\frac{1}{n!}} + \sqrt[3]{\pi} + \sqrt{\pi}$$ gets rendered as follows:




1
n!



1
5



 
 + 
π
 + 
π

B.7.4  Unicode and mathematical symbols

The support for unicode symbols offered by modern browsers allows to translate almost all math symbols correctly.

Log-like functions and variable sized-symbols are recognized and their subscripts and superscripts are put where they should in display mode. Subscript and superscript placement can be changed using the \limits and \nolimits commands. Big delimiters are also handled.

B.7.5  Putting one thing above/below/inside

The commands \stackrel, \underline and \overline are recognized. They produce sensible output in display mode. In text mode, these macros call the \textstackrel, \textunderline and \textoverline macros. These macros perform the following default actions

\textstackrel
Performs ordinary superscripting.
\textunderline
Underlines its argument, using the U text-level element.
\textoverline
Overlines using style-sheets (used <SPAN> with a top border).

The command \boxed works well both in display and normal math mode. Input of the form \boxed{\frac{\pi}{2}} produces π/2 in normal math, and

π
2

in display-math mode. The commands \bigl,\bigr etc. are also rendered well. Some examples can be found here.

B.7.6  Math accents

Math accents that have coresponding text accents (\hat, \tilde, etc.) are handled by default. They in fact act as the corresponding text-mode accents (Section B.3.4). As a consequence, they work properly only on ascii letters. This may be quite cumbersome, but at least some warnings draw user’s attention on the problem. If accents are critical to your document and that HEVEA issues a lot of warnings, a solution is to redefine the math accent command. A suggested replacement is using limit superscripts. That way accents are positioned above symbols in display mode and after symbols in text mode.

\renewcommand{\hat}[1]{\mathop{#1}\limits^{\textasciicircum}\nolimits}
Displayed:
$$
\hat{\mu} = \hat{\Delta}.
$$
In text: $\hat{\mu} = \hat{\delta}$

An you get, displayed:

^
µ
 
 = 
^
Δ
 
.

In text: µ^ = δ^.

Whereas, with the default of \hat being \^, you get “µ = δ”, with the following warnings:

./tmp.tex:4652: Warning: Application of '\^' on '\mu' failed
./tmp.tex:4652: Warning: Application of '\^' on '\delta' failed

The \vec command is rendered differently in display and non-display mode. In display mode, the arrow appears in normal position, while in non-display the arrow appears as an ordinary superscript.

\vec{u} in text mode: u,   \vec{u} in display mode: 
u
 

Most “extensible accents” (\widetilde, \widehat, etc.) are not even defined. There are a few exceptions: line “accents”:

    
abc
  \underline
    
abc
  \overline

Brace “accents”:

    
 
1 × 2 × ⋯ × n


  \underbrace
    


1 × 2 × ⋯ × n
 
  \overbrace

And arrow “accents”:

    

1 × 2 × ⋯ × n
 
  \overleftarrow
    

1 × 2 × ⋯ × n
 
  \overrightarrow

B.7.7  Spacing

By contrast with LATEX, space in the input matters in math mode. One or more spaces are translated to one space. Furthermore, spaces after commands (such as \alpha) are echoed except for invisible commands (such as \tt). This allows users to control space in their formulas, output being near to what can be expected.

Explicit spacing commands (\,, \!, \: and \;) are recognized, the first two commands do nothing, while the others two output one space.

B.7.8  Changing Style

Letters are italicized inside math mode and this cannot be changed. The appearance of other symbols can be changed using LATEX 2є style changing commands (\mathbf, etc.). The commands \boldmath and \unboldmath are not recognized. Whether symbols belonging to the symbol font are affected by style changes or not is browser dependent.

The \cal declaration and the \mathcal command (that yield calligraphic letters in LATEX) exist. They yield red letters by default.

Observe that this does not corresponds directly to how LATEX manage style in math mode and that, in fact, style cannot really change in math mode.

Math style changing declarations \displaystyle and \textstyle do nothing when HEVEA is already in the requested mode, otherwise they issue a warning. This is so because HEVEA implements displayed maths as tables, which require to be both opened and closed and introduce line breaks in the output. As a consequence, warnings on \displaystyle are to be taken seriously.

The commands \scriptstyle and \scriptscriptstyle perform type size changes.


Previous Up Next hevea-2.09-manual/manual017.html0000644004317100512160000000126712204704202016427 0ustar marangetcristal Notes
6
Sent to a separate file
7
Sent to a separate file
hevea-2.09-manual/previous_motif.gif0000644004317100512160000000047512204704202017575 0ustar marangetcristalGIF89app!# Imported from XPM image: prev.xpm!,@63333# B 0 A0 0 0 0 `0 `0 A   `0 `00000000000000000000000000000000000000000000  000 0000000000000000000000000000000` ;hevea-2.09-manual/manual013.html0000644004317100512160000000141712204704202016420 0ustar marangetcristal A cut subsubsection Up Next

7.3.9  A cut subsubsection

A note in a subsubsection, flushed at sections.4


Up Next hevea-2.09-manual/manual019.html0000644004317100512160000006036312204704202016433 0ustar marangetcristal Support for style sheets Previous Up Next

9  Support for style sheets

9.1  Overview

Starting with version 1.08, HEVEA offers support for style sheets (of the CSS variant see [CSS-2]).

Style sheets provide enhanced expressiveness. For instance, it is now possible to get “real” (whatever real means here) small caps in html, and in a relatively standard manner. There are other, discrete, maybe unnoticeable, similar enhancements.

However, style sheets mostly offer an additional mechanism to customise their documents to HEVEA users. To do so, users should probably get familiar with how HEVEA uses style sheets in the first place.

HEVEA interest for style sheets is at the moment confined to block-level elements (div, table, H<n>, etc.). The general principle is as follows: when a command or an environment gets translated into a block-level element, the opening tag of the block level element has a class="name" attribute, where name is the command or environment name.

As an example the LATEX command \subsection is implemented with the element h3, resulting in html output of the form:

    <h3 class="subsection">
    ...
    </h3>

By default, most styles are undefined, and default rendering of block-level elements applies. However, some packages (such as, for instance fancysection, see Section B.16.4) may define them. If you wish to change the style of section headers, loading the fancysection package may prove appropriate (see B.16.4). However, one can also proceed more directly, by appending new definitions to the document style sheet, with the command \newstyle. For instance, here is a \newstyle to add style for subsections.

  \newstyle{.subsection}{padding:1ex;color:navy;border:solid navy;}

This declaration adds some style element to the subsection class (notice the dot!): blocks that declare to belong to the class will show dark-blue text, some padding (space inside the box) is added and a border will be drawn around the block. These specification will normally affect all subsections in the document. Given the previous style definition, the sectioning command

\subsection*{A styled subsection heading}

should yield:

A styled subsection heading

The following points are worth noticing:

  • To yield some effect, \newstyle commands must appear in the document preamble, i.e. before \begin{document}.
  • Arguments to \newstyle commands are processed.
  • The hevea package defines all style sheet related commands as no-ops. Thus, these commands do not affect document processing by LATEX.

9.2  Changing the style of all instances of an environment

In this very document, all verbatim environments appear over a light green background, with small left and right margins. This has been performed by simply issuing the following command in the document preamble.

\newstyle{.verbatim}{margin:1ex 1ex;padding:1ex;background:\#ccffcc;}

Observe that, in the explicit numerical color argument above, the hash character “#” has to be escaped.

9.3  Changing the style of some instances of an environment

One can also change the style class attached to a given instance of an environment and thus control styling of environments more precisely.

As a matter of fact, the name of the class attribute of environment env is referred to through an indirection, by using the command \getenvclass{env}. The class attribute can be changed with the command \setenvclass{env}{class}. The \setenvclass command internally defines a command \env@class, whose content is read by the \getenvclass command. As a consequence, the class attribute of environments follows normal scoping rules. For instance, here is how to change the style of one verbatim environment.

{\setenvclass{verbatim}{myverbatim}
\begin{verbatim}
This will be styled through class 'myverbatim', introduced by:
\newstyle{.myverbatim}
  {margin:1ex 3x;padding:1ex;
   color:maroon;
   background:\@getstylecolor[named]{Apricot}}
\end{verbatim}}

Observe how the class of environment verbatim is changed from its default value to the new value myverbatim. The change remains active until the end of the current group (here, the “}” at the end). Then, the class of environment verbatim is restored to its default value — which happen to be verbatim.

This example also shows two new ways to specify colours in style definition, with a conventional html color name (here maroon) or as a high-level color (see Section B.14.2), given as an argument to the \@getstylecolor internal command (here Apricot from the named color model).

A good way of specifying style class changes probably is by defining new environments.

\newenvironment{flashyverbatim}
  {\setenvclass{verbatim}{myverbatim}\verbatim}
  {\endverbatim}

Then, we can use \begin{flashyverbatim}\end{flashyverbatim} to get verbatim environments style with the intended myverbatim style class.

This text is typeset inside the environment
\emph{flashyverbatim}, and hence with the \emph{myverbatim}
style.

9.4  Which class affects what

Generally, the styling of environment env is performed through the commands \getenvclass{env} and \setenvclass{env}{}, with \getenvclass{env} producing the default value of env.

Concretely, this means that most of the environments are styled through an homonymous style class. Here is a non-exhaustive list of such environments

figure, table, itemize, enumerate, list, description, trivlist, center, flushleft, flushright, quote, quotation, verbatim, abstract, mathpar (cf Section B.17.15), lstlisting (cf. Section B.17.13), etc.

All sectioning commands (\part, \section etc.) output H<n> block-level elements, which are styled through style classes named part, section, etc.

List making-environment introduce extra style classes for items. More specifically, for list-making environments itemize and enumerate, li elements are styled as follows:

<ul class="itemize">
<li class="li-itemize"> ...
</ul>
<ol class="enumerate">
<li class="li-enumerate"> ...
</ol>

That is, li elements are styled as environments, the key name being li-env.

The description, trivlist and list environments (which all get translated into DL elements) are styled in a similar way, internal DT and DD elements being styles through names dt-env and dd-env respectively.

9.5  A few examples

9.5.1  The title of the document

The command \maketitle formats the document title within a table element, with class title, for display. The name of the title is displayed inside block h1, with class titlemain, while all other information (author, date) are displayed inside block h3, with class titlerest.

<table class="title">
 <tr>
  <td style="padding:1ex">
   <h1 class="titlemain">..title here..</h1>
   <h3 class="titlerest">..author here..</h3>
   <h3 class="titlerest">..date here..</h3>
  </td>
 </tr>
</table>

Users can impact on title formatting by adding style in the appropriate style classes. For instance the following style class definitions:

\newstyle{.title}
  {text-align:center;margin:1ex auto;color:navy;border:solid navy;}
\newstyle{.titlerest}{font-variant:small-caps;}

will normally produce a title in dark blue, centered in a box, with author and date in small-caps.

Title

Date

Author

9.5.2  Enclosing things in a styled div

At the moment, due to the complexity of the task, environments tabular and array cannot be styled as others environments can be, by defining an appropriate class in the preamble. However, even for such constructs, limited styling can be performed, by using the divstyle environment. The opening command \begin{divstyle}{class} takes the name of a class as an argument, and translates to <div class="class">. Of course the closing command \end{divstyle} translates to </div>. The limitation is that the enclosed part may generate more html blocks, and that not all style attribute defined in class class class will apply to those inner blocks.

As an example consider the style class definition below.

\newstyle{.ruled}{border:solid black;padding:1ex;background:\#eeddbb;color:maroon}

The intended behaviour is to add a black border around the inner block (with some padding), and to have maroon text over a light brown background.

If we, for instance, enclose an itemize environment, the resulting effect is more or less what we have expected:

\begin{divstyle}{ruled}
\begin{itemize}
\item A ruled itemize
\item With two items.
\end{itemize}
\end{divstyle}
  • A ruled itemize
  • With two items.

However, enclosing a centered tabular environment in a divstyle{ruled} one is less satisfactory.

\begin{divstyle}{ruled}
\begin{center}\begin{tabular}{|c|c|}
\hline \bf English & \bf French\\ \hline
Good Morning & Bonjour\\ Thank You & Merci\\ Good Bye & Au Revoir\\ \hline
\end{tabular}\end{center}
\end{divstyle}
EnglishFrench
Good MorningBonjour
Thank YouMerci
Good ByeAu Revoir

In the html version of this document, one sees that the brown background extend on all the width of the displayed page.

This problem can be solved by introducing an extra table. We first open an extra centered table and then only open the divstyle environment.

\begin{center}\begin{tabular}{c}
\begin{divstyle}{ruled}
\begin{tabular}{|c|c|}
\hline \bf English & \bf French\\ \hline
Good Morning & Bonjour\\ Thank You & Merci\\ Good Bye & Au Revoir\\
\hline
\end{tabular}
\end{divstyle}
\end{tabular}\end{center}

This works because of the rules that govern the width of html table elements, which yield minimal width. This trick is used in numerous places by HEVEA, for instance in document titles, and looks quite safe.

EnglishFrench
Good MorningBonjour
Thank YouMerci
Good ByeAu Revoir

Another solution is to specify the display property of the styling div block as being inline-block:

\newstyle{.ruledbis}
  {border:solid black;padding:1ex;background:\#eeddbb;color:maroon;display:inline-block;}
EnglishFrench
Good MorningBonjour
Thank YouMerci
Good ByeAu Revoir

9.5.3  Styling the itemize environment

Our idea is highlight lists with a left border whose color fades while lists are nested. Such a design may be appropriate for tables of content, as the one of this document.

  • Part A
    • Chapter I
      • Section I.1
      • Section I.2
    • Chapter II
      • Section II.1
      • Section II.2
    • Chapter III
  • Part B
    • Chapter IV
      • Section IV.1
        • Section IV.1.a
        • Section IV.1.b
      • Section IV.2
    • Chapter V

The text above is typeset from the following LATEX source.

\begin{toc}
\item Part~A
\begin{toc}
\item Chapter~I
\begin{toc}
\item Section~I.1
\item Section~I.2
\end{toc}
  ...
\end{toc}
\end{toc}

For simplicity, we assume a limit of four over the nesting depth of toc environment. We first define four style classes toc1, toc2, toc3 and toc4 in the document preamble. Since those classes are similar, a command \newtocstyle is designed.

\newcommand{\newtocstyle}[2]
{\newstyle{.toc#1}{list-style:none;border-left:1ex solid #2;padding:0ex 1ex;}}
\newtocstyle{1}{\@getstylecolor{Sepia}}
\newtocstyle{2}{\@getstylecolor{Brown}}
\newtocstyle{3}{\@getstylecolor{Tan}}
\newtocstyle{4}{\@getstylecolor{Melon}}

The toc environment uses a counter to record nesting depth. Notice how the style class of the itemize environment is redefined before \begin{itemize}.

\newcounter{toc}
\newenvironment{toc}
{\stepcounter{toc}\setenvclass{itemize}{toc\thetoc}\begin{itemize}}
{\addtocounter{toc}{-1}\end{itemize}}

The outputted html is:

<ul class="toc1"><li class="li-itemize">
Part&nbsp;A
<ul class="toc2"><li class="li-itemize">
Chapter&nbsp;I
<ul class="toc3"><li class="li-itemize">
Section&nbsp;I.1
<li class="li-itemize">Section&nbsp;I.2
  ...
</ul>
</ul>

9.6  Miscellaneous

9.6.1  HACHA and style sheets

HACHA now produces an additional file: a style sheet, which is shared by all the html files produced by HACHA. Please refer to section 7.1 for details.

9.6.2  Producing an external style sheet

By default, style declarations defined with \newstyle go into the header of the html document doc.html. However, one can send those declaration into an external style file, whose name is doc.css. Then, HEVEA automatically relates doc.html to its style sheet doc.css. To achieve this behaviour, it suffices to set the value of the boolean register externalcss to true, by issuing the command \externalcsstrue in the preamble of the source document. Notice that HEVEA output still can be processed by HACHA, with correct behaviour.

9.6.3  Linking to external style sheets

The HEVEA command \loadcssfile{url} allows the user to link to an external style sheet (like the link option for HTML). The command takes an url of the external sheet as argument and emits the HTML text to link to the given external style sheet. As an example, the command

\loadcssfile{../abc.css}

produces the following html text in the head of the document.

  <link rel="stylesheet" type="text/css" href="../abc.css">

To yield some effect, \loadcssfile must appear in the document preamble. Several \loadcssfile commands can be issued. Then the given external style sheets appear in the output, following source order.

Notice that the argument to \loadcssfile is processed. Thus, if it contains special characters such as “#” or “$”, those must be specified as \# and \$ respectively. A viable alternative would be to quote the argument using the \url command from the url package (see Section B.17.11).

9.6.4  Limitations

At the moment, style class definitions cumulate, and appear in the style element in the order they are given in the document source. There is no way to cancel the default class definitions performed by HEVEA before it starts to process the user’s document. Additionally, external style sheets specified with \loadcssfile appear before style classes defined with \newstyle. As a consequence (if I am right), styles declared by \newstyle take precedence over those contained in external style sheets. Thus, using external style-sheets, especially if they alter the styling of elements, may produce awkward results.

Those limitations do not apply of course to style classes whose names are new, since there cannot be default definitions for them. Then, linking with external style sheets can prove useful to promote uniform styling of several documents produced by HEVEA.


Previous Up Next hevea-2.09-manual/manual011.png0000644004317100512160000002165412204704201016242 0ustar marangetcristalPNG  IHDR$T $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'&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2y`6$ήw zOj'Ea|6c'.v!W\:ٮo\<Ǎ=2/cc2_2W睇7%tEXtdate:create2013-08-20T17:17:21+02:00%tEXtdate:modify2013-08-20T17:17:21+02:00b tEXtSoftwareGPL Ghostscript 9.05]IENDB`hevea-2.09-manual/manual011.html0000644004317100512160000000173512204704202016421 0ustar marangetcristal A cut subsubsection Up Next

7.3.7  A cut subsubsection

A note in a subsubsection, flushed at subsubsections.1


1
At the end of my page.

Up Next hevea-2.09-manual/manual006.png0000644004317100512160000002165412204704201016246 0ustar marangetcristalPNG  IHDR$T $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'& 영ALi)OO7z? xo"DDX3+=e/1=<+]fRK|cלo,]z ){T8بlOrTzV $G&DPJGf/GnrAltL:5204gk!FgY߽zس {{t@wOm|:3<@t *K`  |d\ "U4& NNp\mp '@&+ <AX H Rt # YC AP4e@v*: :]nB#h >Ll¾Z8Ns|x7\' |+xa ʈ.FD!d3R#H+ҍ!!2|DaP4D9P|T*j3U:@P"4-A[y@t4: ].G7 { 0fgL&S9i\ b1X,Vz`ðl%v;#pF8G\0. +5.py8^oG7K n~ A`86Bp0JxK$UD/b,q+xx8FHI\R)ttL&kmtnr*MLO'!EZClH5OQp((9rʌ8^\C+&YZMPC"QXYKՠ:P##ԫqBSqi|vZm@IR%%%%%/H Cc$0J8RRZm# ۤ?0edet L[MBjFt'}mngG StYZ[6[Nb\հjJ*̪Jhʹ>l-Q ynjah;qNp^ M}ϡᙣccieg^k\\6\}\\i ܺaw}W'<}O=Yza<^xzz|4-}Oo ( n $ n ]fkYk\'.a݅aτCBC*6,b:*4r2*4j**z_tMLyL,7*Ms\m\GńD\bh$jR|Robrv`NJA0"uH*hL֦uӗ> ͌c֙ՙdKd'eoްkdcэ=ʹr6q6m6o٢%VǷo- 4 [w8h)+Y؟vUKaD"b~ yqwӒC{0{}e̲²wYn\^{p 〰­RrOBULp]u[|ͮjU-t8:z##G^47emjm,j|,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y  D]x%~uz:[H1FPgaP^Q݉bo GɣϚAl]evbX%-7<=BkRޜ|sgzZGS|5ej,dc 3'jBQ]HCqAGG1Op2dWsazh7JEY@j<;bHu8Mh~Q#E7sX$zjwlfG2GwLGQù04p rH%~E"J-LEZD4 pK*Zǖ>CKll' ;Gb7FX 8*c)O>:T ~'G6?(k@(VX$|?g=xR5);m[Mr&|M{V+2oQ ӴpwX#F'[~~E7)I`+ TGK3BŪ<<ѕЉ WrA8PKއ3+][)y"֬__7Y9"h5>]4"wPQF_#Tc2*왏'7ҨM8cF3\ސjwtwi+TeɠwܳQ^5Qh16F"_=sk.yUfCkݾh 5>քX蜾.s9YnB?C^%2y`6$ήw zOj'Ea|6c'.v!W\:ٮo\<Ǎ=2/cc2_2W睇7%tEXtdate:create2013-08-20T17:17:21+02:00%tEXtdate:modify2013-08-20T17:17:21+02:00b tEXtSoftwareGPL Ghostscript 9.05]IENDB`hevea-2.09-manual/manual.css0000644004317100512160000001275412204704202016026 0ustar marangetcristal.c000{background-color:green;height:3px} .c001{border-spacing:0;} .c002{border-spacing:6px;border-collapse:separate;} .c003{border:0;border-spacing:1;border-collapse:separate;} .c004{border:0;border-spacing:1px;border-collapse:separate} .c005{border:1px solid black;} .c006{color:#006600} .c007{color:#B7140B} .c008{color:fuchsia} .c009{color:maroon} .c010{color:purple} .c011{color:yellow} .c012{font-family:Helvetica} .c013{font-family:monospace} .c014{font-family:monospace;font-weight:bold} .c015{font-size:small} .c016{font-size:x-large} .c017{font-size:xx-large} .c018{font-style:italic} .c019{font-style:oblique} .c020{font-variant:small-caps} .c021{font-variant:small-caps;font-size:small} .c022{font-weight:bold} .c023{font-weight:bold;color:blue} .c024{font-weight:bold;color:red} .c025{height:4em; margin:0ex 2px;} .c026{height:4em; margin:0ex 4px;} .c027{text-align:center} .c028{text-align:center;border:solid 1px;white-space:nowrap} .c029{text-align:center;white-space:nowrap} .c030{text-align:left} .c031{text-align:left;border:solid 1px;white-space:nowrap} .c032{text-align:left;white-space:nowrap} .c033{text-align:right;white-space:nowrap} .c034{vertical-align:bottom} .c035{vertical-align:middle} .c036{vertical-align:middle;text-align:left;} .c037{vertical-align:top} .c038{vertical-align:top;text-align:center;border:solid 1px;white-space:nowrap} .c039{vertical-align:top;text-align:left;} .c040{vertical-align:top;text-align:left;border:solid 1px;} .c041{vertical-align:top;text-align:left;white-space:nowrap} .c042{whitespace:nowrap;text-align:center} .c043{whitespace:nowrap;text-align:left} .c044{width:10%;text-align:center} .c045{width:100%;} .c046{width:40%;text-align:center} .c047{width:5%;text-align:center} .c048{width:6px;} .c049{width:80%;height:2} .c050{width:90%;text-align:center} .li-itemize{margin:1ex 0ex;} .li-enumerate{margin:1ex 0ex;} .dd-description{margin:0ex 0ex 1ex 4ex;} .dt-description{margin:0ex;} .footnotetext{margin:0ex; padding:0ex;} div.footnotetext P{margin:0px; text-indent:1em;} .thefootnotes{text-align:left;margin:0ex;} .dt-thefootnotes{margin:0em;} .dd-thefootnotes{margin:0em 0em 0em 2em;} .caption{padding-left:2ex; padding-right:2ex; margin-left:auto; margin-right:auto} .title{margin:2ex auto;text-align:center} .titlemain{margin:1ex 2ex 2ex 1ex;} .titlerest{margin:0ex 2ex;} .center{text-align:center;margin-left:auto;margin-right:auto;} .flushleft{text-align:left;margin-left:0ex;margin-right:auto;} .flushright{text-align:right;margin-left:auto;margin-right:0ex;} div table{margin-left:inherit;margin-right:inherit;margin-bottom:2px;margin-top:2px} td table{margin:auto;} table{border-collapse:collapse;} td{padding:0;} .cellpadding0 tr td{padding:0;} .cellpadding1 tr td{padding:1px;} pre{text-align:left;margin-left:0ex;margin-right:auto;} blockquote{margin-left:4ex;margin-right:4ex;text-align:left;} td p{margin:0px;} .boxed{border:1px solid black} .textboxed{border:1px solid black} .vbar{border:none;width:2px;background-color:black;} .hbar{border:none;height:2px;width:100%;background-color:black;} .display{border-collapse:separate;border-spacing:2px;width:auto; border:none;} .dcell{white-space:nowrap;padding:0px; border:none;} .dcenter{margin:0ex auto;} .marginparleft{float:left; margin-left:0ex; margin-right:1ex;} .marginparright{float:right; margin-left:1ex; margin-right:0ex;} .part{margin:2ex auto;text-align:center} .clisting{font-family:monospace;white-space:pre; border-left:solid black;padding-left:2ex;margin-left:2ex;} .delimleft{border-collapse:separate;border-spacing:0px;margin:0px 4px 0px 0px;} .delimright{border-collapse:separate;border-spacing:0px;margin:0px 0px 0px 4px;} .bracell{padding:0ex;} .lstlisting{font-family:monospace;white-space:pre;margin-right:auto;margin-left:0pt;text-align:left} .mprow{border-collapse:separate;border-spacing:2ex;width:100%;margin:0ex;} .mprcell{padding:0px;width:auto;} .subsectionex{padding:1ex;color:navy;border:solid navy;} .verbatim{margin:1ex 1ex;padding:1ex;background:#CCFFCC;} .myverbatim{margin:1ex 3ex;padding:1ex; color:maroon; background:#FFAD7A} .toc1{list-style:none;border-left:1ex solid #4C0D00;padding:0ex 1ex;} .toc2{list-style:none;border-left:1ex solid #661300;padding:0ex 1ex;} .toc3{list-style:none;border-left:1ex solid #DB9370;padding:0ex 1ex;} .toc4{list-style:none;border-left:1ex solid #FF897F;padding:0ex 1ex;} .xtitle{text-align:center;margin:1ex auto;color:navy;border:solid navy;} .xtitlerest{font-variant:small-caps;} .ruled{border:solid black;padding:1ex;background:#eeddbb;color:maroon} .ruledbis{border:solid black;padding:1ex;background:#eeddbb;color:maroon;display:inline-block} body{background-color:white} a:link{color:#00B200;text-decoration:underline;} a:visited{color:#006600;text-decoration:underline;} a:hover{color:black;text-decoration:none;background-color:#99FF99} .title{background-color:#00B200} .titlemain{background-color:#00B200} .titlerest{ackground-color:#00B200} .part{padding:1ex;background-color:#00CC00} .section{padding:.5ex;background-color:#2DE52D} .subsection{padding:0.3ex;background-color:#66FF66} .subsubsection{padding:0.5ex;background-color:#99FF99} .paragraph{padding:0.5ex;background-color:#CCFFCC} .fmarginpar{border:solid thin #66FF66; width:20%; text-align:left} .ffootnoterule{border:none;margin:1em auto 1em 0px;width:50%;background-color:#00CC00} .ftoc1{list-style:none;margin:0ex 1ex;padding:0ex 1ex;border-left:1ex solid #00CC00} .ftoc2{list-style:none;margin:1ex 1ex;padding:0ex 1ex;border-left:1ex solid #2DE52D} .ftoc3{list-style:none;margin:0ex 1ex;padding:0ex 1ex;border-left:1ex solid #66FF66} hevea-2.09-manual/manual006.html0000644004317100512160000003545712204704202016435 0ustar marangetcristal How to detect and correct errors Previous Up Next

4  How to detect and correct errors

Most of the problems that occur during the translation of a given LATEX file (say trouble.tex) can be detected and solved at the macro-level. That is, most problems induce a macro-related warning and can be solved by writing a few macros. The best place for these macros is an user style file (say trouble.hva) given as argument to HEVEA.

# hevea trouble.hva trouble.tex

By doing so, the macros written specially for HEVEA are not seen by LATEX. Even better, trouble.tex is not changed at all.

A worth-mentiong alternative is inserting \usepackage{trouble} in the document preamble. Then, given HEVEA semantics for \usepackage (see Section B.5.2), HEVEA-specific commands should be placed in the file “trouble.hva” file, while LATEX-specific commands should be placed in teh file “trouble.sty”.

Of course, adapting a document to HEVEA processing will be easier if the LATEX source is written in a generic style, using macros. Note that this style is recommended anyway, since it facilitates document maintenance.

4.1  HEVEA does not know a macro

Consider the following LATEX source excerpt:

You can \raisebox{.6ex}{\em raise} text.

LATEX typesets this as follows:

Since HEVEA does not know about \raisebox, it incorrectly processes this input. More precisely, it first prints a warning message:

trouble.tex:34: Unknown macro: \raisebox

Then, it goes on by translating the arguments of \raisebox as if they were normal text. As a consequence some .6ex is finally found in the html output:

You can .6exraise text.

To correct this, you should provide a macro that has more or less the effect of \raisebox. It is impossible to write a generic \raisebox macro for HEVEA, because of html limitations. However, in this case, the effect of \raisebox is to raise the box a little. Thus, the first, numerical, argument to \raisebox can be ignored in a private \raisebox macro defined in trouble.hva:

\newcommand{\raisebox}[2]{$^{\mbox{#2}}$}

Now, translating the document yields:

You can raise text a little.

Of course, this will work only when all \raisebox commands in the document raise text a little. Consider, the following example, where text is both raised a lowered a little:

You can \raisebox{.6ex}{\em raise}
or \raisebox{-.6ex}{\em lower} text.

Which LATEX renders as follows:

Whereas, with the above definition of \raisebox, HEVEA produces:

You can raise or lower text.

A solution is to add a new macro definition in the trouble.hva file:

\newcommand{\lowerbox}[2]{$_{\mbox{#2}}$}

Then, trouble.tex itself has to be modified a little.

You can \raisebox{.6ex}{\em raise}
or \lowerbox{-.6ex}{\em lower} text.

HEVEA now produces a satisfying output:

You can raise or lower text.

Note that, for the document to remain LATEX-processable, it should also contain the following definition for \lowerbox:

\newcommand{\lowerbox}[2]{\raisebox{#1}{#2}}

This definition can safely be placed anywhere in trouble.tex, since by HEVEA semantics for \newcommand (see section B.8.1) the new definition will not overwrite the old one.

4.2  HEVEA incorrectly interprets a macro

Sometimes HEVEA knows about a macro, but the produced html does not look good when seen through a browser. This kind of errors is detected while visually checking the output. However, HEVEA does its best to issue warnings when such situations are likely to occur.

Consider, for instance, this definition of \blob as a small black square.

\newcommand{\blob}{\rule[.2ex]{1ex}{1ex}}
\blob\ Blob \blob

Which LATEX typesets as follows:

HEVEA always translates \rule as <hr>, ignoring size arguments. Hence, it produces the following, wrong, output:


Blob

We may not be particularily commited to a square blob. In that case, other small symbols would perfectly do the job of \blob, such as a bullet (\bullet). Thus, you may choose to give \blob a definition in trouble.hva:

\newcommand{\blob}{\bullet}

This new definition yields the following, more satisfying output:

• Blob •

In case we do want a square blob, there are two alternatives. We can have LATEX typeset some subparts of the document and then to include them as images, section 6 explains how to proceed. We can also find a square blob somewhere in the variety of Unicode (or do I mean ISO 10646?) characters, and define \blob as a numerical character reference. Here, the character U+02588 seems ok.

\newcommand{\blob}{\@print@u{X2588}}
█ Blob █

However, beware that not all browsers display all of Unicode…

4.3  HEVEA crashes

HEVEA failure may have many causes, including a bug. However, it may also stem from a wrong LATEX input. Thus, this section is to be read before reporting a bug…

4.3.1  Simple cases: LATEX also crashes

In the following source, environments are not properly balanced:

\begin{flushright}
\begin{quote}
This is right-flushed quoted text.
\end{flushright}
\end{quote}

Such a source will make both LATEX and HEVEA choke. HEVEA issues the following error message that shows the LATEX environment that is not closed properly:

./trouble.tex:6: Environment nesting error: html: 'DIV' closes 'BLOCKQUOTE'
./trouble.tex:4: Latex environment 'quote' is pending
Adios

Thus, when HEVEA crashes, it is a good idea to check that the input is correct by running LATEX on it.

4.3.2  Complicated cases

Unfortunately, HEVEA may crash on input that does not affect LATEX. Such errors usually relate to environment or group nesting.

Consider for instance the following “optimized” version of a quoteright environment:

\newenvironment{quoteright}{\quote\flushright}{\endquote}

\begin{quoteright}
This a right-flushed quotation
\end{quoteright}

The \quote and \flushright constructs are intended to replace \begin{quote} and \begin{flushright}, while \endquote stands for \end{quote}. Note that the closing \endflushright is omitted, since it does nothing. LATEX accepts such an input and produces a right-flushed quotation.

However, HEVEA usually translates LATEX environments to html block-level elements and it requires those elements to be nested properly. Here, \quote translates to <blockquote>, \flushright translates to <div class="flushright"> and \endquote translates to </blockquote>. At that point, HEVEA refuses to generate obviously non-correct html and it crashes:

Giving up command: \@close
Giving up command: \endquote
Giving up command: \endquoteright
Giving up command: \end
./trouble.tex:7: Environment nesting error: html: 'BLOCKQUOTE' closes 'DIV'
./trouble.tex:5: Latex environment 'quoteright' is pending
Adios

Also notice that the error message above includes a backtrace showing the call-chain of commands.

In this case, the solution is easy: environments must be opened and closed consistently. LATEX style being recommended, one should write:

\newenvironment{quoteright}
  {\begin{quote}\begin{flushright}}
  {\end{flushright}\end{quote}}

And we get:

This is a right-flushed quotation

Unclosed LATEX groups ({…) are another source of nuisance to HEVEA. Consider the following horreur.tex file:

\documentclass{article}

\begin{document}
In this sentence, a group is opened now {\em and never closed.
\end{document}

LATEX accepts this file, although it produces a warning:

# latex horreur.tex 
This is TeX, Version 3.14159 (Web2C 7.2)
  ...
(\end occurred inside a group at level 1)
Output written on horreur.dvi (1 page, 280 bytes).

By contrast, running HEVEA on horreur.tex yields a fatal error:

# hevea horreur.tex 
Giving up command: \@raise@enddocument
Giving up command: \enddocument
Giving up command: \end
./horreur.tex:4: Environment nesting error: Latex env error: 'document' closes ''
./horreur.tex:3: Latex environment '' is pending
Adios

Thus, users should close opening braces where it belongs. Note that HEVEA error message “Latex environment ’env’ is pending” helps a lot in locating the brace that hurts.

4.3.3  Desperate cases

If HEVEA crashes on LATEX source (not on TEX source), then you may have discovered a bug, or this manual is not as complete as it should. In any case, please report to Luc.Maranget@inria.fr.

To be useful, your bug report should include LATEX code that triggers the bug (the shorter, the better) and mention HEVEA version number.


Previous Up Next hevea-2.09-manual/manual025.html0000644004317100512160000001121312204704202016416 0ustar marangetcristal Sentences and Paragraphs Previous Up Next

B.3  Sentences and Paragraphs

B.3.1  Spacing

Generally speaking, spaces (and single newline characters) in the source are echoed in the output. Browser then manage with spaces and line-breaks. Following LATEX behaviour, spaces after commands are not echoed. Spaces after invisible commands with arguments are not echoed either.

However this is no longer true in math mode, see section B.7.7 on spaces in math mode.

B.3.2  Paragraphs

New paragraphs are introduced by one blank line or more. Paragraphs are not indented. Thus the macros \indent and \noindent perform no action. Paragraph are rendered by p elements. In some occasions, this technique may produce spurious paragraphs (see 3.1.1).

B.3.3  Footnotes

The commands \footnote, \footnotetext and \footnotemark (with or without optional arguments) are supported. The footnote counter exists and (re)setting it or redefining \thefootnote should work properly. When footnotes are issued by a combination of \footnotemark and \footnotetext, a \footnotemark command must be issued first, otherwise some footnotes may get numbered incorrectly or disappear. Footnotes appear at document end in the article style and at chapters end in the book style. See section 7.3.6 for a description of how footnotes are flushed.

B.3.4  Accents and special symbols

Thanks to Unicode character references, HEVEA can virtually output any symbol. It may happen that HEVEA does not known about a particular symbol, that is, most of the time, HEVEA does not known about a particular command. In that case a warning is issued to draw user attention. Users can then choose a particular symbol amongst the recognized ones, or as an explicit Unicode character reference (see Section 4.2 for an example of this technique).

Commands for making accents used in non-English languages, such as \', work when applied to accent-less (i.e. ascii) letters and that the corresponding accented letters exist in the Unicode character set. Otherwise, the argument to the command is not modified and a warning is issued. For instance, consider the following source code, where, after a legitimate use of acute accents, one attempt to put an accute accent over the letter “h”:

``\'Ecole'' works as in \LaTeX, while ``\'h'' does not.

HEVEA output will be “École” works as in LATEX, while “h” does not. And a warning will be issued.

./tmp.tex:3741: Warning: Application of '\'' on 'h' failed

Observe that using input encodings is a convenient alternative to accent commands — see Section B.17.4.


Previous Up Next hevea-2.09-manual/manual.htoc0000644004317100512160000004417512204704176016207 0ustar marangetcristal\begin{tocenv} \tocitem \@locref{sec2}{\begin{@norefs}\@print{Part A}\quad{}Tutorial{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{getstarted}{\begin{@norefs}\@print{1}\quad{}How to get\label{getstarted} started{}\end{@norefs}} \tocitem \@locref{sec4}{\begin{@norefs}\@print{2}\quad{}Style files{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec5}{\begin{@norefs}\@print{2.1}\quad{}Standard base styles{}\end{@norefs}} \tocitem \@locref{sec6}{\begin{@norefs}\@print{2.2}\quad{}Other base styles{}\end{@norefs}} \tocitem \@locref{sec7}{\begin{@norefs}\@print{2.3}\quad{}Other style files{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec10}{\begin{@norefs}\@print{3}\quad{}A note on style{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec11}{\begin{@norefs}\@print{3.1}\quad{}Spacing, Paragraphs{}\end{@norefs}} \tocitem \@locref{sec14}{\begin{@norefs}\@print{3.2}\quad{}Math mode{}\end{@norefs}} \tocitem \@locref{sec19}{\begin{@norefs}\@print{3.3}\quad{}Warnings{}\end{@norefs}} \tocitem \@locref{sec20}{\begin{@norefs}\@print{3.4}\quad{}Commands{}\end{@norefs}} \tocitem \@locref{sec21}{\begin{@norefs}\@print{3.5}\quad{}Style choices{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec22}{\begin{@norefs}\@print{4}\quad{}How to detect and correct errors{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec23}{\begin{@norefs}\@print{4.1}\quad{}\hevea{} does not know a macro{}\end{@norefs}} \tocitem \@locref{sec24}{\begin{@norefs}\@print{4.2}\quad{}\hevea{} incorrectly interprets a macro{}\end{@norefs}} \tocitem \@locref{sec25}{\begin{@norefs}\@print{4.3}\quad{}\hevea{} crashes{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec29}{\begin{@norefs}\@print{5}\quad{}Making \hevea{} and \LaTeX{} both happy{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec30}{\begin{@norefs}\@print{5.1}\quad{}File loading{}\end{@norefs}} \tocitem \@locref{heveastyle}{\begin{@norefs}\@print{5.2}\quad{}The \label{heveastyle}\protect\texttt{hevea} package{}\end{@norefs}} \tocitem \@locref{sec35}{\begin{@norefs}\@print{5.3}\quad{}Comments{}\end{@norefs}} \end{tocenv} \tocitem \@locref{imagen}{\begin{@norefs}\@print{6}\quad{}With\label{imagen} a little help from \LaTeX{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{image:file}{\begin{@norefs}\@print{6.1}\quad{}The \textit{image}\label{image:file} file{}\end{@norefs}} \tocitem \@locref{sec38}{\begin{@norefs}\@print{6.2}\quad{}A toy example{}\end{@norefs}} \tocitem \@locref{sec39}{\begin{@norefs}\@print{6.3}\quad{}Including Postscript images{}\end{@norefs}} \tocitem \@locref{sec40}{\begin{@norefs}\@print{6.4}\quad{}Using filters{}\end{@norefs}} \end{tocenv} \tocitem \@locref{hacha}{\begin{@norefs}\@print{7}\quad{}Cutting\label{hacha} your document into pieces with \hacha{}{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec42}{\begin{@norefs}\@print{7.1}\quad{}Simple usage{}\end{@norefs}} \tocitem \@locref{sec43}{\begin{@norefs}\@print{7.2}\quad{}Advanced usage{}\end{@norefs}} \tocitem \@locref{sec49}{\begin{@norefs}\@print{7.3}\quad{}More Advanced Usage{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec64}{\begin{@norefs}\@print{8}\quad{}Generating \html{} constructs{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec65}{\begin{@norefs}\@print{8.1}\quad{}High-Level Commands{}\end{@norefs}} \tocitem \@locref{imgsrc}{\begin{@norefs}\@print{8.2}\quad{}More on included\label{imgsrc} images{}\end{@norefs}} \tocitem \@locref{internal}{\begin{@norefs}\@print{8.3}\quad{}Internal \label{internal}macros{}\end{@norefs}} \tocitem \@locref{rawhtml}{\begin{@norefs}\@print{8.4}\quad{}The \texttt{rawhtml}\label{rawhtml} environment{}\end{@norefs}} \tocitem \@locref{sec72}{\begin{@norefs}\@print{8.5}\quad{}Examples{}\end{@norefs}} \tocitem \@locref{encodings}{\begin{@norefs}\@print{8.6}\quad{}The \label{encodings}document charset{}\end{@norefs}} \end{tocenv} \tocitem \@locref{style:sheets}{\begin{@norefs}\@print{9}\quad{}Support\label{style:sheets}\index{style-sheets} for style sheets{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec75}{\begin{@norefs}\@print{9.1}\quad{}Overview{}\end{@norefs}} \tocitem \@locref{css:change:all}{\begin{@norefs}\@print{9.2}\quad{}Changing \label{css:change:all} the style of all instances of an environment{}\end{@norefs}} \tocitem \@locref{css:change}{\begin{@norefs}\@print{9.3}\quad{}Changing \label{css:change}the style of some instances of an environment{}\end{@norefs}} \tocitem \@locref{whatclass}{\begin{@norefs}\@print{9.4}\quad{}Which class affects\label{whatclass} what{}\end{@norefs}} \tocitem \@locref{sec79}{\begin{@norefs}\@print{9.5}\quad{}A few examples{}\end{@norefs}} \tocitem \@locref{sec83}{\begin{@norefs}\@print{9.6}\quad{}Miscellaneous{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec88}{\begin{@norefs}\@print{10}\quad{}Customising \hevea{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec89}{\begin{@norefs}\@print{10.1}\quad{}Simple changes{}\end{@norefs}} \tocitem \@locref{sec90}{\begin{@norefs}\@print{10.2}\quad{}Changing defaults for type-styles{}\end{@norefs}} \tocitem \@locref{sec91}{\begin{@norefs}\@print{10.3}\quad{}Changing the interface of a command{}\end{@norefs}} \tocitem \@locref{sec92}{\begin{@norefs}\@print{10.4}\quad{}Checking the optional argument within a command{}\end{@norefs}} \tocitem \@locref{sec93}{\begin{@norefs}\@print{10.5}\quad{}Changing the format of images{}\end{@norefs}} \tocitem \@locref{sec94}{\begin{@norefs}\@print{10.6}\quad{}Storing images in a separate directory{}\end{@norefs}} \tocitem \@locref{imagen-source}{\begin{@norefs}\@print{10.7}\quad{}Controlling\label{imagen-source} \texttt{imagen} from document source{}\end{@norefs}} \end{tocenv} \tocitem \@locref{alternative}{\begin{@norefs}\@print{11}\quad{}Other \label{alternative}output formats{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec97}{\begin{@norefs}\@print{11.1}\quad{}Text{}\end{@norefs}} \tocitem \@locref{sec98}{\begin{@norefs}\@print{11.2}\quad{}Info{}\end{@norefs}} \end{tocenv} \end{tocenv} \tocitem \@locref{sec99}{\begin{@norefs}\@print{Part B}\quad{}Reference manual{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec100}{\begin{@norefs}\@print{B.1}\quad{}Commands and Environments{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec101}{\begin{@norefs}\@print{B.1.1}\quad{}Command Names and Arguments{}\end{@norefs}} \tocitem \@locref{sec102}{\begin{@norefs}\@print{B.1.2}\quad{}Environments{}\end{@norefs}} \tocitem \@locref{sec103}{\begin{@norefs}\@print{B.1.3}\quad{}Fragile Commands{}\end{@norefs}} \tocitem \@locref{sec104}{\begin{@norefs}\@print{B.1.4}\quad{}Declarations{}\end{@norefs}} \tocitem \@locref{sec105}{\begin{@norefs}\@print{B.1.5}\quad{}Invisible Commands{}\end{@norefs}} \tocitem \@locref{sec106}{\begin{@norefs}\@print{B.1.6}\quad{}The \texttt{\char92\char92} Command{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec107}{\begin{@norefs}\@print{B.2}\quad{}The Structure of the Document{}\end{@norefs}} \tocitem \@locref{sec108}{\begin{@norefs}\@print{B.3}\quad{}Sentences and Paragraphs{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec109}{\begin{@norefs}\@print{B.3.1}\quad{}Spacing{}\end{@norefs}} \tocitem \@locref{sec110}{\begin{@norefs}\@print{B.3.2}\quad{}Paragraphs{}\end{@norefs}} \tocitem \@locref{sec111}{\begin{@norefs}\@print{B.3.3}\quad{}Footnotes{}\end{@norefs}} \tocitem \@locref{accents}{\begin{@norefs}\@print{B.3.4}\quad{}Accents\label{accents} and special symbols{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec113}{\begin{@norefs}\@print{B.4}\quad{}Sectioning{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{section:section}{\begin{@norefs}\@print{B.4.1}\quad{}\label{section:section}Sectioning Commands{}\end{@norefs}} \tocitem \@locref{appendix}{\begin{@norefs}\@print{B.4.2}\quad{}The \label{appendix}Appendix{}\end{@norefs}} \tocitem \@locref{sec116}{\begin{@norefs}\@print{B.4.3}\quad{}Table of Contents{}\end{@norefs}} \tocitem \ahrefloc{no:number}{Use \hacha{}} \end{tocenv} \tocitem \@locref{sec118}{\begin{@norefs}\@print{B.5}\quad{}Classes, Packages and Page Styles{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec119}{\begin{@norefs}\@print{B.5.1}\quad{}Document Class{}\end{@norefs}} \tocitem \@locref{sec120}{\begin{@norefs}\@print{B.5.2}\quad{}Packages and Page Styles{}\end{@norefs}} \tocitem \@locref{sec121}{\begin{@norefs}\@print{B.5.3}\quad{}The Title Page and Abstract{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec122}{\begin{@norefs}\@print{B.6}\quad{}Displayed Paragraphs{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec123}{\begin{@norefs}\@print{B.6.1}\quad{}Quotation and Verse{}\end{@norefs}} \tocitem \@locref{sec124}{\begin{@norefs}\@print{B.6.2}\quad{}List-Making environments{}\end{@norefs}} \tocitem \@locref{sec125}{\begin{@norefs}\@print{B.6.3}\quad{}The \protect\texttt{list} and \protect\texttt{trivlist} environments{}\end{@norefs}} \tocitem \@locref{sec126}{\begin{@norefs}\@print{B.6.4}\quad{}Verbatim{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec127}{\begin{@norefs}\@print{B.7}\quad{}Mathematical Formulae{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec128}{\begin{@norefs}\@print{B.7.1}\quad{}Math Mode Environment{}\end{@norefs}} \tocitem \@locref{sec129}{\begin{@norefs}\@print{B.7.2}\quad{}Common Structures{}\end{@norefs}} \tocitem \@locref{sec130}{\begin{@norefs}\@print{B.7.3}\quad{}Square Root{}\end{@norefs}} \tocitem \@locref{sec131}{\begin{@norefs}\@print{B.7.4}\quad{}Unicode and mathematical symbols{}\end{@norefs}} \tocitem \@locref{sec132}{\begin{@norefs}\@print{B.7.5}\quad{}Putting one thing above/below/inside{}\end{@norefs}} \tocitem \@locref{sec133}{\begin{@norefs}\@print{B.7.6}\quad{}Math accents{}\end{@norefs}} \tocitem \@locref{sec134}{\begin{@norefs}\@print{B.7.7}\quad{}Spacing{}\end{@norefs}} \tocitem \@locref{sec135}{\begin{@norefs}\@print{B.7.8}\quad{}Changing Style{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec136}{\begin{@norefs}\@print{B.8}\quad{}Definitions, Numbering{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec137}{\begin{@norefs}\@print{B.8.1}\quad{}Defining Commands{}\end{@norefs}} \tocitem \@locref{sec138}{\begin{@norefs}\@print{B.8.2}\quad{}Defining Environments{}\end{@norefs}} \tocitem \@locref{sec139}{\begin{@norefs}\@print{B.8.3}\quad{}Theorem-like Environments{}\end{@norefs}} \tocitem \@locref{sec140}{\begin{@norefs}\@print{B.8.4}\quad{}Numbering{}\end{@norefs}} \tocitem \@locref{sec141}{\begin{@norefs}\@print{B.8.5}\quad{}The \texttt{ifthen} Package{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec142}{\begin{@norefs}\@print{B.9}\quad{}Figures and Other Floating Bodies{}\end{@norefs}} \tocitem \@locref{sec143}{\begin{@norefs}\@print{B.10}\quad{}Lining It Up in Columns{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec144}{\begin{@norefs}\@print{B.10.1}\quad{}The \protect\texttt{tabbing} Environment{}\end{@norefs}} \tocitem \@locref{sec145}{\begin{@norefs}\@print{B.10.2}\quad{}The \texttt{array} and \texttt{tabular} environments{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec146}{\begin{@norefs}\@print{B.11}\quad{}Moving Information Around{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{files}{\begin{@norefs}\@print{B.11.1}\quad{}\label{files}Files{}\end{@norefs}} \tocitem \@locref{cross-reference}{\begin{@norefs}\@print{B.11.2}\quad{}Cross-References\label{cross-reference}\label{cross}{}\end{@norefs}} \tocitem \@locref{sec149}{\begin{@norefs}\@print{B.11.3}\quad{}Bibliography and Citations{}\end{@norefs}} \tocitem \@locref{sec151}{\begin{@norefs}\@print{B.11.4}\quad{}Splitting the Input{}\end{@norefs}} \tocitem \@locref{sec152}{\begin{@norefs}\@print{B.11.5}\quad{}Index and Glossary{}\end{@norefs}} \tocitem \@locref{sec153}{\begin{@norefs}\@print{B.11.6}\quad{}Terminal Input and Output{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec154}{\begin{@norefs}\@print{B.12}\quad{}Line and Page Breaking{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec155}{\begin{@norefs}\@print{B.12.1}\quad{}Line Breaking{}\end{@norefs}} \tocitem \@locref{sec156}{\begin{@norefs}\@print{B.12.2}\quad{}Page Breaking{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec157}{\begin{@norefs}\@print{B.13}\quad{}Lengths, Spaces and Boxes{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec158}{\begin{@norefs}\@print{B.13.1}\quad{}Length{}\end{@norefs}} \tocitem \@locref{sec159}{\begin{@norefs}\@print{B.13.2}\quad{}Space{}\end{@norefs}} \tocitem \@locref{sec160}{\begin{@norefs}\@print{B.13.3}\quad{}Boxes{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec161}{\begin{@norefs}\@print{B.14}\quad{}Pictures and Colours{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec162}{\begin{@norefs}\@print{B.14.1}\quad{}The \texttt{picture} environment and the \texttt{graphics} Package{}\end{@norefs}} \tocitem \@locref{sec163}{\begin{@norefs}\@print{B.14.2}\quad{}The \texttt{color} Package{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec166}{\begin{@norefs}\@print{B.15}\quad{}Font Selection{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec167}{\begin{@norefs}\@print{B.15.1}\quad{}Changing the Type Style{}\end{@norefs}} \tocitem \@locref{sec168}{\begin{@norefs}\@print{B.15.2}\quad{}Changing the Type Size{}\end{@norefs}} \tocitem \@locref{sec169}{\begin{@norefs}\@print{B.15.3}\quad{}Special Symbols{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec170}{\begin{@norefs}\@print{B.16}\quad{}Extra Features{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec171}{\begin{@norefs}\@print{B.16.1}\quad{}\TeX{} macros{}\end{@norefs}} \tocitem \@locref{sec177}{\begin{@norefs}\@print{B.16.2}\quad{}Command Definition inside Command Definition{}\end{@norefs}} \tocitem \@locref{sec178}{\begin{@norefs}\@print{B.16.3}\quad{}Date and time{}\end{@norefs}} \tocitem \@locref{fancysection}{\begin{@norefs}\@print{B.16.4}\quad{}Fancy \label{fancysection}sectioning commands{}\end{@norefs}} \tocitem \@locref{winfonts}{\begin{@norefs}\@print{B.16.5}\quad{}Targeting \label{winfonts}Windows{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec181}{\begin{@norefs}\@print{B.17}\quad{}Implemented Packages{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec182}{\begin{@norefs}\@print{B.17.1}\quad{}AMS compatibility{}\end{@norefs}} \tocitem \@locref{sec183}{\begin{@norefs}\@print{B.17.2}\quad{}The \texttt{array} and \texttt{tabularx} packages{}\end{@norefs}} \tocitem \@locref{calc}{\begin{@norefs}\@print{B.17.3}\quad{}The \texttt{calc}\label{calc} package{}\end{@norefs}} \tocitem \@locref{inputenc}{\begin{@norefs}\@print{B.17.4}\quad{}Specifying \label{inputenc}the document input encoding, the \texttt{inputenc} package{}\end{@norefs}} \tocitem \@locref{sec186}{\begin{@norefs}\@print{B.17.5}\quad{}More symbols{}\end{@norefs}} \tocitem \@locref{commentpack}{\begin{@norefs}\@print{B.17.6}\quad{}The \texttt{comment}\label{commentpack} package{}\end{@norefs}} \tocitem \@locref{multind}{\begin{@norefs}\@print{B.17.7}\quad{}Multiple Indexes with the \texttt{index} and \texttt{multind}\label{multind} packages{}\end{@norefs}} \tocitem \@locref{sec189}{\begin{@norefs}\@print{B.17.8}\quad{}``Natural'' bibliographies, the \texttt{natbib} package {}\end{@norefs}} \tocitem \@locref{sec190}{\begin{@norefs}\@print{B.17.9}\quad{}Multiple bibliographies{}\end{@norefs}} \tocitem \@locref{sec193}{\begin{@norefs}\@print{B.17.10}\quad{}Support for \texttt{babel}{}\end{@norefs}} \tocitem \@locref{urlpackage}{\begin{@norefs}\@print{B.17.11}\quad{}The \label{urlpackage}\texttt{url} package{}\end{@norefs}} \tocitem \@locref{sec198}{\begin{@norefs}\@print{B.17.12}\quad{}Verbatim text: the \texttt{moreverb} and \texttt{verbatim} packages{}\end{@norefs}} \tocitem \@locref{listings:package}{\begin{@norefs}\@print{B.17.13}\quad{}Typesetting \label{listings:package}computer languages: the \texttt{listings} package{}\end{@norefs}} \tocitem \@locref{sec200}{\begin{@norefs}\@print{B.17.14}\quad{}(Non-)Multi page tabular material{}\end{@norefs}} \tocitem \@locref{mathpartir:package}{\begin{@norefs}\@print{B.17.15}\quad{}Typesetting inference rules: the \label{mathpartir:package} \aname{mathpartir}{\texttt{mathpartir}} package{}\end{@norefs}} \tocitem \@locref{sec206}{\begin{@norefs}\@print{B.17.16}\quad{}The \texttt{ifpdf} package{}\end{@norefs}} \tocitem \@locref{sec207}{\begin{@norefs}\@print{B.17.17}\quad{}Typesetting Thai{}\end{@norefs}} \tocitem \@locref{sec208}{\begin{@norefs}\@print{B.17.18}\quad{}Hanging paragraphs{}\end{@norefs}} \tocitem \@locref{sec209}{\begin{@norefs}\@print{B.17.19}\quad{}The \texttt{cleveref} package{}\end{@norefs}} \tocitem \@locref{sec210}{\begin{@norefs}\@print{B.17.20}\quad{}Other packages{}\end{@norefs}} \end{tocenv} \end{tocenv} \tocitem \@locref{practical}{\begin{@norefs}\@print{Part C}\quad{}Practical \label{practical}information{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec212}{\begin{@norefs}\@print{C.1}\quad{}Usage{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec213}{\begin{@norefs}\@print{C.1.1}\quad{}\hevea{} usage{}\end{@norefs}} \tocitem \@locref{sec218}{\begin{@norefs}\@print{C.1.2}\quad{}\hacha{} usage{}\end{@norefs}} \tocitem \@locref{sec219}{\begin{@norefs}\@print{C.1.3}\quad{}\texttt{esponja} usage{}\end{@norefs}} \tocitem \@locref{bibhva}{\begin{@norefs}\@print{C.1.4}\quad{}\texttt{bibhva}\label{bibhva} usage{}\end{@norefs}} \tocitem \@locref{sec223}{\begin{@norefs}\@print{C.1.5}\quad{}\texttt{imagen} usage{}\end{@norefs}} \tocitem \@locref{sec224}{\begin{@norefs}\@print{C.1.6}\quad{}Invoking \texttt{hevea}, \texttt{hacha} and \texttt{imagen}{}\end{@norefs}} \tocitem \@locref{makefile}{\begin{@norefs}\@print{C.1.7}\quad{}Using \label{makefile}\texttt{make}{}\end{@norefs}} \end{tocenv} \tocitem \@locref{browser}{\begin{@norefs}\@print{C.2}\quad{}Browser \label{browser}configuration{}\end{@norefs}} \tocitem \@locref{sec227}{\begin{@norefs}\@print{C.3}\quad{}Availability{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec228}{\begin{@norefs}\@print{C.3.1}\quad{}Internet stuff{}\end{@norefs}} \tocitem \@locref{sec229}{\begin{@norefs}\@print{C.3.2}\quad{}Law{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec230}{\begin{@norefs}\@print{C.4}\quad{}Installation{}\end{@norefs}} \begin{tocenv} \tocitem \@locref{sec231}{\begin{@norefs}\@print{C.4.1}\quad{}Requirements{}\end{@norefs}} \tocitem \@locref{sec232}{\begin{@norefs}\@print{C.4.2}\quad{}Principles{}\end{@norefs}} \end{tocenv} \tocitem \@locref{sec233}{\begin{@norefs}\@print{C.5}\quad{}Other \LaTeX{} to \html{} translators{}\end{@norefs}} \tocitem \@locref{sec234}{\begin{@norefs}\@print{C.6}\quad{}Acknowledgements{}\end{@norefs}} \tocitem \ahrefloc{@biblio}{\refname} \tocitem \ahrefloc{@index}{Index} \end{tocenv} \end{tocenv} hevea-2.09-manual/browser.html0000644004317100512160000000347412204704202016407 0ustar marangetcristal Browser configuration Previous Up Next

C.2  Browser configuration

By default, HEVEA does not anymore use the FACE=symbol attribute to the <FONT ...> tag. As a consequence, browser configuration is no longer needed.

HEVEA now extensively outputs Unicode entities. This first means that HEVEA targets modern browsers with decent unicode support, and only those.

In case your browser is recent and that you nevertheless experience display problems on HEVEA-generated pages, see the excellent Alan Wood’s Unicode Resources. It may help to understand display problems and even to solve them by configuring browsers or installing some fonts.


Previous Up Next hevea-2.09-manual/index.html0000644004317100512160000000774212204704202016035 0ustar marangetcristal HEVEA User Documentation Version 2.09

HEVEA User Documentation
Version 2.09

Luc Maranget*

August 20, 2013


This manual also exists in compressed Postscript, PDF, and as a bundle of HTML files.


Abstract: HEVEA is a LATEX to html translator. The input language is a fairly complete subset of LATEX 2є (old LATEX style is also accepted) and the output language is html that is (hopefully) correct with respect to version 5 [HTML-5a, HTML-5b]

HEVEA understands LATEX macro definitions. Simple user style files are understood with little or no modifications. Furthermore, HEVEA customisation is done by writing LATEX code.

HEVEA is written in Objective Caml, as many lexers. It is quite fast and flexible. Using HEVEA it is possible to translate large documents such as manuals, books, etc. very quickly. All documents are translated as one single html file. Then, the output file can be cut into smaller files, using the companion program HACHA.

HEVEA can also be instructed to output plain text or info files.

Information on HEVEA is available at http://hevea.inria.fr/.

This document consists in three parts, a tutorial introduction, a reference manual and some practical information. The latter part includes a small index.


*
Inria Rocquencourt – BP 105, 78153 Le Chesnay Cedex. Luc.Maranget@inria.fr

This document was translated from LATEX by HEVEA.
hevea-2.09-manual/thaihevea001.png0000644004317100512160000062543512204704204016734 0ustar marangetcristalPNG  IHDRv@I# $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'& 영ALi)OO7z? xo"DDX3+=e/1=<+]fRK|cלo,]z ){T8بlOrTzV $G&DPJGf/GnrAltL:5204gk!FgY߽zس {{t@wOm|:3<@t *K`  |d\ "U4& NNp\mp '@&+ <AX H Rt # YC AP4e@v*: :]nB#h >Ll¾Z8Ns|x7\' |+xa ʈ.FD!d3R#H+ҍ!!2|DaP4D9P|T*j3U:@P"4-A[y@t4: ].G7 { 0fgL&S9i\ b1X,Vz`ðl%v;#pF8G\0. +5.py8^oG7K n~ A`86Bp0JxK$UD/b,q+xx8FHI\R)ttL&kmtnr*MLO'!EZClH5OQp((9rʌ8^\C+&YZMPC"QXYKՠ:P##ԫqBSqi|vZm@IR%%%%%/H Cc$0J8RRZm# ۤ?0edet L[MBjFt'}mngG StYZ[6[Nb\հjJ*̪Jhʹ>l-Q ynjah;qNp^ M}ϡᙣccieg^k\\6\}\\i ܺaw}W'<}O=Yza<^xzz|4-}Oo ( n $ n ]fkYk\'.a݅aτCBC*6,b:*4r2*4j**z_tMLyL,7*Ms\m\GńD\bh$jR|Robrv`NJA0"uH*hL֦uӗ> ͌c֙ՙdKd'eoްkdcэ=ʹr6q6m6o٢%VǷo- 4 [w8h)+Y؟vUKaD"b~ yqwӒC{0{}e̲²wYn\^{p 〰­RrOBULp]u[|ͮjU-t8:z##G^47emjm,j|,&f%eDȉ'Ovֵ1ڊNS^˃Ӯ{ΰϴU?[Nk/:6t:c:]A]\t[v/H^(HqRΥ)gD_Yj^\ݸxj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f1<` {̭[3fJAw3fB<, (]M<8QlDcO0HIn1?~.;@4@yb9Ky8~i?xBh>~<`P4+gI[ף>}#R 80qݣwcZ}f1òpkI[k7v{Π~=zvG,W+˦}ؗNLY<@vJK6 )g`HM…S[F RJ1: ^ymy3uQl=8VVcpO$d:/ uOP5Z{qAE$]|}k WE29kGx\Z8Ǝ"3!/|L0S+E~Tu16ml]`]ci:ݧsc6M۴Ҧ_*JAMXqϫ`vߏ;/I[vдiR[TS݉<ʬMmqΪSuʅ>-Ajm(3$o4 Lfo2Mp;!cw`Aqp6 O_Klmj46kiJs km?vdmR ;^ J(W6+MR`8i:'2;?sZ^l o9kxYK|f|cn?x"p 䀷Kwh]7}m<7qh-*FV,/y`KЖ-!*g:EiXP7f A.<9'M90h;wnJ[n[3ٶ 86'+R1&YtJ-cgn:3qL"7 &]ǵq)vn$;z;HQ}Ӹ;WS3N#=`L'a-λ v i #isT5޹L]Jgh~4_#P2GA@'ͫ W:'4֓yiO$+ 3f7 sJ3ocG+G M[S?zjR| YwZ_taXNp"^Mo#krğ?bm)k+ w Kcp>q*bGt.-sg'U$Vmrc]@v5߷-]}lPa3״/^.sn=P~n` 0quLJoǴ-]?ǹF;\A۸*c=e2=o@ߛ@m t ' 3v gp 2h~yߩsaFoEQD2^|]ON_d> fj Z x7|P4?|IEVo&پ%  tO{/1ѻg Kۥ>^DwmSl=S4P+&'ozNψnyG}>u ǿywo)Vw1v[B{sۦ[Kޥ~{s;OZ vOJrµk=wBu[&oZIm*3?;g~g~|L.%tEXtdate:create2013-08-20T17:17:24+02:00Aѷ%tEXtdate:modify2013-08-20T17:17:24+02:000tEXtSoftwareGPL Ghostscript 9.05]IENDB`hevea-2.09-manual/manual004.html0000644004317100512160000002356612204704202016431 0ustar marangetcristal Style files Previous Up Next

2  Style files

LATEX style files are files that are not intended to produce output, but define document layout parameters, commands, environments, etc.

2.1  Standard base styles

The base style of a LATEX document is the argument to the \documentclass command (\documentstyle in old style). Normally, the base style of a document defines the structure and appearance of the whole document.

HEVEA really knows about two LATEX base styles, article and book. Additionally, the report base style is recognized and considered equivalent to book and the seminar base style for making slides is recognized and implemented by small additions on the article style.

Base style style is implemented by an HEVEA specific style file style.hva. More precisely, HEVEA interprets \documentclass{style} by attempting to load the file style.hva (see section C.1.1.1 on where HEVEA searches for files). Thus, at the moment, HEVEA distribution includes the files, article.hva, book.hva, etc.

2.2  Other base styles

Documents whose base style is not recognized by HEVEA can be processed when the unknown base style is a derivation of a recognized base style.

Let us assume that doc.tex uses an exotic base style such as acmconf. Then, typing hevea doc.tex will yield an error, since HEVEA cannot find the acmconf.hva file:

# hevea.opt doc.tex
doc.tex:1: Warning: Cannot find file: acmconf.hva
doc.tex:1: Error while reading LaTeX: No base style
Adios

This situation is avoided by invoking HEVEA with the known base style file article.hva as an extra argument:

# hevea article.hva doc.tex

The extra argument instructs HEVEA to load its article.hva style file before processing doc.tex. It will then ignore the document base style specified by \documentclass (or \documentstyle).

Observe that the fix above works because the acmconf and article base styles look the same to the document (i.e. they define the same macros). More generally, most base styles that are neither article nor book are in fact variations on either two of them. However, such styles usually provides extra macros. If users documents use these macros, then users should also instruct HEVEA about them (see section 4.1).

Finally, it is important to notice that renaming a base style file style.cls into style.hva will not work in general. As a matter of fact, base style files are TEX and not LATEX source and HEVEA will almost surely fail on TEX-ish input.

2.3  Other style files

A LATEX document usually loads additional style files, by using the commands \input or \usepackage or \input.

2.3.1  Files loaded with \input

Just like LATEX, HEVEA reacts to the construct \input{file} by loading the file file. (if I got it right, HEVEA even follows TEX’s crazy conventions on .tex extensions).

As it is often the case, assume that the document doc.tex has a \input{mymacros.tex} instruction in its preamble, where mymacros.tex gathers custom definitions. Hopefully, only a few macros give rise to trouble: macros that performs fine typesetting or TEXish macros. Such macros need to be rewritten, using basic LATEX constructs (section 4 gives examples of macro-rewriting). The new definitions are best collected in a style file, mymacros.hva for instance. Then, doc.tex is to be translated by issuing the command:

# hevea mymacros.hva doc.tex

The file mymacros.hva is processed before doc.tex (and thus before mymacros.tex). As a consequence of HEVEA behaviour with respect to definition and redefinition (see section B.8.1), the macro definitions in mymacros.hva take precedence over the ones in mymacros.tex, provided the document original definitions (the ones in mymacros.tex) are performed by \newcommand (or \newenvironment).

Another situation is when HEVEA fails to process a whole style file. Usually, this means that HEVEA crashes on that style file. The basic idea is then to write a mymacros.hva style file that contains alternative definitions for all the commands defined in mymacros.sty. Then, HEVEA should be instructed to load mymacros.hva and not to load mymacros.tex. This is done by invoking hevea as follows:

# hevea mymacros.hva -e mymacros.tex doc.tex

Of course, mymacros.hva must now contain replacements for all the useful macros of mymacro.tex.

2.3.2  Files loaded with \usepackage

As far as I know, LATEX reacts to the construct \usepackage{name} by loading the file name.sty. HEVEA reacts in a similar, but different, manner, by loading the file name.hva.

HEVEA distributions already includes quite a few .hva implementations of famous packages (see section B.17). When a given package (say zorglub) is not implemented, the situation may not be as bad as it may seem first. Hopefully, you are only using a few commands from package zorglub, and you feel confident enough to implement them yourself. Then, it suffices to put your definitions in file zorglub.hva and HEVEA will react to \usepackage{zorglub} by loading zorglub.hva.

See section B.5.2 for the full story on \usepackage.


Previous Up Next hevea-2.09-manual/fddl.html0000644004317100512160000000466312204704173015645 0ustar marangetcristal Free Document Dissemination Licence - V1 Free Document Dissemination Licence -- FDDL version 1

This document may be freely read, stored, reproduced, disseminated, translated or quoted by any means and on any medium provided the following conditions are met:

  • every reader or user of this document acknowledges that he his aware that no guarantee is given regarding its contents, on any account, and specifically concerning veracity, accuracy and fitness for any purpose;
  • no modification is made other than cosmetic, change of representation format, translation, correction of obvious syntactic errors, or as permitted by the clauses below;
  • comments and other additions may be inserted, provided they clearly appear as such; translations or fragments must clearly refer to an original complete version, preferably one that is easily accessed whenever possible;
  • translations, comments and other additions must be dated and their author(s) must be identifiable (possibly via an alias);
  • this licence is preserved and applies to the whole document with modifications and additions (except for brief quotes), independently of the representation format;
  • whatever the mode of storage, reproduction or dissemination, anyone able to access a digitized version of this document must be able to make a digitized copy in a format directly usable, and if possible editable, according to accepted, and publicly documented, public standards;
  • redistributing this document to a third party requires simultaneous redistribution of this licence, without modification, and in particular without any further condition or restriction, expressed or implied, related or not to this redistribution. In particular, in case of inclusion in a database or collection, the owner or the manager of the database or the collection renounces any right related to this inclusion and concerning the possible uses of the document after extraction from the database or the collection, whether alone or in relation with other documents.
Any incompatibility of the above clauses with legal, contractual or judiciary decisions or constraints implies a corresponding limitation of reading, usage, or redistribution rights for this document, verbatim or modified.

Version française : LLDD hevea-2.09-manual/manual018.html0000644004317100512160000013063712204704202016434 0ustar marangetcristal Generating html constructs Previous Up Next


8  Generating html constructs

HEVEA output language being html, it is normal for users to insert hypertext constructs their documents, or to control colours.

8.1  High-Level Commands

HEVEA provides high-level commands for generating hypertext constructs. Users are advised to use these commands in the first place, because it is easy to write incorrect html and that writing html directly may interfere in nasty ways with HEVEA internals.

A few commands for hyperlink management and included images are provided, all these commands have appropriate equivalents defined by the hevea package (see section 5.2). Hence, a document that relies on these high-level commands still can be typeset by LATEX, provided it loads the hevea package.

MacroHEVEALATEX
\ahref{url}{text}    make text an hyperlink to url    echo text
\footahref{url}{text}    make text an hyperlink to url    make url a footnote to text, url is shown in typewriter font
\ahrefurl{url}    make url an hyperlink to url.    typeset url in typewriter font
\ahrefloc{label}{text}    make text an hyperlink to label inside the document    echo text
\aname{label}{text}    make text an hyperlink target with label label    echo text
\mailto{address}    make address a “mailto” link to address    typeset address in typewriter font
\imgsrc[attr]{url}    insert url as an image, attr are attributes in the html sense    do nothing
\home{text}    produce a home-dir url both for output and links, output aspect is: “~text

It is important to notice that all arguments are processed. For instance, to insert a link to my home page, (http://pauillac.inria.fr/~maranget/index.html), you should do something like this:

\ahref{http://pauillac.inria.fr/\home{maranget}/index.html}{his home page}

Given the frequency of ~, # etc. in urls, this is annoying. Moreover, the immediate solution, using \verb, \ahref{\verb" ... /~maranget/..."}{his home page} does not work, since LATEX forbids verbatim formatting inside command arguments.

Fortunately, the url package provides a very convenient \url command that acts like \verb and can appear in other command arguments (unfortunately, this is not the full story, see section B.17.11). Hence, provided the url package is loaded, a more convenient reformulation of the example above is:

\ahref{\url{http://pauillac.inria.fr/~maranget/index.html}}{his home page}

Or even better:

\urldef{\lucpage}{\url}{http://pauillac.inria.fr/~maranget/index.html}
\ahref{\lucpage}{his home page}

It may seem complicated, but this is a safe way to have a document processed both by LATEX and HEVEA. Drawing a line between url typesetting and hyperlinks is correct, because users may sometime want urls to be processed and some other times not. Moreover, HEVEA (optionally) depends on only one third party package: url, which is as correct as it can be and well-written.

In case the \url command is undefined at the time \begin{document} is processed, the commands \url, \oneurl and \footurl are defined as synonymous for \ahref, \ahrefurl and \footahref, thereby ensuring some compatibility with older versions of HEVEA. Note that this usage of \url is deprecated.

8.1.2  html style colours

Specifying colours both for LATEX and HEVEA should be done using the color package (see section B.14.2). However,one can also specify text color using special type style declarations. The hevea.sty style file define no equivalent for these declarations, which therefore are for HEVEA consumption only.

Those declarations follow html conventions for colours. There are sixteen predefined colours:

\black, \silver, \gray, \white, \maroon, \red, \fuchsia, \purple, \green, \lime, \olive, \yellow, \navy, \blue, \teal, \aqua

Additionally, the current text color can be changed by the declaration \htmlcolor{number}, where number is a six digit hexadecimal number specifying a color in the RGB space. For instance, the declaration \htmlcolor{404040} changes font color to dark gray,

8.2  More on included images

The \imgsrc command becomes handy when one has images both in Postscript and GIF (or PNG or JPG) format. As explained in section 6.3, Postscript images can be included in LATEX documents by using the \epsfbox command from the epsf package. For instance, if screenshot.ps is an encapsulated Postscript file, then a doc.tex document can include it by:

\epsfbox{screenshot.ps}

We may very well also have a GIF version of the screenshot image (or be able to produce one easily using image converting tools), let us store it in a screenshot.ps.gif file. Then, for HEVEA to include a link to the GIF image in its output, it suffices to define the \epsfbox command in the macro.hva file as follows:

\newcommand{\epsfbox}[1]{\imgsrc{#1.gif}}

Then HEVEA has to be run as:

# hevea macros.hva doc.tex

Since it has its own definition of \epsfbox, HEVEA will silently include a link the GIF image and not to the Postscript image.

If another naming scheme for image files is preferred, there are alternatives. For instance, assume that Postscript files are of the kind name.ps, while GIF files are of the kind name.gif. Then, images can be included using \includeimage{name}, where \includeimage is a specific user-defined command:

\newcommand{\includeimage}[1]{\ifhevea\imgsrc{#1.gif}\else\epsfbox{#1.ps}\fi}

Note that this method uses the hevea boolean register (see section 5.2.3). If one does not wish to load the hevea.sty file, one can adopt the slightly more verbose definition:

\newcommand{\includeimage}[1]{%
%HEVEA\imgsrc{#1.gif}%
%BEGIN LATEX
\epsfbox{#1.ps}
%END LATEX
}

When the Postscript file has been produced by translating a bitmap file, this simple method of making a bitmap image and using the \imgsrc command is the most adequate. It should be preferred over using the more automated image file mechanism (see section 6), which will translate the image back from Postscript to bitmap format and will thus degrade it.

8.3  Internal macros

In this section a few of HEVEA internal macros are described. Internal macros occur at the final expansion stage of HEVEA and invoke Objective Caml code.

Normally, user source code should not use them, since their behaviour may change from one version of HEVEA to another and because using them incorrectly easily crashes HEVEA. However:

  • Internal macros are almost mandatory for writing supplementary base style files.
  • Casual usage is a convenient (but dangerous) way to finely control output (cf. the examples in the next section).
  • Knowing a little about internal macros helps in understanding how HEVEA works.

The general principle of HEVEA is that LATEX environments \begin{env}\end{env} get translated into html block-level elements <block attributes></block>. More specifically, such block level elements are opened by the internal macro \@open and closed by the internal macro \@close. As a special case, LATEX groups {} get translated into html groups, which are shadow block-level elements with neither opening nor closing tag.

In the following few paragraphs, we sketch the interaction of \@open\@close with paragraphs. Doing so, we intend to warn users about the complexity of the task of producing correct html, and to encourage them to use internal macros, which, most of the time, take nasty details into account.

Paragraphs are rendered by p elements, which are opened and closed automatically. More specifically, a first p is opened after \begin{document}, then paragraph breaks close the active p and open a new one. The final \end{document} closes the last p. In any occasion, paragraphs consisting only of space characters are discarded silently.

Following html “normative reference [HTML-5a]”, block-level elements cannot occur inside p; more precisely, block-level opening tags implicitly close any active p. As a consequence, HEVEA closes the active p element when it processes \@open and opens a new p when it processes the matching \@close. Generally, no p element is opened by default inside block-level elements, that is, HEVEA does not immediately open p after having processed \@open. However, if a paragraph break occurs later, then a new p element is opened, and will be closed automatically when the current block is closed. Thus, the first “paragraph” inside block-level elements that include several paragraphs is not a p element. That alone probably prevents the consistent styling of paragraphs with style sheets.

Groups behave differently, opening or closing them does not close nor open p elements. However, processing paragraph breaks inside groups involves temporarily closing all groups up to the nearest enclosing p, closing it, opening a new p and finally re-opening all groups. Opening a block-level element inside a group, similarly involves closing the active p and opening a new p when the matching \@close is processed.

Finally, display mode (as introduced by $$) is also complicated. Displays basically are table elements with one row (tr), and HEVEA manages to introduce table cells (td) where appropriate. Processing \@open inside a display means closing the current cell, starting a new cell, opening the specified block, and then immediately opening a new display. Processing the matching \@close closes the internal display, then the specified block, then the cell and finally opens a new cell. In many occasions (in particular for groups), either cell break or the internal display may get cancelled.

It is important to notice that primitive arguments are processed (except for the \@print primitive, and for some of the basic style primitives). Thus, some characters cannot be given directly (e.g. # and % must be given as \# and \%).

\@print{text}
Echo text verbatim. As a consequence use only ascii in text.
\@getprint{text}
Process text using a special output mode that strips off html tags. This macro is the one to use for processed attributes of html tags.
\@hr[attr]{width}{height}
Output an html horizontal rule, attr is attributes given directly (e.g. SIZE=3 HOSHADE), while width and height are length arguments given in the LATEX style (e.g. 2pt or .5\linewidth).
\@print@u{n}
Output the (Unicode) character “n”, which can be given either as a decimal number or an hexadecimal number prefixed by “X”.
\@open{block}{attributes}
Open html block-level element block with attributes attributes. The block name block must be lowercase. As a special case block may be the empty string, then a html group is opened.
\@close{block}
Close html block-level element block. Note that \@open and \@close must be properly balanced.
\@out@par{arg}
If occurring inside a p element, that is if a <p> opening tag is active, \@out@par first closes it (by emitting </p>), then formats arg, and then re-open a p element. Otherwise \@out@par simply formats arg. This command is adequate when formatting arg produces block-level elements.

Text-level elements are managed differently. They are not seen as blocks that must be closed explicitly. Instead they follow a “declaration” style, similar to the one of LATEX “text-style declarations” — namely, \itshape, \em etc. Block-level elements (and html groups) delimit the effect of such declarations.

\@span{attr}
Declare the text-level element span (with given attributes) as active. The text-level element span will get opened as soon as necessary and closed automatically, when the enclosing block-level elements get closed. Enclosed block-level elements are treated properly by closing span before them, and re-opening span (with given attributes) inside them. The following text-level constructs exhibit similar behaviour with respect to block-level elements.
\@style{shape}
Declare the text shape shape (which must be lowercase) as active. Text shapes are known as font style elements (i, tt, etc.; warning:most of font style elements are depreciated in html5, and some of them are no longer valid, prefer CSS in span tags) or phrase elements (em, etc.) in the html terminology.
\@styleattr{name}{attr}
This command generalises both \@span and \@style, as both a text-level element name name and attributes are specified. More specifically, \@span{attr} can be seen as a shorthand for \@styleattr{span}{attr}; while \@style{name} can be seen as a shorthand for \@styleattr{name}{}.
\@fontsize{int}
Declare the text-level element span with attribute style="font-size:font-size" as active. The argument int must be a small integer in the range 1,2, … , 7. hevea computes font-size, a CSS fontsize value, from int. More specifically, font-size will range from x-small to 120% included in a xx-large, 3 being the default size medium. Notice that \@fontsize is deprecated in favour of \@span with proper fontsize declarations: \@span{style="font-size=xx-small"}, \@span{style="font-size=x-small"}, \@span{style="font-size=small"}, etc.
\@fontcolor{color}
Declare the text-level element span with attribute "style=color" as active. The argument color must be a color attribute value in the html style. That is either one of the sixteen conventional colours black, silver etc, or a RGB hexadecimal color specification of the form #XXXXXX. Note that the argument color is processed, as a consequence numerical color arguments should be given as \#XXXXXX.
\@nostyle
Close active text-level declarations and ignore further text-level declarations. The effect stops when the enclosing block-level element is closed.
\@clearstyle
Simply close active text-level declarations.

Notice on font styling with CSS

The preferred way to style text in new versions of the html “standard” is using style-sheet specifications. Those can be given as argument to a “style” attributes of html elements, most noticeably of the span elements. For instance, to get italics in old versions of html one used the text-level “i” element as in <i></i>. Now, for the same results of getting italics one may write: <span style="font-style:italic"></span>. An indeed hevea styles text in that manner, starting from version 2.00. Such (verbose) declarations are then abstracted into style class declarations by HEVEA optimiser esponja, which is invoked by hevea when given option “-O”.

Notice that style attributes can be given to elements other than span. However, combining style attributes requires a little care as only one style attribute is allowed. Namely <cite style="font-weight:bold" style="color:red"> is illegal and should be written <cite style="font-weight:bold;color:red">. For instance: Das Kapital.

The command \@addtyle can be handy for adding style to already style elements:

\@addstyle{name:val}{attrs}
Echo the space-separated attributes attrs of a tag with the name:val style declaration added to these attributes. The style attribute is added if necessary. Examples: \@addstyle{color:red}{href="#"} will produce href="#" style="color:red", and \@addstyle{color:red}{href="#" style="font-style:italic"} will produce href="#" style="font-style:italic;color:red". Note that an unnecessary extra space can be added in some cases.

As an example, consider the following definition of a command for typesetting citation in bold, written directly in html:

\newcommand{\styledcite}[2][]
{{\@styleattr{cite}{\@addstyle{#1}{style="font-weight:bold"}}#2}}

The purpose of the optional argument is to add style to specific citations, as in:

Two fundamental works: \styledcite{The Holy Bible} and
\styledcite[color:red]{Das Kapital}.

We get: Two fundamental works: The Holy Bible and Das Kapital.

Notice that the example is given for illustrating the usage of the \@addstyle macros, which is intended for package writers. A probably simpler way to proceed would be to use LATEX text-style declarations:

\newcommand{styledcite}[2][]{{\@style{cite}#1\bf{}#2}}
Two fundamental works: \styledcite{The Holy Bible} and
\styledcite[\color{red}]{Das Kapital}.

We get: Two fundamental works: The Holy Bible and Das Kapital.

8.4  The rawhtml environment

Any text enclosed between \begin{rawhtml} and \end{rawhtml} is echoed verbatim into the html output file. Similarly, \rawhtmlinput{file} echoes the contents of file file. In fact, rawhtml is the environment counterpart of the \@print command, but experience showed it to be much more error prone.

When HEVEA was less sophisticated then it is now, rawhtml was quite convenient. But, as time went by, numerous pitfalls around rawhtml showed up. Here are a few:

  • Verbatim means that no translation of any kind is performed. In particular, be aware that input encoding (see B.17.4) does not apply. Hence one should use ascii only, if needed non-ascii characters can be given as entity or numerical character references — e.g. &eacute; or &#XE9; for é.
  • The rawhtml environment should contain only html text that makes sense alone. For instance, writing \begin{rawhtml}<table>\end{rawhtml}\begin{rawhtml}</table>\end{rawhtml} is dangerous, because HEVEA is not informed about opening and closing the block-level element table. In that case, one should use the internal macros \@open and \@close.
  • \begin{rawhtml}text\end{rawhtml} fragments that contain block-level elements will almost certainly mix poorly with p elements (introduced by paragraph breaks) and with active style declaration (introduced by, for instance, \it). Safe usage will most of the time means using the internal macros \@nostyle and \@out@par.
  • When HEVEA is given the command-line option -O, checking and optimisation of text-level elements in the whole document takes place. As a consequence, incorrect html introduced by using the rawhtml environment may be detected at a later stage, but this is far from being certain.

As a conclusion, do not use the rawhtml environment! A much safer option is to use the htmlonly environment and to write LATEX code. For instance, in place of writing:

\begin{rawhtml}
A list of links:
<ul>
<li><a href="http://www.apple.com/">Apple</a>.
<li><a href="http://www.sun.com/">Sun</a>.
</ul>
\end{rawhtml}

One can write:

\begin{htmlonly}
A list of links:
\begin{itemize}
\item \ahref{http://www.apple.com/}{Apple}.
\item \ahref{http://www.sun.com/}{Sun}.
\end{itemize}
\end{htmlonly}

A list of links:

If HEVEA is targeted to text or info files (see Section 11). The text inside rawhtml environments is ignored. However there exists a rawtext environment (and a \rawtextinput command) to echo text verbatim in text or info output mode. Additionally, the raw environment and a \rawinput command echo their contents verbatim, regardless of HEVEA output mode. Of course, when HEVEA produces html, the latter environment and command suffer from the same drawbacks as rawhtml.

8.5  Examples

As a first example of using internal macros, consider the following excerpt from the hevea.hva file that defines the center environment:

\newenvironment{center}{\@open{div}{style="text-align:center"}}{\@close{div}}

Notice that the code above is no longer present and is given here for explanatory purpose only. Now HEVEA uses style-sheets and the actual definition of the center environment is as follows:

\newstyle{.center}{text-align:center;margin-left:auto;margin-right:auto;}%
\setenvclass{center}{center}%
\newenvironment{center}
  {\@open{div}{\@getprint{class="\getenvclass{center}"}}
  {\@close{div}}%

Basically environments \begin{center}\end{center} will, by default, be translated into blocks <div class="center"></div>. Additionally, the style class associated to center environments is managed through an indirection, using the commands \setenvclass and \getenvclass. See section 9.3 for more explanations.

Another example is the definition of the \purple color declaration (see section 8.1.2):

\newcommand{\purple}{\@fontcolor{purple}}

HEVEA does not feature all text-level elements by default. However one can easily use them with internal macros. For instance this is how you can make all emphasised text blink:

\renewcommand{\em}{\@styleattr{em}{style="text-decoration:blink"}}

Here is an example of this questionable blinking feature:

Hello!

Then, here is the definition of a simplified \imgsrc command (see section 8.1.1), without its optional argument:

\newcommand{\imgsrc}[1]
  {\@print{<img src="}\@getprint{#1}\@print{">}}

Here, \@print and \@getprint are used to output html text, depending upon whether this text requires processing or not. Note that \@open{img}{src="#1"} is not correct, because the element img consists in a single tag, without a closing tag.

Another interesting example is the definition of the command \@doaelement, which HEVEA uses internally to output A elements.

\newcommand{\@doaelement}[2]
  {{\@nostyle\@print{<a }\@getprint{#1}\@print{>}}{#2}{\@nostyle\@print{</a>}}

The command \@doaelement takes two arguments: the first argument contains the opening tag attributes; while the second element is the textual content of the A element. By contrast with the \imgsrc example above, tags are emitted inside groups where styles are cancelled by using the \@nostyle declaration. Such a complication is needed, so as to avoid breaking proper nesting of text-level elements.

Here is another example of direct block opening. The bgcolor environment from the color package locally changes background color (see section B.14.2.1). This environment is defined as follows:

\newenvironment{bgcolor}[2][style="padding:1em"]
{\@open{table}{}\@open{tr}{}%
\@open{td}{\@addstyle{background-color:\@getcolor{#2}}{#1}}}
{\@close{td}\@close{tr}\@close{table}}

The bgcolor environment operates by opening a html table (table) with only one row (tr) and cell (td) in its opening command, and closing all these elements in its closing command. In my opinion, such a style of opening block-level elements in environment opening commands and closing them in environment closing commands is good style. The one cell background color is forced with a background-color property in a style attribute. Note that the mandatory argument to \begin{bgcolor} is the background color expressed as a high-level color, which therefore needs to be translated into a low-level color by using the \@getcolor internal macro from the color package. Additionally, \begin{bgcolor} takes html attributes as an optional argument. These attributes are the ones of the table element.

If you wish to output a given Unicode character whose value you know, the recommended technique is to define an ad-hoc command that simply call the \@print@u command. For instance, “blackboard sigma” is Unicode U+02140 (hexa). Hence you can define the command \bbsigma as follows:

\newcommand{\bbsigma}{\@print@u{X2140}}

Then, “\bbsigma” will output “⅀”

8.6  The document charset

According to standards, as far as I understand them, html pages are made of Unicode (ISO 10646) characters. By contrast, a file in any operating system is usually considered as being made of bytes.

To account for that fact, html pages usually specify a document charset that defines a translation from a flow of bytes to a flow of characters. For instance, the byte 0xA4 means Unicode 0x00A4 (¤) in the ISO-8859-1 (or latin1) encoding, and 0x20AC (€) in the ISO-8859-15 (or latin9) encoding. Notice that HEVEA has no difficulty to output both symbols, in fact they are defined as Unicode characters:

\newcommand{\textcurrency}{\@print@u{XA4}}
\newcommand{\texteuro}{\@print@u{X20AC}}

But the \@print@u command may output the specified character as a byte, when possible, by the means of the output translator. If not possible, \@print@u outputs a numerical character references (for instance &#X20AC;).

Of course, the document charset and the output translator must be synchronised. The command \@def@charset takes a charset name as argument and performs the operation of specifying the document character set and the output translator. It should occur in the document preamble. Valid charset names are ISO-8859-n where n is a number in 115, KOI8-R, US-ASCII (the default), windows-n where n is 1250, 1251, 1252 or 1257, or macintosh, or UTF-8. In case those charsets do not suffice, you may ask the author for other document charsets. Notice however that document charset is not that important, the default US-ASCII works everywhere! Input encoding of source files is another, although related, issue — see Section B.17.4.

If wished so, the charset can be extracted from the current locale environment, provided this yields a valid (to HEVEA) charset name. This operation is performed by a companion script: xxcharset.exe. It thus suffices to launch HEVEA as:

# hevea -exec xxcharset.exe other arguments

Previous Up Next hevea-2.09-manual/manual037.html0000644004317100512160000001446612204704202016436 0ustar marangetcristal Font Selection Previous Up Next

B.15  Font Selection

B.15.1  Changing the Type Style

All LATEX 2є declarations and environments for changing type style are recognised. Aspect is rather like LATEX 2є output, but there is no guarantee.

As html does not provide the same variety of type styles as LATEX does. However css provide a wide variety of font properties. HEVEA uses generic properties, proper rendering will then depend upon user agent. For instance, it belongs to the user agent to make a difference between italics (rendered by the font style “italic”) and slanted (rendered by the font style “oblique”).

Here is how HEVEA implements text-style declarations by default:

\itshape  font-style:italic
\slshape  font-style:oblique
\scshape  font-variant:small-caps
\upshape  no style
\ttfamily  font-family:monospace
\sffamily  font-family:sans-serif
\rmfamily  no style
\bfseries  font-weight:bold
\mdseries  no style

Text-style commands also exists, they are defined as \mbox{\decl}. For instance, \texttt is defined as a command with one argument whose body is \mbox{\ttfamily#1}. Finally, the \emph command for emphasised text also exists, it yields text-level em elements.

As in LATEX, type styles consists in three components: shape, series and family. HEVEA implements the three components by making one declaration to cancel the effect of other declarations of the same kind. For instance consider the following source, that exhibits shape changes:

{\itshape italic shape \slshape slanted shape
\scshape small caps shape \upshape upright shape}

Then, in the rendering below, “small caps shape” appears in small caps shape only and not in italics:

italic shape slanted shape small caps shape upright shape

Old style declarations are also recognised, they translate to text-level elements. However, no elements are cancelled when using old style declaration. Thus, the source “{\sl\sc slanted and small caps}” yields “slanted” small caps: “slanted and small caps”. Users need probably not worry about this. However this has an important practical consequence: to change the default rendering of type styles, one should redefine old style declaration in order to benefit from the cancellation mechanism. See section 10.2 for a more thorough description.

B.15.2  Changing the Type Size

All declarations, from \tiny to \Huge are recognised. Output is not satisfactory inside headers elements generated by sectioning commands.

B.15.3  Special Symbols

The \symbol{num} outputs character number num (decimal) from the Unicode character set. This departs from LATEX, which output symbol number num in the current font.


Previous Up Next hevea-2.09-manual/thaihevea.htoc0000644004317100512160000000045312204704202016645 0ustar marangetcristal\begin{tocenv} \tocitem \@locref{sec1}{\begin{@norefs}\@print{1}\quad{}Latin/Thai Character Set{}\end{@norefs}} \tocitem \@locref{sec2}{\begin{@norefs}\@print{2}\quad{}Thai in \LaTeX{}\end{@norefs}} \tocitem \@locref{sec3}{\begin{@norefs}\@print{3}\quad{}Thai in \hevea{}\end{@norefs}} \end{tocenv} hevea-2.09-manual/manual007.html0000644004317100512160000004447112204704202016432 0ustar marangetcristal Making HEVEA and LATEX both happy Previous Up Next

5  Making HEVEA and LATEX both happy

A satisfactory translation from LATEX to html often requires giving instructions to HEVEA. Typically, these instructions are macro definitions and these instructions should not be seen by LATEX. Conversely, some source that LATEX needs should not be processed by HEVEA. Basically, there are three ways to make input vary according to the processor, file loading, the hevea package and comments.

5.1  File loading

HEVEA and LATEX treat files differently. Here is a summary of the main differences:

  • LATEX and HEVEA both load files given as arguments to \input, however when given the option -e filename, HEVEA does not load filename.
  • HEVEA loads all files given as command-line arguments.
  • Both LATEX and HEVEA load style files given as optional arguments to \documentstyle and as arguments to \usepackage, but the files are searched by following different methods and considering different file extensions.

As a consequence, for having a file latexonly loaded by LATEX only, it suffices to use \input{latexonly} in the source and to invoke HEVEA as follows:

# hevea -e latexonly

Having heveaonly loaded by HEVEA only is more simple: it suffices to invoke HEVEA as follows:

# hevea heveaonly

Finally, if one has an HEVEA equivalent style.hva for a LATEX style file style.sty, then one should load the file as follows:

\usepackage{style}

This will result in, LATEX loading style.sty, while HEVEA loads style.hva. As HEVEA will not fail in case style.hva does not exist, this is another method for having a style file loaded by LATEX only.

Writing an HEVEA-specific file file.hva is the method of choice for supplying command definitions to HEVEA only. Users can then be sure that these definitions are not seen by LATEX and will not get echoed to the image file (see section 6).

The file file.hva can be loaded by either supplying the command-line argument file.hva, or by \usepackage{file} from inside the document. Which method is better depends on whether you choose to override or to replace the document definition. In the command-line case, definitions from file.hva are processed before the ones from the document and will override them, provided the document definitions are made using \newcommand (or \newenvironment). In the \usepackage case, HEVEA loads file.hva at the place where LATEX loads file.sty, hence the definitions from file.hva replace the definitions from file.sty in the strict sense.

5.2  The hevea package

The hevea.sty style file is intended to be loaded by LATEX and not by HEVEA. It provides LATEX with means to ignore or process some parts of the document. Note that HEVEA copes with the constructs defined in the hevea.sty file by default. It is important to notice that the hevea.sty style file from the distribution is a package in LATEX 2є terms and that it is not compatible with old LATEX. Moreover, the hevea package loads the comment package which must be present. Also notice that, for compatibility, HEVEA reacts to \usepackage{hevea} by loading its own version of the comment package (Section B.17.6).

5.2.1  Environments for selecting a translator

HEVEA and LATEX perform the following actions on source inside the latexonly, verblatex, htmlonly, rawhtml, toimage and verbimage environments:

environment HEVEALATEX
latexonly ignore, \end{env} constructs are processed (see section 5.2.2)  process
verblatex ignore  process
htmlonly process  ignore
rawhtml echo verbatim (see section 8.4)  ignore
toimage send to the image file, \end{env} constructs and macro characters are processed (see section 6)  process
verbimage send to the image file (see section 6)  process

As an example, this is how some text can be typeset in purple by HEVEA and left alone by LATEX:

We get:
\begin{htmlonly}%
\purple purple rain, purple rain%
\end{htmlonly}
\begin{latexonly}%
purple rain, purple rain%
\end{latexonly}%
\ldots

We get: purple rain, purple rain

It is impossible to avoid the spurious space in HEVEA output for the source above. This extra spaces comes from the newline character that follows \end{htmlonly}. Namely this construct must appear in a line of its own for LATEX to recognize it. Anyway, better control over spaces can be achieved by using the hevea boolean register or comments, see sections 5.2.3 and 5.3.

Also note that environments define a scope and that style changes (and non-global definitions) are local to them. For instance, in the example above, “…” appears in black in html output. However, as an exception, the environments image and verbimage do not create scope. It takes a little practice of HEVEA to understand why this is convenient.

5.2.2  Why are there two environments for ignoring input?

Some scanning and analysis of source is performed by HEVEA inside the latexonly environment, in order to allow latexonly to dynamically occur inside other environments.

More specifically, \end{env} macros are recognized and their env argument is tested against the name of the environment whose opening macro \env opened the latexonly environment. In that case, macro expansion of \endenv is performed and any further occurrence of \end{env’} is tested and may get expanded if it matches a pending \begin{env’} construct.

This enables playing tricks such as:

\newenvironment{latexhuge}
  {\begin{latexonly}\huge}
  {\end{latexonly}}

\begin{latexhuge}
This will appear in huge font in \LaTeX{} output only.
\end{latexhuge}

LATEX output will be:

While there is no HEVEA output.

Since HEVEA somehow analyses input that is enclosed in the latexonly environment, it may choke. However, this environment is intended to select processing by LATEX only and might contain arbitrary source code. Fortunately, it remains possible to have input processed by LATEX only, regardless of what it is, by enclosing it in the verblatex environment. Inside this environment, HEVEA performs no other action than looking for \end{verblatex}. As a consequence, the \begin{verblatex} and \end{verblatex} constructs may only appear in the main flow of text or inside the same macro body, a bit like LATEX verbatim environment.

Relations between toimage and verbimage are similar. Additionally, formal parameters #i are replaced by actual arguments inside the toimage environment (see end of section 6.3 for an example of this feature).

5.2.3  The hevea boolean register

Boolean registers are provided by the ifthen package (see [LATEX, Section C.8.5] and section B.8.5 in this document). Both the hevea.sty style file and HEVEA define the boolean register hevea. However, this register initial value is false for LATEX and true for HEVEA.

Thus, provided, both the hevea.sty style file and the ifthen packages are loaded, the “purple rain” example can be rephrased as follows:

We get:
{\ifthenelse{\boolean{hevea}}{\purple}{}purple rain, purple rain}\ldots

We get: purple rain, purple rain

Another choice is using the TEX-style conditional macro \ifhevea (see Section B.16.1.4):

We get:
{\ifhevea\purple\fi purple rain, purple rain}\ldots

We get: purple rain, purple rain

5.3  Comments

HEVEA processes all lines that start with %HEVEA, while LATEX treats these lines as comments. Thus, this is a last variation on the “purple rain” example:

We get
%HEVEA{\purple
purple rain, purple rain%
%HEVEA}%
\ldots

(Note how comments are placed at the end of some lines to avoid spurious spaces in the final output.)

We get: purple rain, purple rain

Comments thus provide an alternative to loading the hevea package. For user convenience, comment equivalents to the latexonly and toimage environment are also provided:

environmentcomment equivalent
\begin{latexonly}\end{latexonly}
%BEGIN LATEX
%END LATEX
  
\begin{toimage}\end{toimage}
%BEGIN IMAGE
%END IMAGE

Note that LATEX, by ignoring comments, naturally performs the action of processing text between %BEGIN and %END comments. However, no environment is opened and closed and no scope is created while using comment equivalents.


Previous Up Next hevea-2.09-manual/manual009.png0000644004317100512160000001225012204704201016241 0ustar marangetcristalPNG  IHDRYVySg $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'& 영ALi)OO7z? xo"DDX3+=e/1=<+]fRK|cלo,]z ){T8بlOrTzV $G&DPJGf/GnrAltL:5204gk!FgY߽zس {{t@wOm|:3<@t *K`  |d\ "U4& NNp\mp '@&+ <AX H Rt # YC AP4e@v*: :]nB#h >Ll¾Z8Ns|x7\' |+xa ʈ.FD!d3R#H+ҍ!!2|DaP4D9P|T*j3U:@P"4-A[y@t4: ].G7 { 0fgL&S9i\ b1X,Vz`ðl%v;#pF8G\0. +5.py8^oG7K n~ A`86Bp0JxK$UD/b,q+xx8FHI\R)ttL&kmtnr*MLO'!EZClH5OQp((9rʌ8^\C+&YZMPC"QXYKՠ:P##ԫqBSqi|vZm@IR%%%%%/H Cc$0J8RRZm# ۤ?0edet L[MBjFt'}mngG StYZ[6[Nb\հjJ*̪Jhʹ>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tt5{kdX٫ $wҨ$v&}p !{FCv- \oOa"ӮMҾrxN)0kW;|zƮCºG1TdIgA#kx/K#5A_c0܎_i׾ߊt˕w~OjW~Ieݧo)gMQDqjiO oO$Kg[A'^<\6* ³~"$=} 6`7*2#̼þz ->Uh¼[x噞BBR't$ۘ/ا90~@U;! ..tAQߥeuW00}m }m I<%[$"a:JKs^5ۚn[Gjб3A=9&= U29?VU1dJ O;y`}%̣ 0?'{w(fT4rÝ܎ӿw嘷}>ppr8֩A N=u'20h1¿Clo]hۗS}QLI&s;E/)gEƕ"kY뽆LTOre^ȕWlbKsR9*ʱŤQ0}BaCzu8*#`s|:@-y껭-KİrﶄYZTP7LKX[{Q5ξii u蓟%tEXtdate:create2013-08-20T17:17:21+02:00%tEXtdate:modify2013-08-20T17:17:21+02:00b tEXtSoftwareGPL Ghostscript 9.05]IENDB`hevea-2.09-manual/manual030.html0000644004317100512160000002033012204704202016412 0ustar marangetcristal Definitions, Numbering Previous Up Next

B.8  Definitions, Numbering

B.8.1  Defining Commands

HEVEA understands command definitions given in LATEX style. Such definitions are made using \newcommand, \renewcommand and \providecommand. These three constructs accept the same arguments and have the same meaning as in LATEX, in particular it is possible to define an user command with one optional argument. However, HEVEA is more tolerant: if command name already exists, then a subsequent \newcommand{name}…is ignored. If macro name does not exists, then \renewcommand{name}…performs a definition of name. In both cases, LATEX would crash, HEVEA just issues warnings.

The behaviour of \newcommand allows to shadow document definition, provided the new definitions are processed before the document definitions. This is easily done by grouping the shadowing definition in a specific style file given as an argument to HEVEA (see section 5.1). Conversely, changes of base macros (i.e. the ones that HEVEA defines before loading any user-specified file) must be performed using \renewcommand.

Scoping rules apply to macros, as they do in LATEX. Environments and groups define a scope and command definition are local to the scope they occur.

It is worth noticing that HEVEA also partly implements TEX definitions (using \def) and bindings (using \let), see section B.16.1 for details.

B.8.2  Defining Environments

HEVEA accepts environment definitions and redefinitions by \newenvironment and \renewenvironment. The support is complete and should conform to [LATEX, Sections C.8.2].

Environments define a scope both for commands and environment definitions.

B.8.3  Theorem-like Environments

New theorem-like environments can also be introduced and redefined, using \newtheorem and \renewtheorem.

Note that, by contrast with plain environments definitions, theorem-like environment definitions are global definitions.

B.8.4  Numbering

LATEX counters are (fully ?) supported. In particular, defining a counter cmd with \newcounter{cmd} creates a macro \thecmd that outputs the counter value. Then the \thecmd command can be redefined. For instance, section numbering can be turned into alphabetic style by:

\renewcommand{\thesection}{\alph{section}}

Note that TEX style for counters is not supported at all and that using this style will clobber the output. However, HEVEA implements the calc package that makes using TEX style for counters useless in most situations (see section B.17.3).

B.8.5  The ifthen Package

The ifthen package is partially supported. The one unsupported construct is the \lengthtest test expression, which is undefined.

As a consequence, HEVEA accepts the following example from the LATEX manual:

\newcounter{ca}\newcounter{cb}%
\newcommand{\printgcd}[2]{%
  \setcounter{ca}{#1}\setcounter{cb}{#2}%
  Gcd(#1,#2) =
  \whiledo{\not\(\value{ca}= \value{cb}\)}%
    {\ifthenelse{\value{ca}>\value{cb}}%
      {\addtocounter{ca}{-\value{cb}}}%
      {\addtocounter{cb}{-\value{ca}}}%
    gcd(\arabic{ca}, \arabic{cb}) = }%
  \arabic{ca}.}%
For example: \printgcd{54}{30}

For example: Gcd(54,30) = gcd(24, 30) = gcd(24, 6) = gcd(18, 6) = gcd(12, 6) = gcd(6, 6) = 6.

Additionally, a few boolean registers are defined by HEVEA. Some of them are of interest to users.

hevea
Initial value is true. The hevea.sty style file also defines this register with initial value false.
mmode
This register value reflects HEVEA operating mode, it is true in math-mode and false otherwise.
display
This register value reflects HEVEA operating mode, it is true in display-mode and false otherwise.
footer
Initial value is true. When set false, HEVEA does not insert its footer “This document has been translated by HEVEA”.

Finally, note that HEVEA also recognised à la TEX conditional macros (see section B.16.1.4). Such macros are fully compatible with the boolean registers of the ifthen package, as it is the case in LATEX.


Previous Up Next hevea-2.09-manual/manual010.html0000644004317100512160000000105212204704202016410 0ustar marangetcristal Answers

Quiz answers

  1. Black is black.
  2. White is white.
  3. Dylan is Dylan.
hevea-2.09-manual/manual015.html0000644004317100512160000000142712204704202016423 0ustar marangetcristal A cut subsubsection Up Next

7.3.11  A cut subsubsection

A note in a subsubsection flushed at document level.6


Up Next hevea-2.09-manual/manual036.html0000644004317100512160000003657012204704202016435 0ustar marangetcristal Pictures and Colours Previous Up Next

B.14  Pictures and Colours

B.14.1  The picture environment and the graphics Package

It is possible to have pictures and graphics processed by imagen (see section 6.1). In the case of the picture environment it remains users responsibility to explicitly choose source chunks that will get rendered as images. In the case of the commands from the graphics package, this choice is made by HEVEA.

For instance consider the following picture:

\newcounter{cms}
\setlength{\unitlength}{1mm}
\begin{picture}(50,10)
\put(0,7){\makebox(0,0)[b]{cm}}
\multiput(10,7)(10,0){5}{\addtocounter{cms}{1}\makebox(0,0)[b]{\arabic{cms}}}
\multiput(1,0)(1,0){49}{\line(0,1){2.5}}
\multiput(5,0)(10,0){5}{\line(0,1){5}}
\thicklines
\put(0,0){\line(1,0){50}}
\multiput(0,0)(10,0){6}{\line(0,1){5}}
\end{picture}

Users should enclose all picture elements in a toimage environment (or inside %BEGIN IMAGE%END IMAGE comments) and insert an \imageflush command, where they want the image to appear in html output:

%BEGIN IMAGE
\newcounter{cms}
\setlength{\unitlength}{1mm}
\begin{picture}(50,10)
  ...
\end{picture}
%END IMAGE
%HEVEA\imageflush

This will result in normal processing by LATEX and image inclusion by HEVEA:

All commands from the graphics package are implemented using the automatic image inclusion feature. More precisely, the outermost invocations of the \includegraphics, \scalebox, etc. commands are sent to the image image file and there will be one image per outermost invocation of these commands.

For instance, consider a document doc.tex that loads the graphics package and that includes some (scaled) images by:

\begin{center}
\scalebox{.5}{\includegraphics{round.ps}}
\scalebox{.75}{\includegraphics{round.ps}}
\includegraphics{round.ps}
\end{center}

Then, issuing the following two commands:

# hevea doc.tex
# imagen doc

yields html that basically consists in three image links, the images being generated by imagen.

Since the advent of pdflatex, using \includegraphics to insert bitmap images (e.g. .gif or .jpg) became frequent. In that case, users are advised not to use HEVEA default implementation of the graphics package. Instead, they may use a simple variation of the technique described in Section 8.2.

B.14.2  The color Package

HEVEA partly implements the color package. Implemented commands are \definecolor, \color, \colorbox, \textcolor, \colorbox and \fcolorbox. Other commands do not exist. At startup, colours black, white, red, green, blue, cyan, yellow and magenta are pre-defined.

Colours are defined by \definecolor{name}{model}{spec}, where name is the color name, model is the color model used, and spec is the color specification according to the given model. Defined colours are used by the declaration \color{name} and by the command \textcolor{name}{text}, which change text color. Please note that, the \color declaration accepts color specifications directly when invoked as \color[model]{spec}. The \textcolor command has a similar feature.

As regards color models, HEVEA implements the rgb, cmyk, hsv and hls color models. In those models, color specifications are floating point numbers less than one. For instance, here is the definition for the red color:

\definecolor{red}{rgb}{1, 0, 0}

The named color model is also supported, in this model color specification are just names… Named colours are the ones of dvips.

GreenYellow, Yellow, Goldenrod, Dandelion, Apricot, Peach, Melon, YellowOrange, Orange, BurntOrange, Bittersweet, RedOrange, Mahogany, Maroon, BrickRed, Red, OrangeRed, RubineRed, WildStrawberry, Salmon, CarnationPink, Magenta, VioletRed, Rhodamine, Mulberry, RedViolet, Fuchsia, Lavender, Thistle, Orchid, DarkOrchid, Purple, Plum, Violet, RoyalPurple, BlueViolet, Periwinkle, CadetBlue, CornflowerBlue, MidnightBlue, NavyBlue, RoyalBlue, Blue, Cerulean, Cyan, ProcessBlue, SkyBlue, Turquoise, TealBlue, Aquamarine, BlueGreen, Emerald, JungleGreen, SeaGreen, Green, ForestGreen, PineGreen, LimeGreen, YellowGreen, SpringGreen, OliveGreen, RawSienna, Sepia, Brown, Tan, Gray, Black, White.

There are at least three ways to use colours from the named model.

  1. Define a color name for them.
  2. Specify the named color model as an optional argument to \color and \textcolor.
  3. Use the names directly (HEVEA implements the color package with the usenames option given).

That is:

  1. \definecolor{rouge-brique}{named}{BrickRed}\textcolor{rouge-brique}{Text as a brick}.
  2. \textcolor[named]{BrickRed}{Text as another brick}.
  3. \textcolor{BrickRed}{Text as another brick}.

Which yields:

  1. Text as a brick.
  2. Text as another brick.
  3. Text as another brick.

HEVEA also implements the \colorbox and \fcolorbox commands.

\colorbox{red}{Red background},
\fcolorbox{magenta}{red}{Red background, magenta border}.
Red background, Red background, magenta border.

Those two commands accept an optional first argument that specifies the color model, as \textcolor does:

\fcolorbox[named]{RedOrange}{Apricot}{Apricot background, RedOrange border}.
Apricot background, RedOrange border.

Colours should be used carefully. Too many colours hinders clarity and some of the colours may not be readable on the document background color.

B.14.2.1  The bgcolor environment

With respect to the LATEX color package, HEVEA features an additional bgcolor environment, for changing the background color of some subparts of the document. The bgcolor environment is a displayed environment and it normally starts a new line. Simple usage is \begin{bgcolor}{color}\end{bgcolor}, where color is a color defined with \definecolor. Hence the following source yield a paragraph with a red background:

\begin{bgcolor}{red}
\color{yellow}Yellow letters on a red backgroud
\end{bgcolor}
Yellow letters on a red background

The bgcolor environment is implemented by one-cell table element, it takes an optional argument that is used as an attribute for the inner td element (default value is style="padding:1em"). Advanced users may change the default, for instance as:

\begin{bgcolor}[style="padding:0"]{yellow}
\color{red}Red letters on a yellow backgroud
\end{bgcolor}

The resulting output will be red letters on a yellow background and no padding:

Red letters on a yellow background, no padding

B.14.2.2  From High-Level Colours to Low-Level Colours

High-level colours are color names defined with \definecolor. Low-level colours are html-style colours. That is, they are either one of the sixteen conventional colours black, silver etc., or a RGB hexadecimal color specification of the form "#XXXXXX".

One changes the high-level high-color into a low-level color by \@getcolor{high-color}. Low-level colours are appropriate inside html attributes and as arguments to the \@fontcolor internal macro. An example of \@getcolor usage can be found at the end of section 8.5.

There is also \@getstylecolor command that acts like\@getcolor, except that it does not output the double quotes around RGB hexadecimal color specifications. Such low-level colours are appropriate for style definitions in cascading style sheets [CSS-2]. See Section 9.3 for an example.


Previous Up Next hevea-2.09-manual/manual005.png0000644004317100512160000000510412204704200016234 0ustar marangetcristalPNG  IHDR mh $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'& 영ALi)OO7z? xo"DDX3+=e/1=<+]fRK|cלo,]z ){T8بlOrTzV $G&DPJGf/GnrAltL:5204gk!FgY߽zس {{t@wOm|:3<@t *K`  |d\ "U4& NNp\mp '@&+ <AX H Rt # YC AP4e@v*: :]nB#h >Ll¾Z8Ns|x7\' |+xa ʈ.FD!d3R#H+ҍ!!2|DaP4D9P|T*j3U:@P"4-A[y@t4: ].G7 { 0fgL&S9i\ b1X,Vz`ðl%v;#pF8G\0. +5.py8^oG7K n~ A`86Bp0JxK$UD/b,q+xx8FHI\R)ttL&kmtnr*MLO'!EZClH5OQp((9rʌ8^\C+&YZMPC"QXYKՠ:P##ԫqBSqi|vZm@IR%%%%%/H Cc$0J8RRZm# ۤ?0edet L[MBjFt'}mngG StYZ[6[Nb\հjJ*̪Jhʹ>l-Q ynjah;qNp^ M}ϡᙣccieg^k\\6\}\\i ܺaw}W'<}O=Yza<^xzz|4-}Oo ( n $ n ]fkYk\'.a݅aτCBC*6,b:*4r2*4j**z_tMLyL,7*Ms\m\GńD\bh$jR|Robrv`NJA0"uH*hL֦uӗ> ͌c֙ՙdKd'eoްkdcэ=ʹr6q6m6o٢%VǷo- 4 [w8h)+Y؟vUKaD"b~ yqwӒC{0{}e̲²wYn\^{p 〰­RrOBULp]u[|ͮjU-t8:z##G^47emjm,j|,&f%eDȉ'Ovֵ1ڊNS^˃Ӯ{ΰϴU?[Nk/:6t:c:]A]\t[v/H^(HqRΥ)gD_Yj^\ݸxj oZÃ< >x8(ћǙlE>ZLYZ M<2G //'&O;N}īW3JYZٿl&,]Vwzf=gO|??WA}>Mg-`*>k}et1qq?.r)ԕPLTE# iXo tRNS@f pHYsaa?iIDATc` >@! 0X %tEXtdate:create2013-08-20T17:17:20+02:00%tEXtdate:modify2013-08-20T17:17:20+02:00+tEXtSoftwareGPL Ghostscript 9.05]IENDB`hevea-2.09-manual/thaihevea.html0000644004317100512160000002762112204704204016664 0ustar marangetcristal How to Use HEVEA with the Thai Character Set

How to Use HEVEA with the Thai Character Set

Andrew Seagar and นิตยา ซีการ์
email: dr_andrew_seagar@ieee.org

1  Latin/Thai Character Set

Thai LATEX is written in the TIS-620 character encoding. Some people call this ISO-8859-11, but that name was (for a long time) never officially recognised.

The TIS-620 character encoding is an 8-bit single byte character set. It encodes both the ASCII Latin characters (0-127) and the Thai characters (128-255). See, for the official Thai definition, the docuemnt:
“ISO 8859-11 Latin/Thai Character Set standard”
at the website:
www.nectec.or.th/it-standards/iso8859-11/

Non-Thai variations to the official Thai character set were introduced by some vendors. The Windows Thai character set (874) places an unofficial ‘smart quote’ character into one of the empty (illegal) slots in the official Thai set. The DEC (Digital Equipement Coorporation) character set places an unofficial ‘no-break space’ character into another of the empty (illegal) slots in the original official Thai set. It is not too clear what is now “official” and what is not. It is necessary to be a little bit careful. Importing “Thai” docuemnts from Windows into a Linux environment via (for example) Openoffice doesn’t always produce a faithful copy of the original text.

Figure 1 shows the Thai characters according to the Unicode Standard (version 3.0).

2  Thai in LATEX

For Thai in LATEX the package ‘thai’ (file: thai.sty) is used, i.e. \usepackage{thai}.

The source is run through a preprocessor (cttex) to encapsulate all Thai text within bracketted pairs {\thai ....} and to insert the thai-break ‘\tb’ separator.

Normally Thai text is written in a continuous stream with few (if any) blank (space) characters. The preprocessor inserts the ‘\tb’ command to indicate places where the text may be broken if near the end of a line. If these separators are not inserted LATEX has a great deal of trouble in getting a flush right margin without leaving huge gaps in the text.

The style file ‘thai.sty’ contains the definitions for {\thai ....} and \tb. The {\thai ....} command is used to switch the LATEX font.

After passing through the preprocessor, the file is compiled by LATEX in the normal fashion.

3  Thai in HEVEA

For HEVEA the style (package) file ‘thai.sty’ is not used. HEVEA does not recognise the {\thai ....} or \tb constructs. If these constructs are encountered, warnings will be issued and the constructs will be ignored.

In order to use the Thai language with HEVEA, the preprocessor which is normally used before invoking LATEX should not be used. The original (as typed) Thai LATEX file should be passed directly to HEVEA. The command \usepackage{thai} in the file is detected by HEVEA and is used to establish a Thai character encoding. (It is no longer necessary to use the command line flag –charset=TIS-620. This flag is no longer operational).

The commands required to process this file for both Thai LATEX and Thai HEVEA are listed in table 1. The original LATEX filename is assumed to be ‘thaihevea.ttex’ (ttex = Thai tex).


for LATEX 
cttex < thaihevea.ttex > thaihevea.texrun preprocessor
latex thaihevea.texcompile using LATEX
dvips thaihevea.dvi -oconvert using dvips
gv thaihevea.psview using ghostview
for HEVEA 
cp thaihevea.ttex thaihevea.tex‘rename’ file for benefit of HEVEA
hevea thaihevea.texcompile using HEVEA
imagen thaiheveaconvert image to bitmap
firefox thaihevea.htmlview using web browser
Table 1: Processing Thai text with LATEX and HEVEA.

Since the Thai text is not processed to indicate where the text may be broken, the decision is left to the application displaying the html code. The browser I currently use (Firefox) doesn’t know how to break continuous Thai text in suitable places without external help. However the screen width is larger than a page width, which means that on average there are more natural breaks in any line, and the browser is left justifying the text so it doesn’t make large ugly gaps. The right margin is ragged, not flush, but that looks acceptable (to me).

Following is a paragraph of Thai text. It doesn’t say anything important, it is simply here to serve as a basic test. Even if you can’t compile this with LATEX (e.g. you don’t have the file thai.sty or a Thai character set for printing), you can still compile it with HEVEA and make an English/Thai web page.

If you want to eliminate the Thai so you can compile an English-only version of this document, simply insert a comment % character before the \thaistuff command at the top of the file and uncomment the second version of the command (which eliminates the Thai) on the adjacent line.

ศึกษาความหมาย ความสำคัญของสิ่งแวดล้อมศึกษา วิธีการเผยแพร่ประชาสัมพันธ์ ความรู้ทางสิ่งแวดล้อม วิธีการเขียนแผนงานเพื่อเผยแพร่ความรู้ทางสิ่งแวดล้อม นำ สิ่งแวดล้อมศึกษาไปประยุกต์ใช้ในการพัฒนาและเผยแพร่ความรู้ข้อมูล ข่าวสารต่างๆ ในโครงการอื่นๆ ที่มีความสัมพันธ์เกี่ยวข้อง


Figure 1: Thai Character Set


This document was translated from LATEX by HEVEA.
hevea-2.09-manual/manual035.html0000644004317100512160000001131212204704202016417 0ustar marangetcristal Lengths, Spaces and Boxes Previous Up Next

B.13  Lengths, Spaces and Boxes

B.13.1  Length

All length commands are ignored, things go smoothly when LATEX syntax is used (using the \newlength, \setlength, etc. commands, which are null macros). Of course, if lengths are really important to the document, rendering will be poor.

Note that TEX length syntax is not at all recognised. As a consequence, writing things like \textwidth=10cm will clobber the output. Users can correct such misbehaviour by adopting LATEX syntax, here they should write \setlength{\textwidth}{10cm}.

B.13.2  Space

The \hspace, \vspace and \addvspace spacing commands and their starred versions recognise positive explicit length arguments. Such arguments get converted to a number of non-breaking spaces or line breaks. Basically, the value of 1em or 1ex is one space or one line-break. For other length units, a simple conversion based upon a 10pt font is used.

HEVEA cannot interpret more complicated length arguments or perform negative spacing. In these situations, a warning is issued and no output is done.

Spacing commands without arguments are recognised. The \enspace, \quad and \qquad commands output one, two and four non-breaking spaces, while the \smallskip, \medskip and \bigskip output one, one, and two line breaks.

Stretchable lengths do not exist, thus the \hfill and \vfill macros are undefined.

B.13.3  Boxes

Box contents is typeset in text mode (i.e. non-math and non-display mode). Both LATEX boxing commands \mbox and \makebox commands exist. However \makebox generates a specific warning, since HEVEA ignore the length and positioning instructions given as optional argument.

Similarly, the boxing with frame \fbox and \framebox commands are recognised and \framebox issues a warning. When in display mode, \fbox frames its argument by enclosing it in a table with borders. Otherwise, \fbox calls the \textfbox command, which issues a warning and typesets its argument inside a \mbox (and thus no frame is drawn). Users can alter the behaviour of \fbox in non-display mode by redefining \textfbox.

Boxes can be saved for latter usage by storing them in bins. New bins are defined by \newsavebox{cmd}.

Then some text can be saved into cmd by \sbox{cmd}{text} or \begin{lrbox}{cmd} text \end{lrbox}. The text is translated to html, as if it was inside a \mbox and the resulting output is stored. It is retrieved (and outputted) by the command \usebox{cmd}. The \savebox command reduces to \sbox, ignoring its optional arguments.

The \rule commands translate to a html horizontal rule (<HR>) regardless of its arguments.

All other box-related commands do not exist.


Previous Up Next hevea-2.09-manual/manual.hind0000644004317100512160000004323312204704176016166 0ustar marangetcristal\begin{indexenv} \indexitem `` '' (space), \@locref{hevea_default151}{B.3.1} \begin{indexenv} \indexitem after macro, \@locref{hevea_default1}{3.1.2} \begin{indexenv} \indexitem in math, \@locref{hevea_default3}{3.2.1}, \defocc{\@locref{hevea_default169}{B.7.7}} \end{indexenv} \end{indexenv} \indexspace \indexitem \texttt{\#\#}\textit{n}, \@locref{hevea_default205}{B.16.2} \indexspace \indexitem \texttt{- todir} (\texttt{imagen} option), \@locref{hevea_default136}{10.6} \indexitem \texttt{-dv} (\texttt{hevea} option), \@locref{hevea_default0}{3.1.1}, \@locref{hevea_default5}{3.2.3} \indexitem \texttt{-e} (\texttt{hevea} option), \@locref{hevea_default182}{B.11.4} \indexitem \texttt{-fix} (\texttt{hevea} option), \@locref{hevea_default25}{6.1}, \@locref{hevea_default138}{10.7}, \@locref{hevea_default156}{B.4.3}, \@locref{hevea_default177}{B.11.1}, \@locref{hevea_default262}{C.1.5}, \@locref{hevea_default263}{C.1.6} \indexitem \texttt{-gif} (\texttt{imagen} option), \@locref{hevea_default134}{10.5} \indexitem \texttt{-O} (\texttt{hevea} option), \@locref{hevea_default90}{8.4}, \@locref{hevea_default238}{B.17.13} \indexitem \texttt{-o} (\texttt{hevea} option), \@locref{hevea_default254}{C.1.1.2} \indexitem \texttt{-pdf} (\texttt{imagen} option), \@locref{hevea_default248}{B.17.16} \indexitem \texttt{-textsymbols} (\texttt{hevea} option), \@locref{hevea_default4}{3.2.2} \indexitem \texttt{-tocbis} (\texttt{hacha} option), \@locref{hevea_default35}{7.2.3} \indexitem \texttt{-tocter} (\texttt{hacha} option), \@locref{hevea_default36}{7.2.3} \indexitem \texttt{-w} (\texttt{hevea} option), \@locref{hevea_default139}{11.1} \indexspace \indexitem \texttt{\char92@addimagenopt}, \defocc{\@locref{hevea_default137}{10.7}} \indexitem \texttt{\char92@addstyle}, \@locref{hevea_default87}{8.3} \indexitem \texttt{\char92@bodyargs}, \@locref{hevea_default146}{B.2} \indexitem \texttt{\char92@charset}, \@locref{hevea_default150}{B.2} \indexitem \texttt{\char92@clearstyle}, \defocc{\@locref{hevea_default82}{8.3}} \indexitem \texttt{\char92@close}, \defocc{\@locref{hevea_default77}{8.3}}, \@locref{hevea_default97}{8.5}, \@locref{hevea_default107}{8.5} \indexitem \texttt{\char92@def@charset}, \defocc{\@locref{hevea_default111}{8.6}}, \@locref{hevea_default222}{B.17.4} \indexitem \texttt{\char92@fontcolor}, \defocc{\@locref{hevea_default84}{8.3}} \indexitem \texttt{\char92@fontsize}, \defocc{\@locref{hevea_default83}{8.3}} \indexitem \texttt{\char92@footnotelevel}, \defocc{\@locref{hevea_default54}{7.3.6}} \indexitem \texttt{\char92@getcolor}, \@locref{hevea_default108}{8.5}, \defocc{\@locref{hevea_default194}{B.14.2.2}} \indexitem \texttt{\char92@getprint}, \defocc{\@locref{hevea_default73}{8.3}}, \@locref{hevea_default102}{8.5} \indexitem \texttt{\char92@getstylecolor}, \@locref{hevea_default118}{9.3}, \defocc{\@locref{hevea_default195}{B.14.2.2}} \indexitem \texttt{\char92@hevealibdir}, \defocc{\@locref{hevea_default253}{C.1.1.1}} \indexitem \texttt{\char92@hr}, \defocc{\@locref{hevea_default75}{8.3}} \indexitem \texttt{\char92@meta}, \@locref{hevea_default147}{B.2} \indexitem \texttt{\char92@nostyle}, \defocc{\@locref{hevea_default81}{8.3}}, \@locref{hevea_default103}{8.5}, \@locref{hevea_default104}{8.5} \indexitem \texttt{\char92@open}, \defocc{\@locref{hevea_default76}{8.3}}, \@locref{hevea_default96}{8.5}, \@locref{hevea_default106}{8.5} \indexitem \texttt{\char92@print}, \defocc{\@locref{hevea_default72}{8.3}}, \@locref{hevea_default101}{8.5} \indexitem \texttt{\char92@print@u}, \@locref{hevea_default6}{4.2}, \defocc{\@locref{hevea_default74}{8.3}}, \@locref{hevea_default109}{8.5}, \@locref{hevea_default110}{8.6} \indexitem \texttt{\char92@span}, \defocc{\@locref{hevea_default80}{8.3}} \indexitem \texttt{\char92@style}, \defocc{\@locref{hevea_default78}{8.3}} \indexitem \texttt{\char92@styleattr}, \defocc{\@locref{hevea_default79}{8.3}} \indexspace \indexitem \verb+\bigl,\bigr+ etc., \@locref{hevea_default167}{B.7.5} \indexitem \verb+\boxed+, \@locref{hevea_default166}{B.7.5} \indexitem \verb+\sqrt+, \@locref{hevea_default160}{B.7.3} \indexspace \indexitem \texttt{\char92addcontentsline}, \defocc{\@locref{hevea_default155}{B.4.3}} \indexitem \texttt{\char92ahref}, \defocc{\@locref{hevea_default57}{8.1.1}} \indexitem \texttt{\char92ahrefloc}, \@locref{hevea_default50}{7.3.5}, \defocc{\@locref{hevea_default60}{8.1.1}} \indexitem \texttt{\char92ahrefurl}, \defocc{\@locref{hevea_default58}{8.1.1}} \indexitem \texttt{amsmath} package, \@locref{hevea_default216}{B.17.1} \indexitem \texttt{amssymb} package, \@locref{hevea_default217}{B.17.1} \indexitem \texttt{\char92aname}, \@locref{hevea_default49}{7.3.5}, \defocc{\@locref{hevea_default61}{8.1.1}} \indexitem argument\begin{indexenv} \indexitem of commands, \@locref{hevea_default142}{B.1.1} \indexitem of \texttt{\char92 input}, \@locref{hevea_default181}{B.11.4} \end{indexenv} \indexitem \texttt{array} package, \@locref{hevea_default218}{B.17.2} \indexspace \indexitem babel\begin{indexenv} \indexitem languages, \@locref{hevea_default232}{B.17.10.2} \end{indexenv} \indexitem \texttt{babel} package, \@locref{hevea_default231}{B.17.10} \indexitem \texttt{bgcolor} environment, \@locref{hevea_default105}{8.5}, \defocc{\@locref{hevea_default193}{B.14.2.1}} \indexitem block-level elements, \@locref{hevea_default71}{8.3} \indexitem browser configuration, \@locref{hevea_default264}{C.2} \indexspace \indexitem \texttt{calc} package, \@locref{hevea_default220}{B.17.3} \indexitem \texttt{chapterbib} package, \@locref{hevea_default230}{B.17.9} \indexitem \texttt{cleveref} package, \@locref{hevea_default251}{B.17.19} \indexitem color\begin{indexenv} \indexitem of background, \see{\texttt{\char92@bodyargs}}{\@locref{hevea_default145}{B.2}} \indexitem of section headings, \@locref{hevea_default210}{B.16.4} \end{indexenv} \indexitem \texttt{\char92color}, \@locref{hevea_default189}{B.14.2} \indexitem \texttt{color} package, \@locref{hevea_default188}{B.14.2} \indexitem \texttt{\char92colorbox}, \@locref{hevea_default191}{B.14.2} \indexitem \texttt{\char92colorsections}, \defocc{\@locref{hevea_default212}{B.16.4}} \indexitem command\begin{indexenv} \indexitem and arguments, \@locref{hevea_default141}{B.1.1} \indexitem definition, \defocc{\@locref{hevea_default170}{B.8.1}}, \@locref{hevea_default197}{B.16.1.1}, \@locref{hevea_default206}{B.16.2} \indexitem syntax, \@locref{hevea_default140}{B.1.1} \end{indexenv} \indexitem comment\begin{indexenv} \indexitem \texttt{\%BEGIN IMAGE}, \@locref{hevea_default20}{5.3} \indexitem \texttt{\%BEGIN LATEX}, \@locref{hevea_default19}{5.3} \indexitem \texttt{\%END IMAGE}, \@locref{hevea_default22}{5.3} \indexitem \texttt{\%END LATEX}, \@locref{hevea_default21}{5.3} \indexitem \texttt{\%HEVEA}, \@locref{hevea_default18}{5.2.3} \end{indexenv} \indexitem \texttt{comment} package, \@locref{hevea_default224}{B.17.6} \indexitem \texttt{\char92cutdef}, \@locref{hevea_default33}{7.2.2}, \@locref{hevea_default37}{7.2.4} \indexitem \texttt{\char92cutend}, \@locref{hevea_default34}{7.2.2}, \@locref{hevea_default38}{7.2.4} \indexitem \texttt{cutflow} environment, \defocc{\@locref{hevea_default48}{7.3.5}} \indexitem \texttt{cutflow*} environment, \defocc{\@locref{hevea_default51}{7.3.5}} \indexitem \texttt{\char92cuthere}, \@locref{hevea_default32}{7.2.2}, \@locref{hevea_default39}{7.2.4} \indexitem \texttt{\char92cutname}, \defocc{\@locref{hevea_default43}{7.3.1}} \indexitem \texttt{cuttingdepth} counter, \@locref{hevea_default31}{7.2.2} \indexitem \texttt{\char92cuttingunit}, \@locref{hevea_default28}{7.2.2}, \@locref{hevea_default40}{7.2.4} \indexspace \indexitem \texttt{deepcut} package, \@locref{hevea_default41}{7.2.5} \indexitem \texttt{\char92def}, \@locref{hevea_default196}{B.16.1.1} \indexitem display problems\begin{indexenv} \indexitem for authors, \@locref{hevea_default214}{B.16.5} \indexitem for viewers, \@locref{hevea_default265}{C.2} \end{indexenv} \indexitem \texttt{divstyle} environment, \defocc{\@locref{hevea_default122}{9.5.2}} \indexspace \indexitem \texttt{\char92else}, \@locref{hevea_default203}{B.16.1.4} \indexitem \texttt{esponja} command, \@locref{hevea_default256}{C.1.3} \indexitem \texttt{externalcss} (boolean register), \defocc{\@locref{hevea_default124}{9.6.2}} \indexitem \texttt{\char92externalcsstrue}, \defocc{\@locref{hevea_default125}{9.6.2}} \indexspace \indexitem \texttt{fancysection} package, \@locref{hevea_default211}{B.16.4} \indexitem \texttt{\char92fcolorbox}, \@locref{hevea_default192}{B.14.2} \indexitem \texttt{\char92fi}, \@locref{hevea_default204}{B.16.1.4} \indexitem \texttt{figcut} package, \@locref{hevea_default42}{7.2.5} \indexitem \texttt{\char92flushdef}, \defocc{\@locref{hevea_default53}{7.3.6}}, \@locref{hevea_default55}{7.3.6} \indexitem \texttt{\char92footahref}, \defocc{\@locref{hevea_default59}{8.1.1}} \indexitem \texttt{\char92footnoteflush}, \defocc{\@locref{hevea_default52}{7.3.6}} \indexitem \texttt{\char92footurl}, \@locref{hevea_default67}{8.1.1} \indexspace \indexitem GIF, \@locref{hevea_default131}{10.5}, \@locref{hevea_default259}{C.1.5} \indexitem \texttt{\char92gdef}, \@locref{hevea_default200}{B.16.1.3} \indexitem \texttt{\char92getenvclass}, \@locref{hevea_default99}{8.5}, \defocc{\@locref{hevea_default117}{9.3}} \indexitem \texttt{\char92global}, \@locref{hevea_default199}{B.16.1.3} \indexitem \texttt{graphics} package, \@locref{hevea_default186}{B.14.1} \indexitem \texttt{graphicx} package, \@locref{hevea_default187}{B.14.1} \indexspace \indexitem \texttt{hacha} command, \@locref{hevea_default255}{C.1.2} \indexitem \texttt{hanging} package, \@locref{hevea_default250}{B.17.18} \indexitem \texttt{hevea} boolean register, \@locref{hevea_default17}{5.2.3} \indexitem \texttt{hevea} command, \@locref{hevea_default252}{C.1.1} \indexitem \texttt{\char92heveadate}, \@locref{hevea_default209}{B.16.3} \indexitem \texttt{\char92heveaimagedir}, \@locref{hevea_default135}{10.6} \indexitem \texttt{\char92home}, \defocc{\@locref{hevea_default64}{8.1.1}} \indexitem \texttt{\char92htmlcolor}, \@locref{hevea_default68}{8.1.2} \indexitem \texttt{\char92htmlfoot}, \@locref{hevea_default144}{B.2} \indexitem \texttt{\char92htmlhead}, \@locref{hevea_default143}{B.2} \indexitem \texttt{htmlonly} environment, \defocc{\@locref{hevea_default8}{5.2.1}} \indexitem \texttt{\char92htmlprefix}, \defocc{\@locref{hevea_default44}{7.3.2}} \indexitem hyperlinks, \@locref{hevea_default56}{8.1.1}, \@locref{hevea_default234}{B.17.11} \indexspace \indexitem \texttt{\char92if}, \@locref{hevea_default202}{B.16.1.4} \indexitem \texttt{ifpdf} package, \@locref{hevea_default247}{B.17.16} \indexitem \texttt{ifthen} package, \@locref{hevea_default173}{B.8.5} \indexitem image inclusion\begin{indexenv} \indexitem bitmap, \@locref{hevea_default69}{8.2} \indexitem in Postscript, \defocc{\@locref{hevea_default26}{6.3}}, \@locref{hevea_default128}{10.4}, \@locref{hevea_default185}{B.14.1} \indexitem output format, \@locref{hevea_default129}{10.5} \end{indexenv} \indexitem \texttt{\char92imageflush}, \defocc{\@locref{hevea_default24}{6.1}}, \@locref{hevea_default132}{10.5} \indexitem \texttt{imagen} command, \@locref{hevea_default257}{C.1.5} \indexitem \texttt{\char92imgsrc}, \@locref{hevea_default47}{7.3.4}, \defocc{\@locref{hevea_default63}{8.1.1}}, \@locref{hevea_default70}{8.2}, \@locref{hevea_default100}{8.5}, \@locref{hevea_default133}{10.5} \indexitem \texttt{index} package, \@locref{hevea_default225}{B.17.7} \indexitem \texttt{indexcols} counter, \@locref{hevea_default184}{B.11.5} \indexitem \texttt{indexenv} environment, \defocc{\@locref{hevea_default183}{B.11.5}} \indexitem inference rules, \@locref{hevea_default243}{B.17.15} \indexitem \texttt{\char92input}, \defocc{\@locref{hevea_default180}{B.11.4}} \indexitem \texttt{inputenc} package, \@locref{hevea_default221}{B.17.4} \indexitem \texttt{\char92inputencoding}, \defocc{\@locref{hevea_default223}{B.17.4}} \indexspace \indexitem \texttt{\char92label}, \@locref{hevea_default153}{B.4.1}, \defocc{\@locref{hevea_default178}{B.11.2}} \indexitem \texttt{latexonly} environment, \defocc{\@locref{hevea_default7}{5.2.1}}, \@locref{hevea_default14}{5.2.2} \indexitem \texttt{\char92let}, \@locref{hevea_default148}{B.2}, \defocc{\@locref{hevea_default198}{B.16.1.2}} \indexitem \texttt{listings} package, \@locref{hevea_default237}{B.17.13} \indexitem \texttt{\char92loadcssfile}, \defocc{\@locref{hevea_default126}{9.6.3}} \indexitem \texttt{longtable} package, \@locref{hevea_default240}{B.17.14} \indexitem \texttt{\char92lstavoidwhitepre}, \defocc{\@locref{hevea_default239}{B.17.13}} \indexspace \indexitem \texttt{\char92mailto}, \defocc{\@locref{hevea_default62}{8.1.1}} \indexitem \texttt{\char92marginpar}, \defocc{\@locref{hevea_default174}{B.9}} \indexitem math accents, \@locref{hevea_default168}{B.7.6} \indexitem \texttt{mathpartir} package, \@locref{hevea_default242}{B.17.15} \begin{indexenv} \indexitem derivation trees, \@locref{hevea_default246}{B.17.15.4} \indexitem \verb+\inferrule+, \@locref{hevea_default245}{B.17.15.2} \indexitem \texttt{mathpar} environment, \@locref{hevea_default244}{B.17.15.1} \end{indexenv} \indexitem \texttt{multibib} package, \@locref{hevea_default228}{B.17.9} \indexitem \texttt{multind} package, \@locref{hevea_default226}{B.17.7} \indexspace \indexitem \texttt{natbib} package, \@locref{hevea_default227}{B.17.8} \indexitem \texttt{\char92newcites}, \@locref{hevea_default229}{B.17.9} \indexitem \texttt{\char92newcommand}, \@locref{hevea_default171}{B.8.1} \indexitem \texttt{\char92newif}, \@locref{hevea_default201}{B.16.1.4} \indexitem \texttt{\char92newstyle}, \defocc{\@locref{hevea_default114}{9.1}} \indexitem \texttt{\char92normalmarginpar}, \defocc{\@locref{hevea_default176}{B.9}} \indexitem \texttt{\char92notocnumber}, \@locref{hevea_default30}{7.2.2} \indexspace \indexitem \texttt{\char92oneurl}, \@locref{hevea_default66}{8.1.1} \indexspace \indexitem PDF, \@locref{hevea_default260}{C.1.5} \indexitem PNG, \@locref{hevea_default130}{10.5}, \@locref{hevea_default258}{C.1.5} \indexitem pdflatex, \@locref{hevea_default261}{C.1.5} \indexitem \texttt{\char92purple}, \@locref{hevea_default95}{8.5} \indexspace \indexitem \texttt{raw} environment, \@locref{hevea_default91}{8.4} \indexitem \texttt{rawhtml} environment, \defocc{\@locref{hevea_default9}{5.2.1}}, \@locref{hevea_default88}{8.4}, \@locref{hevea_default149}{B.2} \indexitem \texttt{\char92rawhtmlinput}, \@locref{hevea_default89}{8.4} \indexitem \texttt{\char92rawinput}, \@locref{hevea_default92}{8.4} \indexitem \texttt{rawtext} environment, \@locref{hevea_default93}{8.4} \indexitem \texttt{\char92rawtextinput}, \@locref{hevea_default94}{8.4} \indexitem \texttt{\char92ref}, \defocc{\@locref{hevea_default179}{B.11.2}} \indexitem \texttt{\char92renewcommand}, \@locref{hevea_default172}{B.8.1} \indexitem \texttt{\char92reversemarginpar}, \defocc{\@locref{hevea_default175}{B.9}} \indexspace \indexitem \texttt{\char92setenvclass}, \@locref{hevea_default98}{8.5}, \defocc{\@locref{hevea_default116}{9.3}} \indexitem \texttt{\char92setlinkstext}, \defocc{\@locref{hevea_default46}{7.3.4}} \indexitem spacing, \see{`` ''}{\@locref{hevea_default152}{B.3.1}} \indexitem sqrt, \@locref{hevea_default161}{B.7.3} \indexitem style-sheets, \@locref{hevea_default113}{9} \begin{indexenv} \indexitem \verb+\divstyle+, \@locref{hevea_default121}{9.5.2} \indexitem \verb+\loadcssfile+, \@locref{hevea_default127}{9.6.3} \indexitem \verb+\newstyle+, \@locref{hevea_default115}{9.1} \indexitem and \hacha, \@locref{hevea_default27}{7.1} \end{indexenv} \indexitem styles for\begin{indexenv} \indexitem lists, \@locref{hevea_default123}{9.5.3} \indexitem miscellaneous objects, \@locref{hevea_default120}{9.5.2} \indexitem title, \@locref{hevea_default119}{9.5.1} \end{indexenv} \indexitem \texttt{supertabular} package, \@locref{hevea_default241}{B.17.14} \indexspace \indexitem \texttt{\char92tableofcontents}, \defocc{\@locref{hevea_default154}{B.4.3}} \indexitem \texttt{tabularx} package, \@locref{hevea_default219}{B.17.2} \indexitem tabulation, \@locref{hevea_default2}{3.1.2} \indexitem text-level elements, \@locref{hevea_default85}{8.3} \begin{indexenv} \indexitem span, \@locref{hevea_default86}{8.3} \end{indexenv} \indexitem \texttt{\char92textcolor}, \@locref{hevea_default190}{B.14.2} \indexitem \texttt{\char92textoverline}, \@locref{hevea_default165}{B.7.5} \indexitem \texttt{\char92textstackrel}, \@locref{hevea_default163}{B.7.5} \indexitem \texttt{\char92textunderline}, \@locref{hevea_default164}{B.7.5} \indexitem Thai, \@locref{hevea_default249}{B.17.17} \indexitem \texttt{\char92title}, \@locref{hevea_default158}{B.5.3} \indexitem \texttt{\char92tocnumber}, \@locref{hevea_default29}{7.2.2} \indexitem \texttt{\char92today}, \@locref{hevea_default159}{B.5.3}, \@locref{hevea_default207}{B.16.3} \indexitem \texttt{toimage} environment, \defocc{\@locref{hevea_default10}{5.2.1}}, \@locref{hevea_default16}{5.2.2}, \@locref{hevea_default23}{6.1} \indexitem \texttt{\char92toplinks}, \defocc{\@locref{hevea_default45}{7.3.3}} \indexspace \indexitem \texttt{undersection} package, \@locref{hevea_default213}{B.16.4} \indexitem unicode, \@locref{hevea_default162}{B.7.4} \indexitem \texttt{\char92url}, \@locref{hevea_default65}{8.1.1}, \defocc{\@locref{hevea_default233}{B.17.11}} \indexitem \texttt{url} package, \@locref{hevea_default235}{B.17.11} \indexitem \texttt{\char92urldef}, \@locref{hevea_default236}{B.17.11} \indexitem \texttt{\char92usepackage}, \@locref{hevea_default157}{B.5.2} \indexspace \indexitem \texttt{verbimage} environment, \defocc{\@locref{hevea_default11}{5.2.1}}, \@locref{hevea_default15}{5.2.2} \indexitem \texttt{verblatex} environment, \defocc{\@locref{hevea_default12}{5.2.1}}, \@locref{hevea_default13}{5.2.2} \indexspace \indexitem \texttt{winfonts} package, \@locref{hevea_default215}{B.16.5} \indexspace \indexitem \texttt{xxcharset.exe} script, \@locref{hevea_default112}{8.6} \indexitem \texttt{xxdate.exe} script, \@locref{hevea_default208}{B.16.3} \end{indexenv} hevea-2.09-manual/manual038.html0000644004317100512160000006066712204704202016443 0ustar marangetcristal Extra Features Previous Up Next

B.16  Extra Features

This section describes HEVEA functionalities that extends on plain LATEX, as defined in [LATEX]. Most of the features described here are performed by default.

B.16.1  TEX macros

Normally, HEVEA does not recognise constructs that are specific to TEX. However, some of the internal commands of HEVEA are homonymous to TEX macros, in order to enhance compatibility. Note that full compatibility with TEX is not guaranteed.

B.16.1.1  À la TEX macros definitions

The \def construct for defining commands is supported. It is important to notice that HEVEA semantics for \def follows TEX semantics. That is, defining a command that already exists with \def succeeds.

Delimiting characters in command definition are somehow supported. Consider the following example from the TEX Book:

\def\Look{\textsc{Look}}
\def\x{\textsc{x}}
\def\cs AB#1#2C$#3\$ {#3{ab#1}#1 c\x #2}
\cs AB {\Look}{}C${And \$}{look}\$ 5.

It yields: And $lookabLookLook cx5.

Please note that delimiting characters are supported as far as I could, problems are likely with delimiting characters which include spaces or command names, in particular the command name \{. One can include \{ in a command argument by using the grouping characters {}:

\def\frenchquote(#1){\guillemotleft~\emph{#1}~\guillemotright{} (in French)}
he said \frenchquote(Alors cette accolade ouvrante {``\{''}~?).

Yields: he said « Alors cette accolade ouvrante “{” ? » (in French).

Another issue regards comments: “%” in arguments may give undefined behaviours, while comments are better avoided while defining macros. As an example, the following code will not be handled properly by HEVEA:

\def\x%
   #1{y}

Such TEX source should be rewritten as \def\x#1{y}.

Another source of incompatibility with TEX is that substitution of macros parameters is not performed at the same moment by HEVEA and TEX. However, things should go smoothly at the first level of macro expansion, that is when the delimiters appear in source code at the same level as the macro that is to parse them. For instance, the following source will give different results in LATEX and in HEVEA:

\def\cs#1A{``#1''}
\def\othercs#1{\cs#1A}
\othercs{coucouA}

LATEX output is “coucou”A, while HEVEA output is “coucouA”. Here is HEVEA output: “coucouA” Please note that in most situations this discrepancy will make HEVEA crash.

B.16.1.2  The \let construct

HEVEA also processes a limited version of \let:

\let macro-name1 = macro-name2

The effect is to bind macro-name1 to whatever macro-name2 is bound to at the time \let is processed. This construct may prove very useful in situations where one wishes to slightly modify basic commands. See sections 10.3 and B.2 for examples of using \let in such a situation.

B.16.1.3  The \global construct

It is possible to escape scope and to make global definitions and bindings by using the TEX construct \global. The \global construct is significant before \def and \let constructs.

Also note that \gdef is equivalent to \global\def.

B.16.1.4  TEX Conditional Macros

The \newif\ifname, where name is made of letters only, creates three macros: \ifname, \nametrue and \namefalse. The latter two set the name condition to true and false, respectively. The \ifname command tests the condition name:

\ifname
text
1
\else
text2
\fi

Text text1 is processed when name is true, otherwise text2 is processed. If text2 is empty, then the \else keyword can be omitted.

Note that HEVEA also implements LATEX ifthen package and that TEX simple conditional macros are fully compatible with LATEX boolean registers. More precisely, we have the following correspondences:

TEXLATEX
\newif\ifname  \newboolean{name}
\nametrue  \setboolean{name}{true}
\namefalse  \setboolean{name}{false}
\ifname text1\else text2\fi  \ifthenelse{\boolean{name}}{text1}{text2}

B.16.1.5  Other TEX Macros

HEVEA implements the macros \unskip and \endinput. It also supports the \csname\endcsname construct.

B.16.2  Command Definition inside Command Definition

If one strictly follows the LATEX manual, only commands with no arguments can be defined inside other commands. Parameters (i.e. #n) occurring inside command bodies refer to the outer definition, even when they appear in nested command definitions. That is, the following source:

\newcommand{\outercom}[1]{\newcommand{\insidecom}{#1}\insidecom}
\outercom{outer}

yields this output:

outer

Nevertheless, nested commands with arguments are allowed. Standard parameters #n still refer to the outer definition, while nested parameters ##n refer to the inner definition. That is, the source:

\newcommand{\outercom}[1]{\newcommand{\insidecom}[1]{##1}\insidecom{inner}}
\outercom{outer}

yields this output:

inner

B.16.3  Date and time

Date and time support is not enabled by default, for portability and simplicity reasons.

However, HEVEA source distribution includes a simple (sh) shell script xxdate.exe that activates date and time support. The hevea command, should be invoked as:

# hevea -exec xxdate.exe ...

This will execute the script xxdate.exe, whose output is then read by HEVEA. As a consequence, standard LATEX counters year, month, day and time are defined and LATEX command \today works properly. Additionally the following counters and commands are defined:

Counter weekday  day of week, 0…6 (e.g. 2)
Counter Hour  hour, 00…11 (e.g. 05)
Counter hour  hour, 00…23 (e.g. 17)
Counter minute  minute, 00…59 (e.g. 17)
Counter second  second, 00…618(e.g. 15)
Command \ampm  AM or PM (e.g. PM)
Command \timezone  Time zone (e.g. CEST)
Command \heveadate  Output of the date Unix command, (e.g. Tue Aug 20 17:17:15 CEST 2013)

Note that I chose to add an extra option (and not an extra \@exec primitive) for security reasons. You certainly do not want to enable HEVEA to execute silently an arbitrary program without being conscious of that fact. Moreover, the hevea program does not execute xxdate.exe by default since it is difficult to write such a script in a portable manner.

Windows users should enjoy the same features with the version of xxdate.exe included in the Win32 distribution.

B.16.4  Fancy sectioning commands

Loading the fancysection.hva file will radically change the style of sectional units headers: they appear over a green background, the background color saturation decreases as the sectioning commands themselves do (this is the style of this manual). Additionally, the document background color is white.

Note : Fancy section has been re-implemented using style-sheets. While it respects the old behaviour, users are encouraged to try out style-sheets for more flexibility. See Section 9 for details.

The fancysection.hva file is intended to be loaded after the document base style. Hence the easiest way to load the fancysection.hva file is by issuing \usepackage{fancysection} in the document preamble. To allow processing by LATEX, one may for instance create an empty fancysection.sty file.

As an alternative, to use fancy section style in doc.tex whose base style is article you should issue the command:

  # hevea article.hva fancysection.hva doc.tex

You can also make a doc.hva file that contains the two lines:

  \input{article.hva}
  \input{fancysection.hva}

And then launch hevea as:

  # hevea doc.hva doc.tex

Sectioning command background colours can be changed by redefining the corresponding colours (part, chapter, section,…). For instance, you get various mixes of red and orange by:

\input{article.hva}
\input{fancysection.hva}
\definecolor{part}{named}{BrickRed}
\definecolor{section}{named}{RedOrange}
\definecolor{subsection}{named}{BurntOrange}

(See section B.14.2 for details on the named color model that is used above.)

Another choice is issuing the command \colorsections{hue}, where hue is a hue value to be interpreted in the HSV model. For instance,

\input{article.hva}
\input{fancysection.hva}
\colorsections{20}

will yield sectional headers on a red-orange background.

HEVEA distribution features another style for fancy sectioning commands: the undersection package provides underlined sectional headers.

B.16.5  Targeting Windows

At the time of this release, Windows support for symbols through Unicode is not as complete as the one of Linux, which I am using for testing HEVEA.

One of the most salient shortcomings is the inability to display sub-elements for big brackets, braces and parenthesis, which HEVEA normally outputs when it processes \left[, \right\} etc.

We (hopefully) expect Windows fonts to display more of Unicode easily in a foreseeable future. As a temporary fix, we provide a style file winfonts.hva. Authors concerned by producing pages that do not look too ugly when viewed through Windows browsers are thus advised to load the file winfonts.hva. For instance they can invoke HEVEA as:

# hevea winfonts.hva ...

At the moment, loading winfonts.hva only changes the rendering of LATEX big delimiters, avoiding the troublesome Unicode entities. As an example, here are some examples of rendering.

delimitersdefaultwinfonts
\left\{  …  \right\}    




1
2
3




    
 / 
 | 

 | 
 \ 
1
2
3
 \
 |
 >
 |
 /
\left[  …  \right]    



1
2
3



    
1
2
3
\left(  …  \right)    



1
2
3



    



1
2
3
 \
 |
 |
 /
\left\vert  …  \right\vert    



1
2
3



    
1
2
3
\left\Vert  …  \right\Vert    
⎪⎪
⎪⎪
⎪⎪
⎪⎪
1
2
3
⎪⎪
⎪⎪
⎪⎪
⎪⎪
    
1
2
3

More generally, it remains authors responsibility to be careful not to issue too refined Unicode entities. To that aim, authors that target a wide audience should first limit themselves to the most common symbols (e.g. use \leq [≤] in place of \preceq [≼]) and, above all, they should control the rendering of their documents using several browsers.


8
According to date man page.

Previous Up Next hevea-2.09-manual/cutname.html0000644004317100512160000010100112204704202016341 0ustar marangetcristal Cutting your document into pieces with HACHA Previous Up Next

7  Cutting your document into pieces with HACHA

HEVEA outputs a single .html file. This file can be cut into pieces at various sectional units by HACHA

7.1  Simple usage

First generate your html document by applying HEVEA:

# hevea doc.tex

Then cut doc.html into pieces by the command:

# hacha doc.html

This will generate a simple root file index.html. This root file holds document title, abstract and a simple table of contents. Every item in the table of contents contains a link to or into a file that holds a “cutting” sectional unit. By default, the cutting sectional unit is section in the article style and chapter in the book style. The name of those files are doc001.html, doc002.html, etc.

Additionally, one level of sectioning below the cutting unit (i.e. subsections in the article style and sections in the book style) is shown as an entry in the table of contents. Sectional units above the cutting section (i.e. parts in both article and book styles) close the current table of contents and open a new one. Cross-references are properly handled, that is, the local links generated by HEVEA are changed into remote links.

The name of the root file can be changed using the -o option:

# hacha -o root.html doc.html

Some of HEVEA output get replicated in all the files generated by HACHA. Users can supply a header and a footer, which will appear at the begining and end of every page generated by HACHA. It suffices to include the following commands in the document preamble:

  \htmlhead{header}
  \htmlfoot{footer}

HACHA also makes every page it generates a clone of its input as regards attributes to the <body ...> opening tag and meta-information from the <head><\head> block. See section B.2 for examples of this replication feature.

By contrast, style information specified in the style elements from rom the <head><\head> block is not replicated. Instead, all style definitions are collected into an external style sheet file whose name is doc.css, and all generated html files adopt doc.css as an external style sheet. It is important to notice that, since version 1.08, HEVEA produces a style element by itself, even if users do not explicitely use styles. As a consequence, HACHA normally produces a file doc.css, which should not be forgotten while copying files to their final destination after a run of HACHA.

7.2  Advanced usage

HACHA behaviour can be altered from the document source, by using a counter and a few macros.

A document that explicitly includes cutting macros still can be typeset by LATEX, provided it loads the hevea.sty style file from the HEVEA distribution. (See section 5 for details on this style file). An alternative to loading the hevea package is to put all cutting instructions in comments starting with %HEVEA.

7.2.1  Principle

HACHA recognizes all sectional units, ordered as follows, from top to bottom: part, chapter, section, subsection, subsubsection, paragraph and subparagraph.

At any point between \begin{document} and \end{document}, there exist a current cutting sectional unit (cutting unit for short), a current cutting depth, a root file and an output file. Table of contents output goes to the root file, normal output goes to the output file. Cutting units start a new output file, whereas units comprised between the cutting unit and the cutting units plus the cutting depth add new entries in the table of contents.

At document start, the root file and the output file are HACHA output file (i.e. index.html). The cutting unit and the cutting depth are set to default values that depend on the document style.

7.2.2  Cutting macros

The following cutting instructions are for use in the document preamble. They command the cutting scheme of the whole document:

\cuttingunit
This is a macro that holds the document cutting unit. You can change the default (which is section in the article style and chapter in the book style) by doing:
\renewcommand{\cuttingunit}{secname}.
\tocnumber
Instruct HEVEA to put section numbers into table of content entries.
\notocnumber
Instruct HEVEA not to put section numbers into table of content entries. This is the default.
cuttingdepth
This is a counter that holds the document cutting depth. You can change the default value of 1 by doing \setcounter{cuttingdepth}{numvalue}. A cutting depth of zero means no other entries than the cutting units in the table of contents.

Other cutting instructions are to be used after \begin{document}. They all generate html comments in HEVEA output. These comments then act as instructions to HACHA.

\cuthere{secname}{itemtitle}
Attempt a cut.
  • If secname is the current cutting unit or the keyword now, then a new output file is started and an entry in the current table of contents is generated, with title itemtitle. This entry holds a link to the new output file.
  • If secname is above the cutting unit, then the current table of contents is closed. The output file is set to the current root file.
  • If secname is below the cutting unit and less than the cutting depth away from it, then an entry is added in the table of contents. This entry contains itemtitle and a link to the point where \cuthere appears.
  • Otherwise, no action is performed.
\cutdef[depth]{secname}
Open a new table of contents, with cutting depth depth and cutting unit secname. If the optional depth is absent, the cutting depth does not change. The output file becomes the root file. Result is unspecified if whatever secname expands to is a sectional unit name above the current cutting unit, is not a valid sectional unit name or if depth does not expand to a small positive number.
\cutend
End the current table of contents. This closes the scope of the previous \cutdef. The cutting unit and cutting depth are restored. Note that \cutdef and \cutend must be properly balanced.

Commands \cuthere and \cutend have starred variants, which behave identically except for footnotes (see 7.3.6).

Default settings work as follows: \begin{document} performs

\cutdef*[\value{cuttingdepth}]{\cuttingunit}

and \end{document} performs \cutend*. All sectioning commands perform \cuthere, with the sectional unit name as first argument and the (optional, if present) sectioning command argument (i.e. the section title) as second argument. Note that starred versions of the sectioning commands also perform cutting instructions.

7.2.3  Table of links organisation

A table of links generated by HACHA is a list of links to generated files. Additionally, some sublists may be present, up to a certain depth. The items in those sublists are links inside generated files, they point to sectional unit titles below the cutting unit, up to a certain depth.

More precisely, let A be a certain sectional unit (e.g. “part”), let B be just below A (e.g. “section”), and let C be just below C (e.g. “subsection”). Further assume that cutting is performed at level B with a depth of more than one. Then, every unit A holds a one or several tables of links to generated files, and each generated file normally holds a B unit. Sublists with links to C units inside B units normally appear in the tables of links of level A. The command-line options -tocbis and -tocter instruct hacha to put sublists at other places. With -tocbis sublists are duplicated at the beginning of the B level files; while with -tocter sublist only appear at the beginning of the B level files.

In my opinion, default style is appropriate for documents with short B units; while -tocbis style is appropriate for documents with long B units with a few sub-units; and -tocter style is appropriate for documents with long B units with a lot of sub-units. As you may have noticed, this manual is cut by following the -tocbis style.

Whatever the style is, if a B unit is cut (e.g. because its text is enclosed in \cutdef{C}\cutend), then every C unit goes into its own file and there is no sublist after the relevant B level entry in the A level table of links.

7.2.4  Examples

Consider, for instance, a book document with a long chapter that you want to cut at the section level, showing subsections:

\chapter{A long chapter}
.....

\chapter{The next chapter}

Then, you should insert a \cutdef at chapter start and a \cutend at chapter end:

\chapter{A long chapter}
%HEVEA\cutdef[1]{section}
.....
%HEVEA\cutend
\chapter{The next chapter}

Then, the file that would otherwise contain the long chapter now contains the chapter title and a table of sections. No other change is needed, since the command \section already performs the appropriate \cuthere{section}{...} commands, which were ignored by default. (Also note that cutting macros are placed inside %HEVEA comments, for LATEX not to be disturbed).

The \cuthere macro can be used to put some document parts into their own file. This may prove appropriate for long cover pages or abstracts that would otherwise go into the root file. Consider the following document:

\documentclass{article}

\begin{document}

\begin{abstract} A big abstract \end{abstract}
...

Then, you make the abstract go to its own file as it was a cutting unit by typing:

\documentclass{article}
\usepackage{hevea}

\begin{document}
\cuthere{\cuttingunit}{Abstract}
\begin{abstract} A big abstract \end{abstract}
...

(Note that, this time, cutting macros appear unprotected in the source. However, LATEX still can process the document, since the hevea package is loaded).

7.2.5  More and More Pages in Output

In some situations it may be appropriate to produce many pages from one source files. More specifically, loading the deepcut package will put all sectioning units of your document (from \part to \subsection in their own file.

Similarly, loading the figcut package will make all figures and tables go into their own file. The figcut package accepts two options, show and noshow. The former, which is the default, instructs HEVEA to repeat the caption into the main flow of text, with a link to the figure. The latter option disables the feature.

7.3  More Advanced Usage

In this section we show how to alter some details of HACHA behaviour. This includes controlling output file names and the title of generated web pages and introducing arbitrary cuts.

7.3.1  Controlling output file names

When invoked as hacha doc.html, HACHA produces a index.html table of links file that points into doc001.html, doc002.html, etc. content files. This is not very convenient when one wishes to point inside the document from outside. However, the \cutname{name} command sets the name of the current output file name as name.

Consider a document cut at the section level, which contains the following important section:

\section{Important\label{important} section}
...

To make the important section goes into file important.html, one writes:

\section{Important\label{important} section}\cutname{important.html}
...

Then, section “Important section” can be referenced from an HEVEA unaware html page by:

In this document, there is a very
<a href="important.html#important">important section</a>.

If you are reading the html version of this manual, you may check that you are now reading file cutname.html. This particular file name has been specified from the source using \cutname{cutname.html}.

7.3.2  Controlling page titles

When HACHA creates a web page from a given sectional unit, the title of this page normally is the name of the sectional unit. For instance, the title of this very page should be “Cutting your document into pieces with HACHA”. It is possible to insert some text at the beginning of all page titles, by using the \htmlprefix command. Hence, by writing \htmlprefix{\hevea{} Manual: } in the document, the title of this page would become: “HEVEA Manual: Cutting your document into pieces with HACHA” and the title of all other pages would show the same prefix.

7.3.3  Links for the root file

The command \toplinks{prev}{up}{next} instructs HACHA to put links to a “previous”, “up” and “next” page in the root file. The following points are worth noticing:

  • The \toplink command must appear in the document preamble (i.e. before \begin{document}).
  • The arguments prev, up and next should expand to urls, notice that these argument are processed (see section 8.1.1).
  • When one of the expected argument is left empty, the corresponding link is not generated.

This feature can prove useful to relate documents that are generated independently by HEVEA and HACHA.

7.3.4  Controlling link aspect from the document

By default the links to the previous, up and next pages show a small icon (an appropriate arrow). This can be changed with the command \setlinkstext{prev}{up}{next}, where prev, up and next are some LATEX source. For instance the default behaviour is equivalent to:

\setlinkstext
  {\imgsrc[alt="Previous"]{previous_motif.gif}}
  {\imgsrc[alt="Up"]{contents_motif.gif}}
  {\imgsrc[alt="Next"]{next_motif.gif}}

Command \setlinkstext behaves as \toplinks does. That is, it must occur in document preamble, arguments are processed and empty arguments yield no effect (i.e. defaults apply).

7.3.5  Cutting a document anywhere

Part of a document goes to a separate file when enclosed in a cutflow environment:

\begin{cutflow}{title}\end{cutflow}

The content “…” will go into a file of its own, while the argument title is used as the title of the introduced html page.

The html page introduced here does not belong to the normal flow of text. Consequently, one needs an explicit reference from the normal flow of text into the content of the cutflow environment. This will occur naturally when the content of the cutflow environment. contains a \label construct. This look natural in the following quiz example:

\paragraph{A small quiz}
\begin{enumerate}
\item What is black?
\item What is white?
\item What is Dylan?
\end{enumerate}
Answers in section~\ref{answers}.
\begin{cutflow}{Answers}
\paragraph{Quiz answers}\label{answers}
\begin{enumerate}
\item Black is black.
\item White is white.
\item Dylan is Dylan.
\end{enumerate}
\end{cutflow}

The example yields:

A small quiz

  1. What is black?
  2. What is white?
  3. What is Dylan?

Answers in section 7.3.5.

However,introducing html hyperlink targets and references with the \aname and \ahrefloc commands (see section 8.1.1) will be more practical most of the time.

The starred variant environment cutflow* is the same as cutflow, save for the html header and footer (see Section 7.1) which are not replicated in the introduced page.

7.3.6  Footnotes

Footnote texts (given as arguments either to \footnote or \footnotetext) do not go directly to output. Instead, footnote texts accumulate internally in a buffer, awaiting to be flushed. The flushing of notes is controlled by the means of a current flushing unit, which is a sectional unit name or document — a fictional unit above all units. At any point, the current flushing unit is the value of the command \@footnotelevel. In practice, the flushing of footnote texts is performed by two commands:

  • \flushdef{secname} simply sets the flushing unit to secname.
  • \footnoteflush{secname} acts as follows:
    • If argument secname is equal to or above the current flushing unit, then footnote texts are flushed (if any). In the output, the texts themselves are surrounded by special comments that tag them as footnote texts and record secname.
    • Otherwise, no action is performed.

The article style file performs \flushdef{document}, while the book style file performs \flushdef{chapter}. At the end of processing, \end{document} performs \footnoteflush{\@footnotelevel}, so as to flush any pending notes.

Cutting commands interact with footnote flushing as follows:

  • \cuthere{secname} executes \footnoteflush{secname}. Remember that all sectioning commands perform \cuthere with their sectional unit name as argument.
  • \cutdef{secname} saves the current flushing unit and buffer on some internal stack, starts a new buffer for footnote texts, and sets the current flushing unit to secname (by performing \flushdef{secname}).
  • \cutend first flushes any pending texts (by performing \footnoteflush with the current flushing unit as argument), and restores the flushing unit and footnote text buffer saved by the matching \cutdef.
  • The starred variants \cutdef* and \cutend* perform no operation that is related to footnotes.

Later, when running across footnote texts in its input file, HACHA sometimes put notes in a separate file. More precisely, HACHA has knowledge of the current cutting level, the current sectional unit where cuts occur — as given by the relevant \cutdef. Moreover, HACHA knows the current section level — that is, the last sectional command processed. Besides, HACHA extracts the note level from the comments that surround the notes (as given by the command \footnoteflush that produced the notes). Then, HACHA creates a separate file for notes when the cutting level and the note level differ, or when the current level is above the cutting level (e.g. the current level is document while the cutting level is chapter). As a result, notes should stay where they are when they occur at the end of HACHA output file and otherwise go to a separate file.

To make a complicated story even more complicated, footnotes in minipage environments or in the arguments to \title or \author have a different, I guess satisfactory, behaviour.

Given the above description, footnotes are managed by default as follows.

  • In style article, hevea puts all footnotes go at the end of the html file. A later run of hacha creates a separate footnote file.
  • In style book, footnotes are collected at the end of chapters. A later run of  hacha leaves them where they are. Footnotes in the title or author names are managed specially, they will normally appear at the end of the root file.

In case you wish to adopt a book-like behaviour for an article (footnotes at the end of sections), it suffices to insert \flushdef{section} in the document preamble.

We now give a few example of interaction between notes and cutting. We first consider normal behaviour. The page you are reading is a section page, since the current cutting unit is “section”. The current unit is “subsection”. The following two subsubsections are sent to their own files by the means of a \cutdef{subsubsection}/\cutend pair. As a result the text of footnotes appear at the end of the subsubsection pages.

The following two subsubsections are sent to their own files by the means of a \cutdef*{subsubsection}/\cutend* pair. As a result, the text of footnotes in the subsections appear at the end of the current section page.3

Finally, to send the footnotes in subsubsections to a separate web page, one should use a \cutdef{subsubsection}/\cutend pair (to create a proper buffer for subsubsection notes), redefine the flushing unit, and flush notes explicitly.

\cutdef{subsubsection}\flushdef{document}%
\subsubsection{...}
  ...
\footnoteflush{document}\cutend

3
Standard section footnote.
4
Sent at the end of cutname.html
5
Sent at the end of cutname.html

Previous Up Next hevea-2.09-manual/manual.haux0000644004317100512160000004335412204704177016216 0ustar marangetcristal\citation{html} \citation{htmlb} \@@addtocsec{htoc}{sec2}{-1}{\@print{Part A}\quad{}Tutorial{}} \newlabel{usermanual}{{A}{X}} \@@addtocsec{htoc}{getstarted}{0}{\@print{1}\quad{}How to get\label{getstarted} started{}} \new@anchor@label{sec3}{getstarted}{{1}{X}} \@@addtocsec{htoc}{sec4}{0}{\@print{2}\quad{}Style files{}} \@@addtocsec{htoc}{sec5}{1}{\@print{2.1}\quad{}Standard base styles{}} \@@addtocsec{htoc}{sec6}{1}{\@print{2.2}\quad{}Other base styles{}} \newlabel{otherbase}{{2.2}{X}} \@@addtocsec{htoc}{sec7}{1}{\@print{2.3}\quad{}Other style files{}} \@@addtocsec{htoc}{sec10}{0}{\@print{3}\quad{}A note on style{}} \@@addtocsec{htoc}{sec11}{1}{\@print{3.1}\quad{}Spacing, Paragraphs{}} \new@anchor@label{sec12}{spurious:par}{{3.1.1}{X}} \@@addtocsec{htoc}{sec14}{1}{\@print{3.2}\quad{}Math mode{}} \new@anchor@label{sec15}{spacemath}{{3.2.1}{X}} \newlabel{symbols}{{3.2.2}{X}} \newlabel{symbol:fig}{{1}{X}} \@@addtocsec{htoc}{sec19}{1}{\@print{3.3}\quad{}Warnings{}} \@@addtocsec{htoc}{sec20}{1}{\@print{3.4}\quad{}Commands{}} \@@addtocsec{htoc}{sec21}{1}{\@print{3.5}\quad{}Style choices{}} \newlabel{stylechoice}{{3.5}{X}} \@@addtocsec{htoc}{sec22}{0}{\@print{4}\quad{}How to detect and correct errors{}} \newlabel{trouble}{{4}{X}} \@@addtocsec{htoc}{sec23}{1}{\@print{4.1}\quad{}\hevea{} does not know a macro{}} \newlabel{dontknow}{{4.1}{X}} \@@addtocsec{htoc}{sec24}{1}{\@print{4.2}\quad{}\hevea{} incorrectly interprets a macro{}} \newlabel{blob}{{4.2}{X}} \newlabel{square:blob}{{4.2}{X}} \@@addtocsec{htoc}{sec25}{1}{\@print{4.3}\quad{}\hevea{} crashes{}} \@@addtocsec{htoc}{sec29}{0}{\@print{5}\quad{}Making \hevea{} and \LaTeX{} both happy{}} \newlabel{both}{{5}{X}} \@@addtocsec{htoc}{sec30}{1}{\@print{5.1}\quad{}File loading{}} \newlabel{fileloading}{{5.1}{X}} \newlabel{heveaonly}{{5.1}{X}} \@@addtocsec{htoc}{heveastyle}{1}{\@print{5.2}\quad{}The \label{heveastyle}\protect\texttt{hevea} package{}} \new@anchor@label{sec31}{heveastyle}{{5.2}{X}} \newlabel{why}{{5.2.2}{X}} \newlabel{heveabool}{{5.2.3}{X}} \citation{latex} \@@addtocsec{htoc}{sec35}{1}{\@print{5.3}\quad{}Comments{}} \newlabel{comments}{{5.3}{X}} \@@addtocsec{htoc}{imagen}{0}{\@print{6}\quad{}With\label{imagen} a little help from \LaTeX{}} \new@anchor@label{sec36}{imagen}{{6}{X}} \@@addtocsec{htoc}{image:file}{1}{\@print{6.1}\quad{}The \textit{image}\label{image:file} file{}} \new@anchor@label{sec37}{image:file}{{6.1}{X}} \@@addtocsec{htoc}{sec38}{1}{\@print{6.2}\quad{}A toy example{}} \@@addtocsec{htoc}{sec39}{1}{\@print{6.3}\quad{}Including Postscript images{}} \newlabel{substimage}{{6.3}{X}} \@@addtocsec{htoc}{sec40}{1}{\@print{6.4}\quad{}Using filters{}} \@@addtocsec{htoc}{hacha}{0}{\@print{7}\quad{}Cutting\label{hacha} your document into pieces with \hacha{}{}} \new@anchor@label{sec41}{hacha}{{7}{X}} \@@addtocsec{htoc}{sec42}{1}{\@print{7.1}\quad{}Simple usage{}} \newlabel{html:footer}{{7.1}{X}} \newlabel{hacha:style}{{7.1}{X}} \@@addtocsec{htoc}{sec43}{1}{\@print{7.2}\quad{}Advanced usage{}} \new@anchor@label{sec46}{table:link:style}{{7.2.3}{X}} \@@addtocsec{htoc}{sec49}{1}{\@print{7.3}\quad{}More Advanced Usage{}} \new@anchor@label{sec50}{cutname}{{7.3.1}{X}} \newlabel{answers}{{7.3.5}{X}} \new@anchor@label{sec57}{hachafoot}{{7.3.6}{X}} \@@addtocsec{htoc}{sec64}{0}{\@print{8}\quad{}Generating \html{} constructs{}} \@@addtocsec{htoc}{sec65}{1}{\@print{8.1}\quad{}High-Level Commands{}} \new@anchor@label{sec66}{hyperlink}{{8.1.1}{X}} \newlabel{urlareprocessed}{{8.1.1}{X}} \newlabel{color:high}{{8.1.2}{X}} \@@addtocsec{htoc}{imgsrc}{1}{\@print{8.2}\quad{}More on included\label{imgsrc} images{}} \new@anchor@label{sec68}{imgsrc}{{8.2}{X}} \@@addtocsec{htoc}{internal}{1}{\@print{8.3}\quad{}Internal \label{internal}macros{}} \new@anchor@label{sec69}{internal}{{8.3}{X}} \citation{html} \@@addtocsec{htoc}{rawhtml}{1}{\@print{8.4}\quad{}The \texttt{rawhtml}\label{rawhtml} environment{}} \new@anchor@label{sec71}{rawhtml}{{8.4}{X}} \@@addtocsec{htoc}{sec72}{1}{\@print{8.5}\quad{}Examples{}} \newlabel{getcolor:usage}{{8.5}{X}} \@@addtocsec{htoc}{encodings}{1}{\@print{8.6}\quad{}The \label{encodings}document charset{}} \new@anchor@label{sec73}{encodings}{{8.6}{X}} \@@addtocsec{htoc}{style:sheets}{0}{\@print{9}\quad{}Support\label{style:sheets}\index{style-sheets} for style sheets{}} \new@anchor@label{sec74}{style:sheets}{{9}{X}} \@@addtocsec{htoc}{sec75}{1}{\@print{9.1}\quad{}Overview{}} \citation{css} \@@addtocsec{htoc}{css:change:all}{1}{\@print{9.2}\quad{}Changing \label{css:change:all} the style of all instances of an environment{}} \new@anchor@label{sec76}{css:change:all}{{9.2}{X}} \@@addtocsec{htoc}{css:change}{1}{\@print{9.3}\quad{}Changing \label{css:change}the style of some instances of an environment{}} \new@anchor@label{sec77}{css:change}{{9.3}{X}} \newlabel{getstylecolor:example}{{9.3}{X}} \@@addtocsec{htoc}{whatclass}{1}{\@print{9.4}\quad{}Which class affects\label{whatclass} what{}} \new@anchor@label{sec78}{whatclass}{{9.4}{X}} \@@addtocsec{htoc}{sec79}{1}{\@print{9.5}\quad{}A few examples{}} \@@addtocsec{htoc}{sec83}{1}{\@print{9.6}\quad{}Miscellaneous{}} \@@addtocsec{htoc}{sec88}{0}{\@print{10}\quad{}Customising \hevea{}} \@@addtocsec{htoc}{sec89}{1}{\@print{10.1}\quad{}Simple changes{}} \@@addtocsec{htoc}{sec90}{1}{\@print{10.2}\quad{}Changing defaults for type-styles{}} \newlabel{customize-style}{{10.2}{X}} \@@addtocsec{htoc}{sec91}{1}{\@print{10.3}\quad{}Changing the interface of a command{}} \newlabel{customize-let}{{10.3}{X}} \@@addtocsec{htoc}{sec92}{1}{\@print{10.4}\quad{}Checking the optional argument within a command{}} \newlabel{fullepsfbox}{{10.4}{X}} \@@addtocsec{htoc}{sec93}{1}{\@print{10.5}\quad{}Changing the format of images{}} \@@addtocsec{htoc}{sec94}{1}{\@print{10.6}\quad{}Storing images in a separate directory{}} \@@addtocsec{htoc}{imagen-source}{1}{\@print{10.7}\quad{}Controlling\label{imagen-source} \texttt{imagen} from document source{}} \new@anchor@label{sec95}{imagen-source}{{10.7}{X}} \@@addtocsec{htoc}{alternative}{0}{\@print{11}\quad{}Other \label{alternative}output formats{}} \new@anchor@label{sec96}{alternative}{{11}{X}} \@@addtocsec{htoc}{sec97}{1}{\@print{11.1}\quad{}Text{}} \@@addtocsec{htoc}{sec98}{1}{\@print{11.2}\quad{}Info{}} \@@addtocsec{htoc}{sec99}{-1}{\@print{Part B}\quad{}Reference manual{}} \newlabel{referencemanual}{{B}{X}} \citation{latex} \@@addtocsec{htoc}{sec100}{0}{\@print{B.1}\quad{}Commands and Environments{}} \@@addtocsec{htoc}{sec101}{1}{\@print{B.1.1}\quad{}Command Names and Arguments{}} \@@addtocsec{htoc}{sec102}{1}{\@print{B.1.2}\quad{}Environments{}} \@@addtocsec{htoc}{sec103}{1}{\@print{B.1.3}\quad{}Fragile Commands{}} \@@addtocsec{htoc}{sec104}{1}{\@print{B.1.4}\quad{}Declarations{}} \@@addtocsec{htoc}{sec105}{1}{\@print{B.1.5}\quad{}Invisible Commands{}} \@@addtocsec{htoc}{sec106}{1}{\@print{B.1.6}\quad{}The \texttt{\char92\char92} Command{}} \@@addtocsec{htoc}{sec107}{0}{\@print{B.2}\quad{}The Structure of the Document{}} \newlabel{structure}{{B.2}{X}} \newlabel{metadef}{{B.2}{X}} \newlabel{exlet}{{B.2}{X}} \@@addtocsec{htoc}{sec108}{0}{\@print{B.3}\quad{}Sentences and Paragraphs{}} \@@addtocsec{htoc}{sec109}{1}{\@print{B.3.1}\quad{}Spacing{}} \@@addtocsec{htoc}{sec110}{1}{\@print{B.3.2}\quad{}Paragraphs{}} \@@addtocsec{htoc}{sec111}{1}{\@print{B.3.3}\quad{}Footnotes{}} \@@addtocsec{htoc}{accents}{1}{\@print{B.3.4}\quad{}Accents\label{accents} and special symbols{}} \new@anchor@label{sec112}{accents}{{B.3.4}{X}} \@@addtocsec{htoc}{sec113}{0}{\@print{B.4}\quad{}Sectioning{}} \@@addtocsec{htoc}{section:section}{1}{\@print{B.4.1}\quad{}\label{section:section}Sectioning Commands{}} \new@anchor@label{sec114}{section:section}{{B.4.1}{X}} \@@addtocsec{htoc}{appendix}{1}{\@print{B.4.2}\quad{}The \label{appendix}Appendix{}} \new@anchor@label{sec115}{appendix}{{B.4.2}{X}} \@@addtocsec{htoc}{sec116}{1}{\@print{B.4.3}\quad{}Table of Contents{}} \@addcontentsline{htoc}{1}{\ahrefloc{no:number}{Use \hacha{}}} \@@addtocsec{htoc}{sec118}{0}{\@print{B.5}\quad{}Classes, Packages and Page Styles{}} \@@addtocsec{htoc}{sec119}{1}{\@print{B.5.1}\quad{}Document Class{}} \@@addtocsec{htoc}{sec120}{1}{\@print{B.5.2}\quad{}Packages and Page Styles{}} \newlabel{usepackage}{{B.5.2}{X}} \@@addtocsec{htoc}{sec121}{1}{\@print{B.5.3}\quad{}The Title Page and Abstract{}} \@@addtocsec{htoc}{sec122}{0}{\@print{B.6}\quad{}Displayed Paragraphs{}} \@@addtocsec{htoc}{sec123}{1}{\@print{B.6.1}\quad{}Quotation and Verse{}} \@@addtocsec{htoc}{sec124}{1}{\@print{B.6.2}\quad{}List-Making environments{}} \@@addtocsec{htoc}{sec125}{1}{\@print{B.6.3}\quad{}The \protect\texttt{list} and \protect\texttt{trivlist} environments{}} \@@addtocsec{htoc}{sec126}{1}{\@print{B.6.4}\quad{}Verbatim{}} \@@addtocsec{htoc}{sec127}{0}{\@print{B.7}\quad{}Mathematical Formulae{}} \@@addtocsec{htoc}{sec128}{1}{\@print{B.7.1}\quad{}Math Mode Environment{}} \@@addtocsec{htoc}{sec129}{1}{\@print{B.7.2}\quad{}Common Structures{}} \@@addtocsec{htoc}{sec130}{1}{\@print{B.7.3}\quad{}Square Root{}} \@@addtocsec{htoc}{sec131}{1}{\@print{B.7.4}\quad{}Unicode and mathematical symbols{}} \@@addtocsec{htoc}{sec132}{1}{\@print{B.7.5}\quad{}Putting one thing above/below/inside{}} \@@addtocsec{htoc}{sec133}{1}{\@print{B.7.6}\quad{}Math accents{}} \newlabel{mathaccents}{{B.7.6}{X}} \@@addtocsec{htoc}{sec134}{1}{\@print{B.7.7}\quad{}Spacing{}} \newlabel{spacemathref}{{B.7.7}{X}} \@@addtocsec{htoc}{sec135}{1}{\@print{B.7.8}\quad{}Changing Style{}} \@@addtocsec{htoc}{sec136}{0}{\@print{B.8}\quad{}Definitions, Numbering{}} \@@addtocsec{htoc}{sec137}{1}{\@print{B.8.1}\quad{}Defining Commands{}} \newlabel{usermacro}{{B.8.1}{X}} \@@addtocsec{htoc}{sec138}{1}{\@print{B.8.2}\quad{}Defining Environments{}} \citation{latex} \@@addtocsec{htoc}{sec139}{1}{\@print{B.8.3}\quad{}Theorem-like Environments{}} \@@addtocsec{htoc}{sec140}{1}{\@print{B.8.4}\quad{}Numbering{}} \@@addtocsec{htoc}{sec141}{1}{\@print{B.8.5}\quad{}The \texttt{ifthen} Package{}} \newlabel{ifthen}{{B.8.5}{X}} \@@addtocsec{htoc}{sec142}{0}{\@print{B.9}\quad{}Figures and Other Floating Bodies{}} \@@addtocsec{htoc}{sec143}{0}{\@print{B.10}\quad{}Lining It Up in Columns{}} \@@addtocsec{htoc}{sec144}{1}{\@print{B.10.1}\quad{}The \protect\texttt{tabbing} Environment{}} \@@addtocsec{htoc}{sec145}{1}{\@print{B.10.2}\quad{}The \texttt{array} and \texttt{tabular} environments{}} \newlabel{arraydef}{{B.10.2}{X}} \citation{latexbis} \@@addtocsec{htoc}{sec146}{0}{\@print{B.11}\quad{}Moving Information Around{}} \@@addtocsec{htoc}{files}{1}{\@print{B.11.1}\quad{}\label{files}Files{}} \new@anchor@label{sec147}{files}{{B.11.1}{X}} \@@addtocsec{htoc}{cross-reference}{1}{\@print{B.11.2}\quad{}Cross-References\label{cross-reference}\label{cross}{}} \new@anchor@label{sec148}{cross-reference}{{B.11.2}{X}} \newlabel{cross}{{B.11.2}{X}} \@@addtocsec{htoc}{sec149}{1}{\@print{B.11.3}\quad{}Bibliography and Citations{}} \@@addtocsec{htoc}{sec151}{1}{\@print{B.11.4}\quad{}Splitting the Input{}} \@@addtocsec{htoc}{sec152}{1}{\@print{B.11.5}\quad{}Index and Glossary{}} \newlabel{index}{{B.11.5}{X}} \@@addtocsec{htoc}{sec153}{1}{\@print{B.11.6}\quad{}Terminal Input and Output{}} \@@addtocsec{htoc}{sec154}{0}{\@print{B.12}\quad{}Line and Page Breaking{}} \@@addtocsec{htoc}{sec155}{1}{\@print{B.12.1}\quad{}Line Breaking{}} \@@addtocsec{htoc}{sec156}{1}{\@print{B.12.2}\quad{}Page Breaking{}} \@@addtocsec{htoc}{sec157}{0}{\@print{B.13}\quad{}Lengths, Spaces and Boxes{}} \@@addtocsec{htoc}{sec158}{1}{\@print{B.13.1}\quad{}Length{}} \@@addtocsec{htoc}{sec159}{1}{\@print{B.13.2}\quad{}Space{}} \@@addtocsec{htoc}{sec160}{1}{\@print{B.13.3}\quad{}Boxes{}} \@@addtocsec{htoc}{sec161}{0}{\@print{B.14}\quad{}Pictures and Colours{}} \@@addtocsec{htoc}{sec162}{1}{\@print{B.14.1}\quad{}The \texttt{picture} environment and the \texttt{graphics} Package{}} \newlabel{graphics}{{B.14.1}{X}} \@@addtocsec{htoc}{sec163}{1}{\@print{B.14.2}\quad{}The \texttt{color} Package{}} \newlabel{color}{{B.14.2}{X}} \newlabel{color:package}{{B.14.2}{X}} \newlabel{bgcolor}{{B.14.2.1}{X}} \newlabel{getcolor}{{B.14.2.2}{X}} \citation{css} \@@addtocsec{htoc}{sec166}{0}{\@print{B.15}\quad{}Font Selection{}} \@@addtocsec{htoc}{sec167}{1}{\@print{B.15.1}\quad{}Changing the Type Style{}} \newlabel{type-style}{{B.15.1}{X}} \@@addtocsec{htoc}{sec168}{1}{\@print{B.15.2}\quad{}Changing the Type Size{}} \@@addtocsec{htoc}{sec169}{1}{\@print{B.15.3}\quad{}Special Symbols{}} \@@addtocsec{htoc}{sec170}{0}{\@print{B.16}\quad{}Extra Features{}} \citation{latex} \@@addtocsec{htoc}{sec171}{1}{\@print{B.16.1}\quad{}\TeX{} macros{}} \newlabel{texmacro}{{B.16.1}{X}} \newlabel{texmacros}{{B.16.1.1}{X}} \newlabel{texcond}{{B.16.1.4}{X}} \@@addtocsec{htoc}{sec177}{1}{\@print{B.16.2}\quad{}Command Definition inside Command Definition{}} \@@addtocsec{htoc}{sec178}{1}{\@print{B.16.3}\quad{}Date and time{}} \@@addtocsec{htoc}{fancysection}{1}{\@print{B.16.4}\quad{}Fancy \label{fancysection}sectioning commands{}} \new@anchor@label{sec179}{fancysection}{{B.16.4}{X}} \@@addtocsec{htoc}{winfonts}{1}{\@print{B.16.5}\quad{}Targeting \label{winfonts}Windows{}} \new@anchor@label{sec180}{winfonts}{{B.16.5}{X}} \@@addtocsec{htoc}{sec181}{0}{\@print{B.17}\quad{}Implemented Packages{}} \newlabel{implemented:package}{{B.17}{X}} \citation{latexbis} \@@addtocsec{htoc}{sec182}{1}{\@print{B.17.1}\quad{}AMS compatibility{}} \citation{latexbis} \citation{latexbis} \citation{latexbis} \@@addtocsec{htoc}{sec183}{1}{\@print{B.17.2}\quad{}The \texttt{array} and \texttt{tabularx} packages{}} \newlabel{arraypack}{{B.17.2}{X}} \citation{latexbis} \newlabel{arraytable}{{1}{X}} \citation{latexbis} \@@addtocsec{htoc}{calc}{1}{\@print{B.17.3}\quad{}The \texttt{calc}\label{calc} package{}} \new@anchor@label{sec184}{calc}{{B.17.3}{X}} \citation{latexbis} \@@addtocsec{htoc}{inputenc}{1}{\@print{B.17.4}\quad{}Specifying \label{inputenc}the document input encoding, the \texttt{inputenc} package{}} \new@anchor@label{sec185}{inputenc}{{B.17.4}{X}} \@@addtocsec{htoc}{sec186}{1}{\@print{B.17.5}\quad{}More symbols{}} \@@addtocsec{htoc}{commentpack}{1}{\@print{B.17.6}\quad{}The \texttt{comment}\label{commentpack} package{}} \new@anchor@label{sec187}{commentpack}{{B.17.6}{X}} \@@addtocsec{htoc}{multind}{1}{\@print{B.17.7}\quad{}Multiple Indexes with the \texttt{index} and \texttt{multind}\label{multind} packages{}} \new@anchor@label{sec188}{multind}{{B.17.7}{X}} \@@addtocsec{htoc}{sec189}{1}{\@print{B.17.8}\quad{}``Natural'' bibliographies, the \texttt{natbib} package {}} \@@addtocsec{htoc}{sec190}{1}{\@print{B.17.9}\quad{}Multiple bibliographies{}} \@@addtocsec{htoc}{sec193}{1}{\@print{B.17.10}\quad{}Support for \texttt{babel}{}} \@@addtocsec{htoc}{urlpackage}{1}{\@print{B.17.11}\quad{}The \label{urlpackage}\texttt{url} package{}} \new@anchor@label{sec197}{urlpackage}{{B.17.11}{X}} \@@addtocsec{htoc}{sec198}{1}{\@print{B.17.12}\quad{}Verbatim text: the \texttt{moreverb} and \texttt{verbatim} packages{}} \@@addtocsec{htoc}{listings:package}{1}{\@print{B.17.13}\quad{}Typesetting \label{listings:package}computer languages: the \texttt{listings} package{}} \new@anchor@label{sec199}{listings:package}{{B.17.13}{X}} \@@addtocsec{htoc}{sec200}{1}{\@print{B.17.14}\quad{}(Non-)Multi page tabular material{}} \citation{latexbis} \@@addtocsec{htoc}{mathpartir:package}{1}{\@print{B.17.15}\quad{}Typesetting inference rules: the \label{mathpartir:package} \aname{mathpartir}{\texttt{mathpartir}} package{}} \new@anchor@label{sec201}{mathpartir:package}{{B.17.15}{X}} \@@addtocsec{htoc}{sec206}{1}{\@print{B.17.16}\quad{}The \texttt{ifpdf} package{}} \@@addtocsec{htoc}{sec207}{1}{\@print{B.17.17}\quad{}Typesetting Thai{}} \@@addtocsec{htoc}{sec208}{1}{\@print{B.17.18}\quad{}Hanging paragraphs{}} \@@addtocsec{htoc}{sec209}{1}{\@print{B.17.19}\quad{}The \texttt{cleveref} package{}} \@@addtocsec{htoc}{sec210}{1}{\@print{B.17.20}\quad{}Other packages{}} \@@addtocsec{htoc}{practical}{-1}{\@print{Part C}\quad{}Practical \label{practical}information{}} \new@anchor@label{sec211}{practical}{{C}{X}} \@@addtocsec{htoc}{sec212}{0}{\@print{C.1}\quad{}Usage{}} \@@addtocsec{htoc}{sec213}{1}{\@print{C.1.1}\quad{}\hevea{} usage{}} \newlabel{heveausage}{{C.1.1}{X}} \newlabel{comline}{{C.1.1.1}{X}} \newlabel{search:path}{{C.1.1.1}{X}} \newlabel{basenames}{{C.1.1.2}{X}} \new@anchor@label{sec217}{heveaoptions}{{C.1.1.4}{X}} \@@addtocsec{htoc}{sec218}{1}{\@print{C.1.2}\quad{}\hacha{} usage{}} \@@addtocsec{htoc}{sec219}{1}{\@print{C.1.3}\quad{}\texttt{esponja} usage{}} \newlabel{esponjausage}{{C.1.3}{X}} \newlabel{esponjaoptions}{{C.1.3.2}{X}} \@@addtocsec{htoc}{bibhva}{1}{\@print{C.1.4}\quad{}\texttt{bibhva}\label{bibhva} usage{}} \new@anchor@label{sec222}{bibhva}{{C.1.4}{X}} \@@addtocsec{htoc}{sec223}{1}{\@print{C.1.5}\quad{}\texttt{imagen} usage{}} \newlabel{imagenusage}{{C.1.5}{X}} \@@addtocsec{htoc}{sec224}{1}{\@print{C.1.6}\quad{}Invoking \texttt{hevea}, \texttt{hacha} and \texttt{imagen}{}} \@@addtocsec{htoc}{makefile}{1}{\@print{C.1.7}\quad{}Using \label{makefile}\texttt{make}{}} \new@anchor@label{sec225}{makefile}{{C.1.7}{X}} \@@addtocsec{htoc}{browser}{0}{\@print{C.2}\quad{}Browser \label{browser}configuration{}} \new@anchor@label{sec226}{browser}{{C.2}{X}} \@@addtocsec{htoc}{sec227}{0}{\@print{C.3}\quad{}Availability{}} \@@addtocsec{htoc}{sec228}{1}{\@print{C.3.1}\quad{}Internet stuff{}} \@@addtocsec{htoc}{sec229}{1}{\@print{C.3.2}\quad{}Law{}} \@@addtocsec{htoc}{sec230}{0}{\@print{C.4}\quad{}Installation{}} \@@addtocsec{htoc}{sec231}{1}{\@print{C.4.1}\quad{}Requirements{}} \newlabel{requirements}{{C.4.1}{X}} \newlabel{imagen:needs}{{C.4.1}{X}} \@@addtocsec{htoc}{sec232}{1}{\@print{C.4.2}\quad{}Principles{}} \@@addtocsec{htoc}{sec233}{0}{\@print{C.5}\quad{}Other \LaTeX{} to \html{} translators{}} \citation{htmlgen} \@@addtocsec{htoc}{sec234}{0}{\@print{C.6}\quad{}Acknowledgements{}} \@addcontentsline{htoc}{0}{\ahrefloc{@biblio}{\refname}} \bibcite{latexbis}{\LaTeX-bis} \bibcite{latex}{\LaTeX} \bibcite{htmlgen}{htmlgen} \bibcite{html4}{HTML-4.0} \bibcite{html}{HTML-5a} \bibcite{htmlb}{HTML-5b} \bibcite{css}{CSS-2} \@addcontentsline{htoc}{0}{\ahrefloc{@index}{Index}} hevea-2.09-manual/manual014.html0000644004317100512160000000146112204704202016420 0ustar marangetcristal Another cut subsubsection Previous Up

7.3.10  Another cut subsubsection

Another note in a subsubsection, flushed at sections.5


Previous Up hevea-2.09-manual/manual028.html0000644004317100512160000001261612204704202016431 0ustar marangetcristal Displayed Paragraphs Previous Up Next

B.6  Displayed Paragraphs

Displayed-paragraph environments translate to block-level elements.

In addition to the environments described in this section, HEVEA implements the center, flushleft and flushright environments. HEVEA also implements the corespondant TEX style declaration \centering \raggedright and \raggedleft, but these declarations may not work as expected, when they do not appear directly inside a displayed-paragraph environment or inside an array element.

B.6.1  Quotation and Verse

The quote and quotation environments are the same thing: they translate to BLOCKQUOTE elements. The verse environment is not supported.

B.6.2  List-Making environments

The itemize, enumerate and description environments translate to the ul, ol, and DL elements and this is the whole story.

As a consequence, no control is allowed on the appearances of these environments. More precisely optional arguments to \item do not function properly inside itemize and enumerate. Moreover, item labels inside itemize or numbering style inside enumerate are browser dependent.

However, customized lists can be produced by using the the list environment (see next section).

B.6.3  The list and trivlist environments

The list environment translates to the DL element. Arguments to \begin{list} are handled as follows:

  \begin{list}{default_label}{decls}

The first argument default_label is the label generated by an \item command with no argument. The second argument, decls is a sequence of declarations. In practice, the following declarations are relevant:

\usecounter{counter}
The counter counter is incremented by \refstepcounter by every \item command with no argument, before it does anything else.
\renewcommand{\makelabel}[1]{}
The command \item executes \makelabel{label}, where label is the item label, to print its label. Thus, users can change label formatting by redefining \makelabel. The default definition of \makelabel simply echoes label.

As an example, a list with an user-defined counter can be defined as follows:

\newcounter{coucou}
\begin{list}{\thecoucou}{%
\usecounter{coucou}%
\renewcommand{\makelabel}[1]{\textbf{#1}.}}
...
\end{list}

This yields:

1.
First item.
2.
Second item.

The trivlist environment is also supported. It is equivalent to the description environment.

B.6.4  Verbatim

The verbatim and verbatim* environments translate to the PRE element. Inside verbatim*, spaces are replaced by underscores (“_”).

Similarly, \verb and \verb* translate to the CODE text element.

The alltt environment is supported.


Previous Up Next hevea-2.09-manual/manual027.html0000644004317100512160000001373412204704202016432 0ustar marangetcristal Classes, Packages and Page Styles Previous Up Next

B.5  Classes, Packages and Page Styles

B.5.1  Document Class

Both LATEX 2є \documentclass and old LATEX \documentstyle are accepted. Their argument style is interpreted by attempting to load a style.hva file. Presently, only the style files article.hva, seminar.hva, book.hva and report.hva exist, the latter two being equivalent.

If one of the recognized styles has already been loaded at the time when \documentclass or \documentstyle is executed, then no attempt to load a style file is made. This allows to override the document style file by giving one of the four recognized style files of HEVEA as a command line argument (see 2.2).

Conversely, if HEVEA attempt to load style.hva fails, then a fatal error is flagged, since it can be sure that the document cannot be processed.

B.5.2  Packages and Page Styles

HEVEA reacts to \usepackage[options]{pkg} in the following way:

  1. The whole \usepackage command with its arguments gets echoed to the image file (see 6).
  2. HEVEA attempt to load file pkg.hva, (see section C.1.1.1 on where HEVEA searches for files).

Note that HEVEA will not fail if it cannot load pkg.hva and that no warning is issued in that case.

The HEVEA distribution contains implementations of some packages, such as verbatim, colors, graphics, etc.

In some situations it may not hurt at all if HEVEA does not implement a package, for instance HEVEA does not provide an implementation for the fullpage package.

Users needing an implementation of a package that is widely used and available are encouraged to contact the author. Experienced users may find it fun to attempt to write package implementations by themselves.

B.5.3  The Title Page and Abstract

All title related commands exist, with the following peculiarities:

  • The argument to the \title command appears in the html document header. As a consequence, titles should remain simple. Normal design (as regards HEVEA) is for \title to occur in the document preamble, so that the title is known at the time when the document header is emitted (while processing \begin{document}). However, there are two subtleties.

    If no \title command occurs in document preamble and that one \title command appears in the document, then the title is saved into the .haux file for a next run of HEVEA to put it in the html document header.

    If \title commands are present both in preamble and after \begin{document}, then the former takes precedence.

  • When not present the date is left empty. The \today command generates will work properly only if hevea is invoked with the -exec xxdate.exe option. Otherwise \today generates nothing and a warning is issued.

The abstract environment is present is all base styles, including the book style. The titlepage environment does nothing.


Previous Up Next hevea-2.09-manual/manual008.html0000644004317100512160000003356712204704202016437 0ustar marangetcristal With a little help from LATEX Previous Up Next

6  With a little help from LATEX

Sometimes, HEVEA just cannot process its input, but it remains acceptable to have LATEX process it, to produce an image from LATEX output and to include a link to this image into HEVEA output. HEVEA provides a limited support for doing this.

6.1  The image file

While outputting doc.html, HEVEA echoes some of its input to the image file, doc.image.tex. Part of this process is done at the user’s request. More precisely, the following two constructs send text to the image file:

\begin{toimage}
text
\end{toimage}
 
%BEGIN IMAGE
text
%END IMAGE

Additionally, \usepackage commands, top-level and global definitions are automatically echoed to the image file. This enables using document-specific commands in text above.

Output to the image file builds up a current page, which is flushed by the \imageflush command. This command has the following effect: it outputs a strict page break in the image file, increments the image counter and output a <img src="pagename.png"> tag in HEVEA output file, where pagename is build from the image counter and HEVEA output file name. Then the imagen script has to be run by:

# imagen doc

This will process the doc.image.tex file through LATEX, dvips, ghostscript and a few others tools, which must all be present (see section C.4.1), finally producing one pagename.png file per page in the image file.

The usage of imagen is described at section C.1.5. Note that imagen is a simple shell script. Unix users can pass hevea the command-line option -fix. Then hevea will itself call imagen, when appropriate.

6.2  A toy example

Consider the “blob” example from section 4.2. Here is the active part of a blob.tex file:

 \newcommand{\blob}{\rule[.2ex]{1ex}{1ex}}
 \blob\ Blob \blob

This time, we would like \blob to produce a small black square, which \rule[.2ex]{1ex}{1ex} indeed does in LATEX. Thus we can write:

 \newcommand{\blob}{%
 \begin{toimage}\rule[.2ex]{1ex}{1ex}%
 \end{toimage}%
 \imageflush}
 \blob\ Blob \blob

Now we issue the following two commands:

 # hevea blob.tex
 # imagen blob

And we get:

Blob

Observe that the trick can be used to replace missing symbols by small .png images. However, the cost may be prohibitive, text rendering is generally bad, fine placement is ignored and font style changes are problematic. Cost can be lowered using \savebox, but the other problems remain.

6.3  Including Postscript images

In this section, a technique to transform included Postscript images into included bitmap images is described. Note that this technique is used by HEVEA implementation of the graphics package (see section B.14.1), which provides a more standard manner to include Postscript images in LATEX documents.

Included images are easy to manage: it suffices to let LATEX do the job. Let round.ps be a Postscript file, which is included as an image in the source file round.tex (which must load the epsf package):

 \begin{center}
 \epsfbox{round.ps}
 \end{center}

Then, HEVEA can have this image translated into a inlined (and centered) .png image by modifying source as follows:

 \begin{center}
 %BEGIN IMAGE
 \epsfbox{round.ps}
 %END IMAGE
 %HEVEA\imageflush
 \end{center}

(Note that the round.tex file still can be processed by LATEX, since comment equivalents of the toimage environment are used and that the \imageflush command is inside a %HEVEA comment — see section 5.3.)

Then, processing round.tex through HEVEA and imagen yields:

It is important to notice that things go smoothly because the \usepackage{epsf} command gets echoed to the image file. In more complicated cases, LATEX may fail on the image file because it does not load the right packages or define the right macros.

However, the above solution implies modifying the original LATEX source code. A better solution is to define the \epsfbox command, so that HEVEA echoes \epsfbox and its argument to the image file and performs \imageflush:

 \newcommand{\epsfbox}[1]{%
 \begin{toimage}
 \epsfbox{#1}
 \end{toimage}
 \imageflush}

Such a definition must be seen by HEVEA only. So, it is best put in a separate file whose name is given as an extra argument on HEVEA command-line (see section 5.1). Putting it in the document source protected inside an %HEVEA comment is a bad idea, because it might then get echoed to the image file and generate trouble when LATEX is later run by imagen.

Observe that the above definition of \epsfbox is a definition and not a redefinition (i.e. \newcommand is used and not \renewcommand), because HEVEA does not know about \epsfbox by default. Also observe that this not a recursive definition, since commands do not get expanded inside the toimage environment.

Finally, if the Postscript image is produced from a bitmap, it is a pity to translate it back into a bitmap. A better idea is first to generate a PNG file from the bitmap source independantly and then to include a link to that PNG file in html output, see section 8.2 for a description of this more adequate technique.

6.4  Using filters

Some programs extend LATEX capabilities using a filter principle. In such a scheme, the document contains source fragments for the program. A first run of the program on LATEX source changes these fragments into constructs that LATEX (or a subsequent stage in the paper document production chain, such as dvips) can handle. Here again, the rule of the game is keeping HEVEA away from the normal process: first applying the filter, then making HEVEA send the filter output to the image file, and then having imagen do the job.

Consider the gpic filter, for making drawings. Source for gpic is enclosed in .PS.PE, then the result is available to subsequent LATEX source as a TEX box \box\graph. For instance the following source, from a smile.tex file, draws a “Smile!” logo as a centered paragraph:

 .PS
 ellipse "{\Large\bf Smile!}"
 .PE
 \begin{center}
 ~\box\graph~
 \end{center}

Both the image description (.PS.PE) and usage (\box\graph) are for the image file, and they should be enclosed by %BEGIN IMAGE%END IMAGE comments. Additionally, the image link is put where it belongs by an \imageflush command:

 %BEGIN IMAGE
 .PS
 ellipse "{\Large\bf Smile!}"
 .PE
 %END IMAGE
 \begin{center}
 %BEGIN IMAGE
 ~\box\graph~
 %END IMAGE
 %HEVEA\imageflush
 \end{center}

The gpic filter is applied first, then come hevea and imagen:

 # gpic -t < smile.tex > tmp.tex
 # hevea tmp.tex -o smile.html
 # imagen smile

And we get:

Observe how the -o argument to HEVEA is used and that imagen argument is HEVEA output basename (see section C.1.1.2 for the full definition of HEVEA output basename).

In the gpic example, modifying user source cannot be totally avoided. However, writing in a generic style saves typing. For instance, users may define the following environment for centered gpic pictures in LATEX:

 \newenvironment{centergpic}{}{\begin{center}~\box\graph~\end{center}}

Source code will now be as follows:

 \begin{centergpic}
 .PS
 ellipse "{\Large\bf Smile!}"
 .PE
 \end{centergpic}

HEVEA will process this source correctly, provided it is given its own definition for the centergpic environment beforehand:

 \newenvironment{centergpic}
   {\begin{toimage}}
   {\box\graph\end{toimage}\begin{center}\imageflush\end{center}}

Assuming that the definition above is in a smile.hva file, the command sequence for translating smile.tex now is:

 # gpic -t < smile.tex > tmp.tex
 # hevea smile.hva tmp.tex -o smile.html
 tmp.tex:5: Warning: ignoring definition of \centergpic
 tmp.tex:5: Warning: not defining environment centergpic
 # imagen smile

The warnings above are normal: they are issued when HEVEA runs across the LATEX-intended definition of the centergpic environment and refuses to override its own definition for that environment.


Previous Up Next hevea-2.09-manual/sectioning.html0000644004317100512160000001650212204704202017062 0ustar marangetcristal Sectioning Previous Up Next

B.4  Sectioning

B.4.1  Sectioning Commands

Sectioning commands from \part down to \subparagraph are defined in base style files. They accept an optional argument and have starred versions.

The non-starred sectioning commands from \part down to \subsubsection show section numbers in sectional unit headings, provided their level is greater than or equal to the current value of the secnumdepth counter. Sectional unit levels and the default value of the secnumdepth counter are the same as in LATEX. Furthermore, given a sectional unit secname, the counter secname exists and the appearance of sectional units numbers can be changed by redefining \thesecname. For instance, the following redefinition turn the numbering of chapters into alphabetic (uppercase) style:

\renewcommand{\thechapter}{\Alph{chapter}}

When jumping to anchors, browsers put the targeted line on top of display. As a consequence, in the following code:

\section{A section}
\label{section:section}
 ...
See Section~\ref{section:section}

Clicking on the link produced by \ref{section:section} will result in not displaying the targeted section title. A fix is writing:

\section{\label{section:section}A section}
 ...
See Section~\ref{section:section}

Starting with version 2.04, HEVEA and HACHA will use the label name (section:section above) for the table of contents they generate. For instance, the source code for the next sectioning command just below is:

\subsection{The \label{appendix}Appendix}

As a consequence, the link to the next section on top of this page should read as:

<a href="sectioning.html#appendix">The Appendix</a>

That is, HEVEA used the label name given in source as an anchor. Notice that this behaviour applies to the \label command that occurs first in the sectioning command argument.

B.4.2  The Appendix

The \appendix command exists and should work as in LATEX.

B.4.3  Table of Contents

HEVEA now generates a table of contents, using a procedure similar to the one of LATEX(a .htoc file is involved). One inserts this table of contents in the main document by issuing the command \tableofcontents. Table of contents is controlled by the counter tocdepth. By default, the table of contents shows sectioning units down to the subsubsection level in article style and down to the subsection level in book (or report) style. To include more or less sectioning units in the table of contents, one should increase or decrease the tocdepth counter. It is important to notice that HEVEA produces such a table of contents, only when it has total control over cross-references. More precisely, HEVEA cannot produce the table of contents when it reads LATEX-produced .aux files. Instead, it should read its own .haux files. This will naturally occur if no .aux files are present, otherwise these .aux files should be deleted, or HEVEA should be instructed not to read them with the command-line option -fix (see Sections B.11.1 and  C.1.1.4).

One can also add extra entries in the table of contents by using the command \addcontentslines, in a way similar to LATEX homonymous command. However, hyperlinks need to be introduced explicitly, as in the following example, where an anchor is defined in the section title and referred to in the argument to \addcontentsline:

\subsection*{\aname{no:number}{Use \hacha{}}}
\addcontentsline{toc}{subsection}{\ahrefloc{no:number}{Use \hacha{}}}

(See Section 8.1.1 for details on commands related to hyperlinks.)

There is no list of figures nor list of tables.

Use HACHA

However, HEVEA has a more sophisticated way of producing a kind of map w.r.t. the sectioning of the document. A later run of HACHA on HEVEA output file splits it in smaller files organized in a tree whose nodes are tables of links. By contrast with LATEX, starred sectioning commands generate entries in these tables of contents. Table of contents entries hold the optional argument to sectioning commands or their argument when there is no optional argument. Section 7 explains how to control HACHA.


Previous Up Next hevea-2.09-manual/manual041.html0000644004317100512160000010446712204704202016432 0ustar marangetcristal Usage Up Next

C.1  Usage

C.1.1  HEVEA usage

The hevea command has two operating modes, normal mode and filter mode. Operating mode is determined by the nature of the last command-line argument.

C.1.1.1  Command line arguments

The hevea command interprets its arguments as names of files and attempts to process them. Given an argument filename there are two cases:

  • If filename is base.tex or base.hva, then a single attempt to open filename is made.
  • In other cases, a first attempt to open filename.tex is made. In case of failure, a second attempt to open filename is made.

In all attempts, implicit filenames are searched along hevea search path, which consist in:

  1. the current directory “.”,
  2. user-specified directories (with the -I command-line option),
  3. hevea library directory.
  4. one of the sub-directories html, text or info from hevea library directory, depending upon hevea output format,

The hevea library directory is fixed at compile-time (this is where hevea library files are installed) and typically is /usr/local/lib/hevea. However, this compile-time value can be overridden by setting the HEVEADIR shell environment variable. In all cases, the value of hevea library directory can be accessed from the processed document as the value of the command \@hevealibdir.

C.1.1.2  Normal mode

If the last argument has an extension that is different from .hva or has no extension, then it is interpreted as the name of the main input file. The main input file is the document to be translated and normally contains the \documentclass command. In that case two basenames are defined:

  • The input basename, basein, is defined as the main input file name, with extension removed when present.
  • The output basename, baseout, is basein with leading directories omitted. However the output basename can be changed, using the -o option (see below).

HEVEA will attempt to load the main input file. Ancillary files from a previous run of LATEX (i.e. .aux, .bll and .idx files) will be searched as basein.ext. The output base name governs all files produced by HEVEA. That is, html output of HEVEA normally goes to the file baseout.html, while cross-referencing information goes into baseout.haux. Furthemore, if an image file is generated (cf. section 6), its name will be baseout.image.tex.

Thus, in the simple case where the hevea command is invoked as:

# hevea file.tex

The input basename is file and the output basename also is file. The main input file is searched once along hevea search path as file.tex. html output goes into file file.html, in the current directory. In the more complicated case where the hevea command is invoked as:

# hevea ./dir/file

The input base name is ./dir/file and the output basename is file. The main input file is loaded by first attempting to open file ./dir/file.tex, then file ./dir/file. html output goes into file file.html, in the current directory.

Finally, the output base name can be a full path, but you have to use option -o. For instance, we consider:

# hevea -o out/out.html file.tex

Then, html output goes into out/out.html — notice that directory out must exist. Furthermore, hevea output base name is out/out. This means that hevea generates files out/out.haux, out/out.image.tex etc.

The article.hva, seminar.hva, book.hva and report.hva base style files from HEVEA library are special. Only the first base style file is loaded and the \documentclass command has no effect when a base style file is already loaded. This feature allows to override the document base style. Thus, a document file.tex can be translated using the article base style as follows:

# hevea article.hva file.tex

C.1.1.3  Filter mode

If there is no command-line argument, or if the last command-line argument has the extension .hva, then there is neither input base name nor output base name, the standard input is read and output normally goes to the standard output. Output starts immediately, whithout waiting for \begin{document}. In other words hevea acts as a filter.

Please note that this operating mode is just for translating isolated LATEX constructs. The normal way to translate a full document file.tex being “hevea file.tex” and not “hevea < file.tex > file.html”.

C.1.1.4  Options

The hevea command recognises the following options:

-version
Show hevea version and exit.
-v
Verbose flag, can be repeated to increase verbosity. However, this is mostly for debug.
-dv
Add border around some of the block-level elements issued. Specifically, all div and p are bordered, while the structure of displayed material is also shown.
-s
Suppress warnings.
-I dirname
Add dirname to the search path.
-o name
Make name the output basename. However, if name is base.html, then the output basename is base. Besides, -o - makes HEVEA output to standard output.
-e filename
Prevent hevea from loading any file whose name is filename. Note that this option applies to all files, including hevea.hva and base style files.
-fix
Iterate HEVEA until a fixpoint is found. Additionally, images get generated automatically.
-O
Optimise html by calling esponja (see section C.1.3).
-exec prog
Execute file prog and read the output. The file prog must have execution permission and is searched by following the searching rules of hevea.
-francais
Deprecated by babel support. This option issues a warning message.
-help
Print version number and a short help message.

The following options control the html code produced by hevea. By default, hevea outputs a page encoded in US-ASCII with most symbols rendered as html or numerical Unicode entities.

-entities
Render symbols by using entities. This is the default.
-textsymbols
Render symbols by English text.
-moreenties
Enable the output of some infrequent entities. Use this option to target browsers with wide entities support.
-mathml
Produces MathML output for equations, very experimental.
-pedantic
Be strict in interpreting html definition. In particular, this option disable size and color changes inside <PRE></PRE>, which are otherwise performed.

The following options select and control alternative output formats (see section 11):

-text
Output plain text. Output file extension is .txt.
-info
Output info format. Output file extension is .info.
-w width
Set the line width for text or info output, defaults to 72.

Part A of this document is a tutorial introduction to HEVEA, while Part B is the reference manual of HEVEA.

C.1.2  HACHA usage

The hacha command interprets its argument base.html as the name of a html source file to cut into pieces.

It also recognises the following options:

-v
Be a little verbose.
-o filename
Make HACHA output go into file filename (defaults to index.html). Additionally, if filename is a composite filename, dir/base, then all files outputted by HACHA will reside in directory dir.
-tocbis
Another style for table of contents: sub-tables are replicated at the beginning of every file.
-tocter
Like -tocbis above, except that sub-tables do not appear in the main table of contents (see Section 7.2.3).
-nolinks
Do not insert Previous/Up/Next links in generated pages.
-hrf
Output a base.hrf file, showing in which output files are the anchors from the input file gone. The format of this summary is one “anchor\tfile” line per anchor. This information may be needed by other tools.
-help
Print version number and a short help message.

Section 7 of the user manual explains how to alter HACHA default behaviour.

C.1.3  esponja usage

The program esponja is part of HEVEA and is designed to optimise hevea output. However, esponja can also be used alone to optimise text-level elements in html files. Since esponja fails to operate when it detects incorrect html, it can be used as a partial html validator.

C.1.3.1  Operating mode

The program esponja interprets its arguments as names of files and attempt to process them. It is important to notice that esponja will replace files by their optimised versions, unless instructed not to do so with option -n.

Invoking esponja as

# esponja foo.html

will alter foo.html. Of course, if esponja does not succeed in making foo.html any smaller or if esponja fails, the original foo.html is left unchanged. Note that this feature allows to optimise all html files in a given directory by:

# esponja *.html

C.1.3.2  Options

The command esponja recognises the following options:

-v
Be verbose, can be repeated to increase verbosity.
-n
Do not alter input files. Instead, esponja output for file input.html goes to file input.esp. Option -n implies option -v.
-u
Output esponja intermediate version of html. In most occasions, this amounts to pessimize instead of to optimise. It may yield challenging input for other html optimisers.

C.1.4  bibhva usage

The program bibhva is a simple wrapper, which basically forces bibtex into accepting a .haux file as input and producing a .hbbl file as output. Usage is bibhva bibtex-options basename.

C.1.5  imagen usage

The command imagen is a simple shell script that translates a LATEX document into many .png images. The imagen script relies on much software to be installed on your computer, see Section C.4.1.

It is a companion program of HEVEA, which must have been previously run as:

# heveabase.tex
or
# hevea-o base.html

In both cases, base is HEVEA output basename. When told to do so (see section 6) HEVEA echoes part of its input into the base.image.tex file.

The imagen script should then be run as:

# imagen base

The imagen script produces one basennn.png image file per page in the base.image.tex file.

This is done by first calling latex on base.image.tex, yielding one dvi file. Then, dvips translates this file into one single Postscript file that contains all the images, or into one Postscript file per image, depending upon your version of dvips. Postscript files are interpreted by ghostscript (gs) that outputs ppm images, which are then fed into a series of transformations that change them into .png files.

The imagen script recognises the following options:

-mag nnnn
Change the enlarging ratio that is applied while translating DVI into Postscript. More precisely, dvips is run with -xnnnn option. Default value for this ration is 1414, this means that, by default, imagen magnifies LATEX output by a factor of 1.414.
-extra command
Insert command as an additional stage in imagen ppm to png production chain. command is an Unix filter that expects a ppm image in its standard input and outputs a ppm image on its standard output. A sensible choice for command is one command from the netpbm package, several such commands piped together, or various invocations of the convert command from ImageMagick.
-quant number
Add an extra color quantisation step in imagen ppm image production chain, where number is the maximal number of colors in the produced images. This option may be needed as a response to a failure in the image production chain. It can also help in limiting image files size.
-png
Output PNG images. This is the default.
-gif
Output GIF images in place of PNG images. GIF image files have a .gif extension. Note that hevea should have been previously run as hevea gif.hva base.tex (so that the proper .gif filename extension is given to image file references from within the html document).
-pnm
Output PPM images. This option mostly serves debugging purposes. Experimented users can also take advantage of it for performing additional image transformation or adopting exotic image formats.
-t arg
Pass option “-t arg” to dvips. For instance, using “-t a3” may help when images are truncated on the right.
-pdf
Have imagen call pdflatex instead of latex.

The first three options enable users to correct some misbehaviours. For instance, when the document base style is seminar, image orientation may be wrong and the images are too small. This can be cured by invoking imagen as:

# imagen -extra "pnmflip -ccw" -mag 2000 base

Notice that hevea calls imagen by itself, when given the command-line option -fix. In that situation, the command-line options of imagen can be controlled from source file by using the command \@addimagenopt (see Section 10.7).

C.1.6  Invoking hevea, hacha and imagen

In this section, we give a few sequence of (Unix) commands to build the html version of a document in various situations. The next section gives a few Makefile’s for similar situations.

We translate a file doc.tex that requires a specific style file doc.hva. The file is first translated into doc.html by hevea, which also reads the specific style file doc.hva. Then, hacha cuts doc.html into several, doc001.html, doc002.html, etc. also producing the table of links file index.html.

# hevea -fix doc.hva doc.tex
# hacha doc.html

Thanks to the command-line option -fix, hevea runs the appropriate number of times automatically. In case hevea produces a non-empty doc.image.tex file, then hevea calls imagen by itself (because of option -fix). Hence, the above sequence of two commands is also appropriate in that situation.

In case some problem occurs, it is sometime convenient to run imagen by hand. It is time not to use the option -fix.

# rm -f doc.image.tex
# hevea doc.hva doc.tex

Now, hevea normally has shown the imagen command line that it would have run, if it had been given the option -fix. For instance, if doc.hva includes \input{gif.hva}, then hevea shows the following warning:

HeVeA Warning: images may have changed, run 'imagen -gif doc'

Now, one can run imagen as it should be.

It is sometime convenient not to clobber the source directory with numerous target files. It suffices to instruct hevea and hacha to output files in a specific directory, say doc.

# hevea -fix -o doc/doc.html doc.hva doc.tex
# hacha -o doc/index.html doc/doc.html

Notice that hevea does not create the target directory doc: it must exist before hevea runs. Again, in case hevea calls imagen, image generation should proceed smoothly and the final files doc001.png, doc002.png, … should go into directory doc.

In all situations, while installing files to their final destination, it is important not to forget any relevant files. In particular, in addition to the root file (index.html), contents files (doc001.html, doc002.html, etc.) and images (doc001.png, doc002.png, etc.), one should not forget the arrow images and the style sheet generated by hacha (contents_motif.gif, next_motif.gif, previous_motif.gif and doc.css).

As a consequence, producing all files into the subdirectory doc may be a good idea, since then one easily install all relevant files by copying doc to a public destination.

# cp -r doc $(HOME)/public_html

However, one then also installs the auxiliary files of hevea, and hevea output file doc.html, which is no longer useful once hacha has run. Hence, those should be erased beforehand.

# rm -f doc/doc.h{tml,aux,ind,toc} doc/doc.image.tex
# cp -r doc $(HOME)/public_html

C.1.7  Using make

Here is a typical Makefile, which is appropriate when no images are produced.

HEVEA=hevea
HEVEAOPTS=-fix
HACHA=hacha
#document base name
DOC=doc
index.html: $(DOC).html
        $(HACHA) -o index.html $(DOC).html

$(DOC).html: $(DOC).hva $(DOC).tex
        $(HEVEA) $(HEVEAOPTS) $(DOC).hva $(DOC).tex

clean:
        rm -f $(DOC).html $(DOC).h{toc,aux,ind}
        rm -f index.html $(DOC)[0-9][0-9][0-9].html $(DOC).css

Note that the clean rule removes all the doc001.html, doc002.html, etc. and doc.css files produced by hacha. Also note that make clean also removes the doc.haux, doc.hind and doc.htoc files, which are HEVEA auxiliary files.

When the image file feature is used, one can use the following, extended, Makefile:

HEVEA=hevea
HEVEAOPTS=-fix
HACHA=hacha
#document base name
DOC=doc
index.html: $(DOC).html
        $(HACHA) -o index.html $(DOC).html

$(DOC).html: $(DOC).hva $(DOC).tex
        $(HEVEA) $(HEVEAOPTS) $(DOC).hva $(DOC).tex

clean:
        rm -f $(DOC).html $(DOC).h{toc,aux,ind}
        rm -f index.html $(DOC)[0-9][0-9][0-9].html $(DOC).css
        rm -f $(DOC).image.* $(DOC)[0-9][0-9][0-9].png *_motif.gif

Observe that the clean rule now also gets rid of doc.image.tex and of the various files produced by imagen.

With the following Makefile, hevea, imagen, hacha all output their files into a specific directory DIR.

HEVEA=hevea
HEVEAOPTS=-fix
HACHA=hacha
#document base name
DOC=doc
DIR=$(HOME)/public_html/$(DOC)
BASE=$(DIR)/$(DOC)

$(DIR)/index.html: $(BASE).html
        $(HACHA) -tocter -o $(DIR)/index.html $(BASE).html

$(BASE).html: $(DOC).hva $(DOC).tex
        $(HEVEA) $(HEVEAOPTS) $(DOC).hva -o $(BASE).html $(DOC).tex

partialclean:
        rm -f $(BASE).h{tml,aux,toc,ind} $(BASE).image.*

clean:
        rm -f $(DIR)/*

The above Makefile directly produces html and PNG files into the final directory $(HOME)/public_html/$(DOC). The new partialclean entry erases files that are not useful anymore, once imagen and hacha have performed their tasks.

However, most often, it is more appropriate to build html and PNG files in a specific directory, and then to copy them to their final destination.

   ...

#document base name
DOC=doc
DIR=$(DOC)
BASE=$(DIR)/$(DOC)
INSTALLDIR=$(HOME)/public_html/$(DOC)

  ...

install: partialclean
        cp $(DIR)/* $(INSTALLDIR)
  ...

Up Next hevea-2.09-manual/manual001.html0000644004317100512160000004637212204704202016426 0ustar marangetcristal Contents Up

Contents


Up hevea-2.09-manual/manual046.html0000644004317100512160000000640412204704202016427 0ustar marangetcristal Acknowledgements Previous Up Next

C.6  Acknowledgements

The following people contributed to HEVEA development:

  • Philip A.Viton, maintains a Windows (win32) port of HEVEA.
  • Tibault Suzanne authored the HTML 5 generator that now is the default generator of HEVEA.
  • Abhishek Thakur implemented most of the new features of version 1.08, including, translations of symbols to Unicode entities, the babel package, and style sheet support.
  • Christian Queinnec wrote an extra lexer to translate code snippets produced by its tool VideoC for writing pedagogical documents on programming. The very principle he introduced for interfacing the videoc lexer with HEVEA main lexer is now used extensively throughout HEVEA source code.
  • Andrew Seagar is at the origin of support for the Thai language. He is the author of the document “How to Use HEVEA with the Thai Character Set”.
  • Pierre Boulet, by using HEVEA as a stage in his tool MlDoc for documenting Objective Caml source code, forced me into debugging HEVEA implementation of the alltt environment.
  • Nicolas Tessaud implemented the -text and -info output modes (see section 11).
  • Georges Mariano asked for many feature, and argued a lot to have them implemented.
  • Many users contributed by sending bug reports.

Previous Up Next hevea-2.09-manual/manual007.png0000644004317100512160000000656012204704201016246 0ustar marangetcristalPNG  IHDRP8R? $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'& 영ALi)OO7z? xo"DDX3+=e/1=<+]fRK|cלo,]z ){T8بlOrTzV $G&DPJGf/GnrAltL:5204gk!FgY߽zس {{t@wOm|:3<@t *K`  |d\ "U4& NNp\mp '@&+ <AX H Rt # YC AP4e@v*: :]nB#h >Ll¾Z8Ns|x7\' |+xa ʈ.FD!d3R#H+ҍ!!2|DaP4D9P|T*j3U:@P"4-A[y@t4: ].G7 { 0fgL&S9i\ b1X,Vz`ðl%v;#pF8G\0. +5.py8^oG7K n~ A`86Bp0JxK$UD/b,q+xx8FHI\R)ttL&kmtnr*MLO'!EZClH5OQp((9rʌ8^\C+&YZMPC"QXYKՠ:P##ԫqBSqi|vZm@IR%%%%%/H Cc$0J8RRZm# ۤ?0edet L[MBjFt'}mngG StYZ[6[Nb\հjJ*̪Jhʹ>l-Q ynjah;qNp^ M}ϡᙣccieg^k\\6\}\\i ܺaw}W'<}O=Yza<^xzz|4-}Oo ( n $ n ]fkYk\'.a݅aτCBC*6,b:*4r2*4j**z_tMLyL,7*Ms\m\GńD\bh$jR|Robrv`NJA0"uH*hL֦uӗ> ͌c֙ՙdKd'eoްkdcэ=ʹr6q6m6o٢%VǷo- 4 [w8h)+Y؟vUKaD"b~ yqwӒC{0{}e̲²wYn\^{p 〰­RrOBULp]u[|ͮjU-t8:z##G^47emjm,j|,&f%eDȉ'Ovֵ1ڊNS^˃Ӯ{ΰϴU?[Nk/:6t:c:]A]\t[v/H^(HqRΥ)gD_Yj^\ݸxj oZÃ< >x8(ћǙlE>ZLYZ M<2G //'&O;N}īW3JYZٿl&,]Vwzf=gO|??WA}>Mg-`*>k}et1qq?.r)ԕ0PLTE# # # # # # # # # # # # # # # t|tRNSDU"ݙwf3 pHYsaa?iIDATHǭUOhPei%( _2.V) w"<T%uhJХu@9@PYΏ?06@D>SSOH}y UE8` vNdlɦ%t<1/+TB!Mq(}Pwi߈lUlL+%,qU^yᄻed@}UY!PT{u̩_:b,SwдNm1z.^^m;p8ŽpVF9s3?Qo"<8-o"v.brCdAP4:3HM$(X@M%FPz>KE'eoZu5eٓzG QF#,^! r*vzO1b["qWȻO@W榸̀'cqϪwߜ[w߅p,Y#*x~>m~J"l+z:%tEXtdate:create2013-08-20T17:17:21+02:00%tEXtdate:modify2013-08-20T17:17:21+02:00b tEXtSoftwareGPL Ghostscript 9.05]IENDB`hevea-2.09-manual/manual032.html0000644004317100512160000001164512204704202016425 0ustar marangetcristal Lining It Up in Columns Previous Up Next

B.10  Lining It Up in Columns

B.10.1  The tabbing Environment

Limited support is offered. The tabbing environment translate to a flexible tabular-like environment. Inside this environment, the command \kill ends a row, while commands \= and \> start a new column. All other tabbing commands do not even exist.

B.10.2  The array and tabular environments

These environments are supported, using html table element, rendering is satisfactory in most (not too complicated) cases. By contrast with LATEX, some of the array items always are typeset in display mode. Whether an array item is typeset in display mode or not depends upon its column specification, the l, c and r specifications open display mode while the remaining p and @ do not. The l, c,r and @ specifications disable word wrap, while the p specification enables it.

Entries in a column whose specification is l (resp. c or r) get left-aligned (resp. centered or right-aligned) in the horizontal direction. They will get top-aligned in the vertical direction if there are other column specifications in the same array that specify vertical alignment constraints (such as p{wd}, see below). Otherwise, vertical alignment is unspecified.

Entries in a column whose specification is p{wd} get left-aligned in the horizontal direction and top-aligned in the vertical direction and a paragraph break reduces to one line break inside them. This is the only occasion where HEVEA makes a distinction between LR-mode and paragraph mode. Also observe that the length argument wd to the p specification is ignored.

Some LATEX array features are not supported at all:

  • Optional arguments to \begin{array} and \begin{tabular} are ignored.
  • The command \vline does not exists.

Some others are partly rendered:

  • Spacing between columns is different.
  • @ formatting specifications in \multicolumn argument are ignored.
  • If a | appears somewhere in the column formatting specification, then the array is shown with borders.
  • The command \hline does nothing if the array has borders (see above). Otherwise, an horizontal rule is outputted.
  • The command \cline ignores its argument and is equivalent to \hline.
  • Similarly the command \extracolsep issues a warning and ignores its argument.

Additionally, the tabular* environment is recognised and gets rendered as an html table with an advisory width attribute.

By default, HEVEA implements the array package (see [LATEX-bis, Section 5.3] and section B.17.2 in this document), which significantly extends the array and tabular environments.


Previous Up Next hevea-2.09-manual/manual003.html0000644004317100512160000000467512204704202016430 0ustar marangetcristal How to get started Up Next

1  How to get started

Assume that you have a file, a.tex, written in LATEX, using the article, book or report style. Then, translation is achieved by issuing the command:

# hevea a.tex

Probably, you will get some warnings. If HEVEA does not crash, just ignore them for the moment (Section 4 explains how to correct errors).

If everything goes fine, this will produce a new file, a.html, which you can visualise through a html browser.

If you wish to experiment HEVEA on small LATEX source fragments, then launch HEVEA without arguments. HEVEA will read its standard input and print the translation on its standard output. For instance:

# hevea
$x \in \mathcal{E}$
^D
<span style="font-style:italic">x</span> &#X2208; <span style="color:red"><span style="font-style:italic">E</span></span>

Incidentally, notice that the symbol “∈” translates to the appropriate numerical character reference and that the calligraphic letter “E” renders as a red “E”. You can find some more elaborate examples in the on-line documentation.


Up Next hevea-2.09-manual/manual040.html0000644004317100512160000000422312204704202016416 0ustar marangetcristal Practical information Previous Up

Part C
Practical information


Previous Up hevea-2.09-manual/manual010.png0000644004317100512160000001565412204704201016244 0ustar marangetcristalPNG  IHDR~1 $iCCPiccxڕgPY<@BPC*%Z(ҫ@PEl+4EQ@U)VD((bA7"Wy?g=8X'& 영ALi)OO7z? xo"DDX3+=e/1=<+]fRK|cלo,]z ){T8بlOrTzV $G&DPJGf/GnrAltL:5204gk!FgY߽zس {{t@wOm|:3<@t *K`  |d\ "U4& NNp\mp '@&+ <AX H Rt # YC AP4e@v*: :]nB#h >Ll¾Z8Ns|x7\' |+xa ʈ.FD!d3R#H+ҍ!!2|DaP4D9P|T*j3U:@P"4-A[y@t4: ].G7 { 0fgL&S9i\ b1X,Vz`ðl%v;#pF8G\0. +5.py8^oG7K n~ A`86Bp0JxK$UD/b,q+xx8FHI\R)ttL&kmtnr*MLO'!EZClH5OQp((9rʌ8^\C+&YZMPC"QXYKՠ:P##ԫqBSqi|vZm@IR%%%%%/H Cc$0J8RRZm# ۤ?0edet L[MBjFt'}mngG StYZ[6[Nb\հjJ*̪Jhʹ>l-Q ynjah;qNp^ M}ϡᙣccieg^k\\6\}\\i ܺaw}W'<}O=Yza<^xzz|4-}Oo ( n $ n ]fkYk\'.a݅aτCBC*6,b:*4r2*4j**z_tMLyL,7*Ms\m\GńD\bh$jR|Robrv`NJA0"uH*hL֦uӗ> ͌c֙ՙdKd'eoްkdcэ=ʹr6q6m6o٢%VǷo- 4 [w8h)+Y؟vUKaD"b~ yqwӒC{0{}e̲²wYn\^{p 〰­RrOBULp]u[|ͮjU-t8:z##G^47emjm,j|,&f%eDȉ'Ovֵ1ڊNS^˃Ӯ{ΰϴU?[Nk/:6t:c:]A]\t[v/H^(HqRΥ)gD_Yj^\ݸxj oZÃ< >x8(ћǙlE>ZLYZ M<2G //'&O;N}īW3JYZٿl&,]Vwzf=gO|??WA}>M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A o?@s뵵Ls(js?S2ғ5g@ #vjϳk#KR뿴SmH0xK|E<| }^>1w]߂$Lխze?7ȣXF*PR,\:b+mA1\}Hf92/b$d2"qc9yqWPBDỈl51[+UJ|ż) F ?S.nSC hU$:0XU 1,u&?PCM›ST| DOi x/oM/:zޕ;> '.uMā-]b<:QO3PN9ʼn̹t@]fL2~_7(ݴlwړ׆9%ED`R z3MOyNEhn'VManFۏo^pjl %VK|[^҄Ѽz l| `^̰QukhKN]}MZ*7ת鋙`htvw9v[[!|{7K;a+#%tEXtdate:create2013-08-20T17:17:21+02:00%tEXtdate:modify2013-08-20T17:17:21+02:00b tEXtSoftwareGPL Ghostscript 9.05]IENDB`hevea-2.09-manual/manual045.html0000644004317100512160000000635312204704202016431 0ustar marangetcristal Other LATEX to html translators Previous Up Next

C.5  Other LATEX to html translators

This short section gives pointers to a few other translators. I performed not extensive testing and make no thorough comparison.

LaTeX2html
LaTeX2html is a full system. It is written in perl and calls LATEX when in trouble. As a consequence, LaTeX2html is powerful but it may fail on large documents, for speed and memory reasons. More information on LaTeX2html can be found at
TTH
The principle behind TTH is the same as the one of HEVEA: write a fast translator as a lexer, use symbol fonts and tables. However, there are differences, TTH accepts both TEX and LATEX source, TTH is written in C and the full source is not available (only lex output is available). Additionally, TTH insist on not using any kind of LATEX generated information and will show proper cross-reference labels, even when no .aux file is present. TTH output is a single document, whereas HACHA can cut the output of HEVEA into several files. (however there exists a commercial version of TTH that provides this extra functionality). TTH can be found at
htmlgen
The htmlgen translator is specialized for producing the Caml manuals. This is HEVEA direct ancestor and I owe much to its author, X. Leroy. See [htmlgen] for a description of htmlgen and a (bit outdated) discussion on LATEX to html translation.

Previous Up Next hevea-2.09-manual/manual024.html0000644004317100512160000001216412204704202016423 0ustar marangetcristal The Structure of the Document Previous Up Next

B.2  The Structure of the Document

Document structure is a bit simplified with respect to LATEX, since documents consist of only two parts. The preamble starts as soon as HEVEA starts to operate and ends with the \begin{document} construct. Then, any input occurring before \end{document} is translated to html. However, the preamble is processed and the preamble comprises the content of the files given as command-line arguments to HEVEA, see section C.1.1.1). As a consequence, command and environment definitions that occur before \begin{document} are performed. and they remain valid during all the processing.

In particular one can define a header and a footer, by using the \htmlhead and \htmlfoot commands in the preamble. Those commands register their argument as the header and the footer of the final html document. The header appears first while the footer appears last in (visible) html output. This is mostly useful when HEVEA output is later cut into pieces by HACHA, since both header and footer are replicated at the start and end of any file generated by HACHA. For instance, to append a copyright notice at the end of all the html pages, it suffices to invoke the \htmlfoot command as follows in the document preamble:

\htmlfoot{\copyright to me}

The \htmlhead command cannot be used for changing anything outside of the html document body, there are specific commands for doing this. Those command must be used in the document preamble. One can change HEVEA default (empty) attribute for the opening <body ...> tag by redefining \@bodyargs. For instance, you get black text on a white background, when the following declaration occurs before \begin{document}:

\renewcommand{\@bodyargs}{style="color:black;background:white"}

Since version 1.08, a recommended alternative is to use style sheets:

\newstyle{body}{color:black; background:white;}

Similarly, some elements can be inserted into the output file head element by redefining the \@meta command (Such elements typically are meta, link, etc.). As such text is pure html, it should be included in a rawhtml environment. For instance, you can specify author information as follows:

\let\oldmeta=\@meta
\renewcommand{\@meta}{%
\oldmeta
\begin{rawhtml}
<meta name="Author" content="Luc Maranget">
\end{rawhtml}}

Note how \@meta is first bound to \oldmeta before being redefined and how \oldmeta is invoked in the new definition of \@meta. Namely, simply overriding the old definition of \@meta would imply not outputting default meta-information.

The \@charset command holds the value of the (html) document character set. By default, this value is US-ASCII. In previous versions of HEVEA, one could change the value of the document character set by simply redefining \@charset. Then, it was users responsability to provide a (LATEX) document in the correspounding encoding. This is no longer so, and users should not redefine \@charset directly. Please, see Section 8.6 for details.


Previous Up Next hevea-2.09-manual/manual002.html0000644004317100512160000001146212204704202016417 0ustar marangetcristal Tutorial Up Next

Part A
Tutorial


Up Next hevea-2.09-manual/manual034.html0000644004317100512160000000332712204704202016425 0ustar marangetcristal Line and Page Breaking Previous Up Next

B.12  Line and Page Breaking

B.12.1  Line Breaking

The advisory line breaking command \linebreak will produce a line break if it has no argument or if its optional argument is 4. The \nolinebreak command is a null command.

The \\ and \\* commands output a <BR> tag, except inside arrays where the close the current row. Their optional argument is ignored. The \newline command outputs a <BR> tag.

All other line breaking commands, declarations or environments are silently ignored.

B.12.2  Page Breaking

They are no pages in the physical sense in html. Thus, all these commands are ignored.


Previous Up Next hevea-2.09-manual/manual044.html0000644004317100512160000001021712204704202016422 0ustar marangetcristal Installation Previous Up Next

C.4  Installation

C.4.1  Requirements

The programs hevea and hacha are written in Objective Caml. 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 HEVEA home page.

HEVEA users may instruct the program not to process a part of the input (see section 6). Instead, this part is processed into a bitmap file and HEVEA outputs a link to the image file. LATEX source is changed into .png images by the imagen script, which basically calls, LATEX, dvips, ghostscript and the convert command from the image processing package ImageMagick.

To benefit from the full functionality of HEVEA, you need all this software. However, HEVEA runs without them, but then you will have to produce images by yourself.

C.4.2  Principles

The details are given in the README file from the distribution. Basically, HEVEA should be given a library directory. The installation procedure stores the hevea.hva and base style files in this directory. There are two compilation modes, the opt mode selects the native code OCaml compiler ocamlopt, while the byte mode selects the bytecode OCaml compiler ocamlc. In HEVEA case, ocamlopt produces code that is up to three times as fast as the one produced by ocamlc. Thus, default compilation mode is opt, however it may be the case on some systems that only ocamlc is available.

Note that, when installing HEVEA from the source distribution, the hevea.sty file is simply copied to HEVEA library directory. It remains users responsibility to make it accessible to LATEX.


Previous Up Next hevea-2.09-manual/manual021.html0000644004317100512160000001157212204704202016422 0ustar marangetcristal Other output formats Previous Up

11  Other output formats

It is possible to translate LATEX file into other formats than html. There are two such formats: plain text and info files. This enables producing postscript, html, plain text and info manuals from one (LATEX) input file.

11.1  Text

The LATEX file is processed and converted into a plain text formatted file. It allows some pretty-printing in plain text.

To translate into text, invoke HEVEA as follow:

# hevea -text [-w <width>] myfile.tex

Then, HEVEA produces myfiles.txt a plain text translation of myfile.tex.

Additionally, the optional argument -w <number> sets the width of the output for text formatting. By default, The text will be 72 characters wide.

Nearly every environment has been translated, included lists and tables. The support is nearly the same as in html, excepted in some cases described hereafter.

Most style changes are ignored, because it is hardly possible to render them in plain text. Thus, there are no italics, bold fonts, underlinings, nor size change or colours… The only exception is for the verbatim environment that puts the text inside quotes, to distinguish it more easily.

Tables with borders are rendered in the same spirit as in LATEX. Thus for instance, it is possible to get vertical lines between some columns only. Table rendering can be poor in case of line overflow. The only way to correct this (apart from changing the tables themselves) is to adjust the formatting width, using the the -w command-line option.

For now, maths are not supported at all in text mode. You can get very weird results with in-text mathematical formulas. Of course, simple expressions such as subscripts remains readable. For instance, x2 will be rendered as x^2, but ∫01f(x)dx will yield something like : int01f(x)dx.

11.2  Info

The file format info is also supported. Info files are text files with limited hypertext links, they can be read by using emacs info mode or the info program. Please note that HEVEA translates plain LATEX to info, and not TeXinfo.

You can translate your LATEX files into info file(s) as follows:

# hevea -info [-w <width>] myfile.tex

Then, HEVEA produces the file myfile.info, an info translation of myfile.tex. However, if the resulting file is too large, it is cut into pieces automatically, and myinfo.info now contains references for all the nodes in the others files, which are named myfile.info-1, myfile.info-2,…

The optional argument -w has the same meaning as for text output.

The text will be organised in nodes that follow the pattern of LATEX sectioning commands. Menus are created to navigate through the sections easily

A table of content is produced automatically. References, indexes and footnotes are supported, as they are in html mode. However, the info format only allows pointers to info nodes, i.e. in HEVEA case, to sectional units. As a consequence all cross references lead to sectional unit headers.


Previous Up hevea-2.09-manual/next_motif.gif0000644004317100512160000000047512204704202016677 0ustar marangetcristalGIF89app!# Imported from XPM image: next.xpm!,@63333B! 0 A0 0 0  0 `0 `0 A @ `0 `00000000000000000000000000000000000000000000  000000 0000000000000000000000000000` ;hevea-2.09-manual/manual043.html0000644004317100512160000000446012204704202016424 0ustar marangetcristal Availability Previous Up Next

C.3  Availability

C.3.1  Internet stuff

HEVEA home page is http://hevea.inria.fr/. It contains links to the on-line manual and to the distribution.

The author can be contacted at Luc.Maranget@inria.fr.

C.3.2  Law

HEVEA can be freely used and redistributed without modifications. Modifying and redistributing HEVEA implies a few constraints. More precisely, HEVEA is distributed under the terms of the Q Public License, but HEVEA binaries include the Objective Caml runtime system, which is distributed under the Gnu Library General Public License (LGPL). See the LICENSE file for details.

The manual itself is distributed under the terms of the Free Document Dissemination Licence.


Previous Up Next hevea-2.09-manual/manual-packages.html0000644004317100512160000016733712204704202017766 0ustar marangetcristal Implemented Packages Previous Up

B.17  Implemented Packages

HEVEA distribution includes .hva packages that are implementations of LATEX packages. Packages described in the “Blue Book” (makeidx, ifthen, graphics —and graphicx!—, color, alltt) are provided. Additionally, quite a few extra packages are provided. I provide no full documentation for these packages, users should refer to the first pages of the package documentation, which can usually be found in the book [LATEX-bis], in your local LATEX installation or in a TeX CTAN-archive.

At the moment, most package options are ignored, except for the babel package, where it is essential.

B.17.1  AMS compatibility

HEVEA amsmath package defines some of the constructs of the amsmath package. At the moment, supported constructs are the cases environment and matrix environments [LATEX-bis, Section 8.4], the environments for multi-line displayed equations (gather, split,…) [LATEX-bis, Section 8.5] and the \numberwithin command [LATEX-bis, Section 8.6.2].

HEVEA provides support for the amssymb symbols using Unicode. I found Unicode equivalent for most symbols. However, a few symbols remain undefined (e.g. \varsubsetneqq).

B.17.2  The array and tabularx packages

The array package is described in [LATEX-bis, Section 5.3] and in the local documentation of modern LATEX installations. It is a compatible extension of LATEX arrays (see B.10.2). Basically, it provides new column specifications and a \newcolumntype construct for user-defined column specifications. Table 1 gives a summary of the new column specifications and of how HEVEA implements them.


Table 1: Column specifications from the array package
m{width}  Equivalent to the p column specification (the width argument is ignored, entries are typeset in paragraph mode with paragraph breaks being reduced to a single line break), except that the entries are centered vertically.
b{width}  Equivalent to the p column specification, except that the entries are bottom-aligned vertically.
>{decl}  Can be used before l, c, r, p{}, m{} or b{}. It inserts decl in front of the entries in the corresponding column.
<{decl}  Can be used after l, c, r, p{}, m{} or b{}. It inserts decl after entries in the corresponding column.
!{decl}  Equivalent to @{decl}

Note that centered, top-aligned or bottom-aligned in the vertical direction, do not have exactly the same meaning in LATEX and in html. However, the aspect is the same when all columns agree w.r.t. vertical alignment. Ordinary column types (c, l and r) do not specify vertical alignment, which therefore becomes browser dependent.

The >{decl} and <{decl} constructs permit the encoding of TEX \cases macro as follows:

\def\cases#1{\left\{\begin{array}{l>{$}l<{$}}#1\end{array}\right.}

(This is an excerpt of the latexcommon.hva file.)

New column specifications are defined by the \newcolumntype construct:

  \newcolumntype{col}[narg]{body}

Where col is one letter, the optional narg is a number (defaults to 0), and body is built up with valid column specifications and macro-argument references (#int). Examples are:

\newcolumntype{C}{>{\bf}c}
\newcolumntype{E}[1]{*{#1}{c}}
\begin{tabular}{CE{3}}\hline
one & two & three & four \\
five & six & seven & eight \\ \hline
\end{tabular}

The column specification C means that entries will be typeset centered and using bold font, while the column specifications E{num} stands for num centered columns. We get:

onetwothreefour
fivesixseveneight

HEVEA implements column specifications with commands defined in the \newcommand style. Thus, they have the same behaviour as regards double definition, which is not performed and induces a warning message. Thus, a column specification that is first defined in a macro.hva specific file, overrides the document definition.

The tabularx package [LATEX-bis, Section 5.3.5] provides a new tabular environment tabularx and a new column type X. HEVEA makes the former equivalent to tabular and the latter equivalent to p{ignored}. By contrast with the subtle array formatting that the tabularx package performs, this may seem a crude implementation. However, rendering is usually correct, although different.

More generally and from the html point of view such sophisticated formatting is browser job in the first place. However, the html definition allows suggested widths or heights for table entries and table themselves. From HEVEA point of view, drawing the border line between what can be specified and what can be left to the browser is not obvious at all. At the moment HEVEA choice is not to specify too much (in particular, all length arguments, either to column specifications or to the arrays themselves, are ignored). As a consequence, the final, browser viewed, aspect of arrays will usually be different from their printed aspect.

B.17.3  The calc package

The calc package enables using traditional, infix, notation for arithmetic operations inside the num argument to the \setcounter{name}{num} and \addtocounter{name}{num} constructs (see [LATEX-bis, Section A.4])

The calc package provides a similar extension of the syntax of the len argument to the \setlength and \addtolength constructs. HEVEA does not implement this extension, since it does not implement length registers in the first place.

B.17.4  Specifying the document input encoding, the inputenc package

The inputenc package enables LATEX to process a file according to various 8 bits encodings, plus UTF-8. The one used encoding is specified as an option while loading the package \usepackage[encoding]{inputenc}. At the moment, HEVEA recognises ten latin encodings (from latin1 to latin10), the koi8-r encoding, the ascii encoding, four windows encodings, the applemac encoding, and the utf8 encoding. It is important to notice that loading the inputenc package alters the html document charset. For instance if the latin9 input encoding is selected by:

\usepackage[latin9]{inputenc}

Then, the document charset is ISO-8859-15, which is an enhanced version of ISO-8859-1 with some characters for Œ, œ and €. The rationale behind changing the output document charset at the same time as changing the input encoding is to allow non-ascii bytes in the input file to be replicated as themselves in the output file.

However, one can change the document charset (and the output translator) by using the internal command \@def@charset. For instance, one can specify latin1 encoding, while producing html pages in ascii:

\usepackage[latin1]{inputenc}
%HEVEA\@def@charset{US-ASCII}

See section 8.6 for a more thorough description of html charset management.

The inputenc package also provides the command \inputcoding{encoding} that changes the input encoding at any time. The argument encoding can be any of the options accepted by \usepackage[encoding]{inputenc}. The command \inputcoding of HEVEA follows the behaviour of its LATEX counterpart, it the sense that it obeys scope rules. Notice that \inputcoding does not change the document output encoding and charset.

B.17.5  More symbols

HEVEA implements the following packages: latexsym amssymb, textcomp (a.k.a. “Text companion”) and eurosym (a nice € symbol in LATEX).

B.17.6  The comment package

The comment package provides two commands, \excludecomment and \includecomment, for (re-)defining new environments that ignore their content or that do nothing. The comment environment is also defined as an environment of the first kind.

B.17.7  Multiple Indexes with the index and multind packages

HEVEA supports several simultaneous indexes, following the scheme of the index package, which is present in modern LATEX distributions. This scheme is backward compatible with the standard indexing scheme of LATEX.

Support is not complete, but the most useful commands are available. More precisely, HEVEA knows the following commands:

\newindex{tag}{ext}{ignored}{indexname}
Declare an index. The first argument tag is a tag to select this index in other commands; ext is the extension of the index information file generated by LATEX (e.g., idx); ignored is ignored by HEVEA; and indexname is the title of the index. There also exists a \renewindex commands that takes the same arguments and that can be used to redefine previously declared indexes.
\makeindex
Perform \newindex{default}{idx}{ind}{Index}.
\index[tag]{arg}
Act as the LATEX \index command except that the information extracted from arg goes to the tag index. The tag argument defaults to default, thereby yielding standard LATEX behaviour for the \index command without an optional argument. There also exists a stared-variant \index* that Additionally typesets arg.
\printindex[tag]
Compute, format and output index whose tag is tag. The tag argument defaults to default.

The multind package is supported to some extend, but index is definitely to be preferred.

B.17.8  “Natural” bibliographies, the natbib package

LATEX version of natbib is present in modern installations.

Implementation is quite complete and compatible with version 8.0 of the natbib package (with the keyval style command \setcitestyle).

Unimplemented features are the sorting and compression of references. Automatic generation of an index of citations is handled, but the current implementation probably is quite fragile.

B.17.9  Multiple bibliographies

The multibib package

HEVEA provides a slightly incomplete implementation of the multibib package. The one non-implemented feature is the simultaneous definition of more than one bibliography. That is one cannot invoke \newcites as follows:

\newcites{suf1, suf2}{Title1, Title2}

Instead, one should perform to calls to the \newcites command:

\newcites{suf1}{Title1}\newcites{suf2}{Title2}

The chapterbib package

A basic implementation is provided. At the moment, you can define one bibliography per included file and no toplevel bibliography. HEVEA implementation of this package recognises the option sectionbib and provides the command \sectionbib to change the sectioning command introduced by bibliographies.

B.17.10  Support for babel

B.17.10.1  Basics

HEVEA offers support for the LATEX package babel. When it reads the command

  \usepackage[lang-list]{babel}

it loads babel.hva, and sends it the saved lang-list. The file babel.hva then looks at each language (say x) in it, and loads x.hva, which offers support for the language x. As in LATEX, the last language in the list is selected as default. As an example the command

\usepackage[english,french,german]{babel}

would load babel.hva, then the files english.hva,french.hva,german.hva containing the respective definitions, and finally activate the definitions in german.hva and sets the current language to german.

B.17.10.2  Commands and languages

The following babel commands for changing and querying the language work as in LATEX :

  1. \selectlanguage : to change the language
  2. \iflanguage : to branch after comparing with current language

The language specific details are described in the corresponding .hva file, just as in the .sty file for LATEX. Users need to supply this file for their language, or modify/check the files if they are already supplied with the distribution. The list of languages is given below.

americanaustrianbrazilcatalan
checkcroatiandanishdutch
englishesperantofinnishfrench
galiciangermanitalianmagyar
norsknynorskpolishportuges
romanianrussianslovakslovene
spanishswedishturkish 

B.17.10.3  Writing hva files

The languages for which .hva files are available with the distribution are english, french, german, austrian and czech. These may need to be modified as not all accents and hyphenation techniques are supported.

They can be written/modified as simple TEX files (see the section  B.16.1.1 on writing TEX macros for details). As an example, one may also take a look at the file french.hva, which describes the details for french.

Note how all definitions are inside the definition for \french@babel, which is the command that \selectlanguage{french} would call. Similar commands need to be provided (i.e. \x@babel in \x.hva for language x).

Some definitions may involve specifying Unicode characters, for doing so, using the \@print@u is recommended (cf. Section 8.3). The definition of Unicode characters can be found at http://www.unicode.org/charts/. Most language specific Unicode characters can be found in the first few files.

B.17.11  The url package

LATEX source.

This package in fact provides a enhanced \verb command that can appear inside other command arguments. This command is named \url, but it can be used for any verbatim text, including DOS-like path names. Hence, one can insert urls in one’s document without worrying about LATEX active characters:

This is a complicated url: \url{http://foo.com/~user#label%coucou}.

which gets typeset as: “This is a complicated url: http://foo.com/~user#label%coucou.”

The main use for the \url command is to specify urls as arguments to HEVEA commands for hyperlinks (see section 8.1.1):

\hevea{} home page is
\ahrefurl{\url{http://hevea.inria.fr/}}

It yields: “HEVEA home page is http://hevea.inria.fr/”.

However the \url command is fragile, as a consequence it cannot be used inside \footahref first argument (This is a LATEX problem, not an HEVEA one). The url package solves this problem by providing the \urldef command for defining commands whose body is typeset by using \url:

\urldef{\heveahome}{\url}{http://hevea.inria.fr/}

Such a source defines the robust command \heveahome as the intended url. Hence the following source works as expected:

Have a look at \footahref{\heveahome}{\hevea{} home page}

It yields: “Have a look at HEVEA home page”.

Using \url inside command definitions with a #i argument is a bad idea, since it gives “verbatim” a rather random meaning. Unfortunately, in some situations (e.g, no %, no #), it may work in LATEX. By contrast, it does not work in HEVEA. In such situations, \urldef should be used.

HEVEA implementation is somehow compatible at the “programming level”. Thus, users can define new commands whose argument is understood verbatim. The urlhref.hva style file from the distribution takes advantage of this to define the \url command, so that it both typesets an url and inserts a link to it.

\input{urlhref.hva}
Have a look at \url{http://hevea.inria.fr/}

It yields “Have a look at http://hevea.inria.fr/”. The urlhref.hva style file (which is an HEVEA style file and not a LATEX style file) can be adequate for bibliographic references, which often use \url for its typesetting power. Of course, loading urlhref.hva only makes sense when all arguments to \url are urls…

B.17.12  Verbatim text: the moreverb and verbatim packages

These two packages provide new commands and environments for processing verbatim text. I recommend using moreverb rather than verbatim, since HEVEA implementation is more advanced for the former package.

B.17.13  Typesetting computer languages: the listings package

I strongly recommend the listings package. Learning the user interface requires a little effort, but it is worth it.

HEVEA features a quite compatible implementation, please refer to the original package documentation. Do not hesitate to report discrepancies. Note that HEVEA does not produce very compact html in case you use this package. This can be cured by giving hevea the command-line option -O (see C.1.1.4).

The lstlisting environment is styled through an homonymous style class (see 9.2 and 9.3) and most lstlisting environments get translated to div elements with the appropriate \getenvclass{lstlisting} class, which, by default is lstlisting. A few points deserve mention:

  1. The definition of default style class lstlisting includes the important declarations font-family:monospace; and white-space:pre;, which, more or less, specify non-proportional font and mandatory line breaks. In case you replace lstlisting by another style class (by \setenvclass{lstlisting}{another one}), your alternate definition should probably feature an identical specification. Otherwise, rendering would be poor, as regards spacing and line breaks. Here is how specific listings are styled. We first define a new environment to typeset programs written in the C language, by using the command \lstnewenvironment:
    \lstdefinestyle{colors}{keywordstyle={\bf\color{blue}}, commentstyle={\em\color{magenta}}}
    \lstnewenvironment{clisting}
      {\setenvclass{lstlisting}{clisting}\lstset{language=C, style=colors}}
      {}
    
    The command \lstnewenvironment{name}{starting code}{ending code} is from the listings package, with similar semantics. In the starting code above, the fragment \setenvclass{lstlisting}{clisting} instructs HEVEA to use the style class clisting locally (notice that it could just be another name). The style class clisting is defined in the document preamble as follows:
    \newstyle{.clisting}{font-family:monospace;white-space:pre;
    border-left:solid black;padding-left:2ex;margin-left:2ex;}
    
    Typesetting a C listing with a black border on the left is then as simple as:
    \begin{clisting}
    /* Compute, guess what! */
    int fact(int n) {
      int r = 1 ;
      for ( ; n > 0 ; n--) {
        r *= n ;
      }
      return r ;
    }
    \end{clisting}
    
    The final result is:
    /* Compute, guess what! */ int fact(int n) { int r = 1 ; for ( ; n > 0 ; n--) { r *= n ; } return r ; }
  2. When listings are framed, that is, when some frame=… or background=… keyval specifications are active, they no longer get translated to div elements. Instead they get translated to one cell tables whose td and table elements are styled through style classes lstlisting and lstframe, respectively. Of course, those two style classes follow the usual \setenvclass/\getenvclass mechanism. That way, one can for instance center all framed listings by issuing the following declaration in the document preamble:
    \newstyle{.lstframe}{margin:auto;}
    
    Notice that the default style class lstframe is empty.
  3. Unfortunately the white-space:pre; style declaration is still a bit young, and some browsers implement it in rather incomplete fashion. This is particularly true as regards text copy-pasted from browser display. In case you want to provide your readers with easy copy-paste of listings, you can, by issuing the command \lstavoidwhitepre in the document preamble. Then, white-space:pre; is not used any longer: spaces get rendered by non-breaking space entities and line-breaks by <BR> elements, which significantly increase output size. However, as a positive consequence, display remains correct and text copy-pasted from browser display indeed possesses the line-breaks shown in display.

B.17.14  (Non-)Multi page tabular material

LATEX source for the longtable and supertabular packages.

Those two packages provide LATEX users with the possibility to typeset tabular material over several pages [LATEX-bis, Section 5.4]. Of course, HEVEA does not care much about physical pages. Thus the supertabular and longtable environments are rendered more or less as tabular environments inside table environments.

B.17.15  Typesetting inference rules: the mathpartir package

The mathpartir package, authored by D. Rémy, essentially provides two features:

  1. An environment mathpar for typesetting a sequence of math formulas in mixed horizontal and vertical mode. The environment selects the best arrangement according to the line width, exactly as paragraph mode does for words.
  2. A command \inferrule (and its starred variant) for typesetting inferences rules.

We give a short description, focussing on HEVEA-related details. Users are encouraged to refer to the original documentation of the package.

In the following, comments on rule typesetting apply to HEVEA output and not to LATEX output.

B.17.15.1  The mathpar environment

In its LATEX version, the mathpar environment is a “paragraph mode for formulas”. It allows to typeset long list of formulas putting as many as possible on the same line:

\begin{mathpar} A-Formula \and Longer-Formula \and And \and The-Last-One \end{mathpar}
        
AFormula 
LongerFormula
And 
TheLastOne

In the example above, formulas are separated with \and. The LATEX implementation also changes the meaning of paragraph breaks (either explicit as a \par command or implicit as a blank line) to act as \and. It also redefines the command \\ as an explicit line-break in the flow of formulas.

\begin{mathpar} \int_0^2 xdx = \frac{3}{2} \\ \int_0^3 xdx = \frac{5}{2} \end{mathpar}
        
2


0
 xdx = 
3
2
3


0
 xdx = 
5
2

The HEVEA version is simplistic: Formulas are typeset in math display mode, \and separators always produce horizontal space, while \\ always produce line-breaks. However, when prefixed by \hva the meaning of explicit separators is reversed: that is, \hva\and produces a line-break, while \hva\\ produces horizontal space. Hence, we can typeset the previous example on two lines:

\begin{mathpar} A-Formula \and Longer-Formula \hva\and And \and The-Last-One \end{mathpar}
        
AFormula 
LongerFormula 
And 
TheLastOne

It is to be noticed that the LATEX version of the package defines \hva as a no-op, so as to allow explicit instructions given to HEVEA not to impact on the automatic typesetting performed by LATEX.

B.17.15.2  The inferrule macro

The \inferrule macro is designed to typeset inference rules. It should only be used in math mode (or display math mode). It takes three arguments, the first being optional, specifying the label, premises, and conclusions respectively. The premises and the conclusions are both lists of formulas, and are separated by \\. A simple example of its use is

\inferrule
  [label]
  {one \\ two \\ three \\ or \\ more \\ premises}
  {and \\ any \\ number \\ of \\ conclusions \\ as \\ well}

which gives the following rendering:

label
one           two           three           or           more           premises
and           any           number           of           conclusions           as           well

Again, HEVEA is simplistic. Where LATEX performs actual typesetting, interpreting \\ as horizontal or vertical breaks, HEVEA always interpret \\ as an horizontal break. In fact HEVEA interpret all separators (\\, \and) as horizontal breaks, when they appear in the arguments of the \inferrule command. Nevertheless prefixing separators with \hva yields vertical breaks:

\inferrule {aa \hva\\ bb} {dd \\ ee \\ ff}
        
aa 
bb
dd           ee           ff

The color of the horizontal rule that separates the premises and conclusions can be changed by redefining the command \mpr@hhline@color. This color must be specified as a low-level color (cf. Section B.14.2.2).

B.17.15.3  Options

By default, lines are centered in inference rules. However, this can be changed either by using \mprset{flushleft} or \mprset{center}, as shown below.

$$\mprset{flushleft} \inferrule {a \\ bbb \hva\\ ccc \\ dddd} {e \\ ff \hva\\ gg} $$
        
 
a           bbb  
ccc           dddd
e           ff 
gg

B.17.15.4  Derivation trees

The mathpartir package provides a starred variant \inferrule*. In LATEX, the boxes produced by \inferrule and \inferrule* differ as regards their baseline, the second being well adapted to derivation trees. All this is irrelevant to HEVEA, but \inferrule* remains of interest because of its interface: the optional argument to the \inferrule* command is a list of key=value pairs in the style of keyval. This makes the variant command much more flexible.

keyEffect for value v
beforeExecute v before typesetting the rule. Useful for instance to change the maximal width of the rule.
leftPut a label v on the left of the rule
LeftIdem.
rightAs left, but on the right of the rule.
RightAs Left, but on the right of the rule.
labPut a label v above the inference rule, in the style of \inferrule.
LabIdem.
vdotsRaise the rule by v and insert vertical dots, the length argument is translated to a number of line-skips.

Additionally, the value-less key center centers premises and conclusions (this is the default), while flushleft commands left alignment of premises and conclusions (as \mprset{flushleft} does). Other keys defined by the LATEX package exist and are parsed, but they perform no operation.

As an example, the code

\begin{mathpar} \inferrule* [Left=Foo] {\inferrule* [Right=Bar,width=8em, leftskip=2em,rightskip=2em,vdots=1.5em] {a \and a \and bb \hva\\ cc \and dd} {ee} \and ff \and gg} {hh} \hva\and \inferrule* [lab=XX]{uu \and vv}{ww} \end{mathpar}

produces the following output:

Foo 
a           a           bb  Bar
cc           dd 
ee 

          ff           gg
 hh
XX
uu           vv
ww

B.17.16  The ifpdf package

This package should be present in modern latex installations. Basically, the package defines a boolean register pdf, whose value is true for tools that produce PDF (such as pdflatex) and false for tools that produce DVI (such as latex).

The hevea version of the package simply defines the boolean register pdf with initial value true. Command-line option -pdf is also added to imagen command-line options (by using the command \@addimagenopt, see Section 10.7). As a result, imagen will normally call pdflatex in place of latex.

In case standard latex processing in imagen is wished, one can issue the command \pdffalse after loading the ifpdf package and before \begin{document}. Then, no command line option is added. Hence, to achieve latex processing of the image file, while still loading the ifpdf package, one writes:

\usepackage{ifpdf}
%HEVEA\pdffalse

B.17.17  Typesetting Thai

HEVEA features an implementation of Andrew Seagar’s technique for Thai in LATEX, by the means of the package thai.hva in the distribution.

As regards input encoding, Thai users of HEVEA could (perhaps) use \usepackage[utf8]{inputenc}. However, the typesetting of Thai is more subtle than just proper characters. For that reason, Thai in LATEX is better performed by another technique, which HEVEA supports. See this specific document.

B.17.18  Hanging paragraphs

The hanging package is implemented. HEVEA implementation consists of no-ops, except for the hangparas environment, which is partially implemented. Assume the following usage of hangparas:

\begin{hangparas}{wd}{n}   …\end{hangparas}

where wd is a length that makes sense both for LATEX and CSS (typically 2ex). Then html output will reproduce LATEX output for n=1, regardless of the given value of argument n. That is, in any paragraph inside the environment, all lines except the first get indented by wd.

B.17.19  The cleveref package

The cleveref package attempts (and mostly succeeds) typesetting references cleverly. Its main feature is a \cref command that accepts several, comma separated, label references and typesets them as a list (which can be one-element long, of course) prefixed with sectional unit names. The HEVEA implementation is quite complete, but it does not support some of the subtleties of the LATEX implementations, especially as regards customisation.

B.17.20  Other packages

The fancyverb and colortbl packages are partly implemented.

The xspace package is implemented, in simple cases, rendering is satisfactory, but beware: HEVEA differs significantly from TEX, and discrepancies are likely.

The chngcntr package is implemented. This package provides commands to connect (and disconnect) counters once they are created (see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=addtoreset).

The import package is partially implemented: all starred commands are missing.

The booktabs package is implemented. This package provides nicer rulers in tables as specific commands. HEVEA defines those as no-ops.


Previous Up hevea-2.09-manual/manual.html0000644004317100512160000172606212204704202016207 0ustar marangetcristal HEVEA User Documentation Version 2.09

HEVEA User Documentation
Version 2.09

Luc Maranget*

August 20, 2013


This manual also exists in compressed Postscript, PDF, and as a bundle of HTML files.


Abstract: HEVEA is a LATEX to html translator. The input language is a fairly complete subset of LATEX 2є (old LATEX style is also accepted) and the output language is html that is (hopefully) correct with respect to version 5 [HTML-5a, HTML-5b]

HEVEA understands LATEX macro definitions. Simple user style files are understood with little or no modifications. Furthermore, HEVEA customisation is done by writing LATEX code.

HEVEA is written in Objective Caml, as many lexers. It is quite fast and flexible. Using HEVEA it is possible to translate large documents such as manuals, books, etc. very quickly. All documents are translated as one single html file. Then, the output file can be cut into smaller files, using the companion program HACHA.

HEVEA can also be instructed to output plain text or info files.

Information on HEVEA is available at http://hevea.inria.fr/.

Contents

This document consists in three parts, a tutorial introduction, a reference manual and some practical information. The latter part includes a small index.

Part A
Tutorial

1  How to get started

Assume that you have a file, a.tex, written in LATEX, using the article, book or report style. Then, translation is achieved by issuing the command:

# hevea a.tex

Probably, you will get some warnings. If HEVEA does not crash, just ignore them for the moment (Section 4 explains how to correct errors).

If everything goes fine, this will produce a new file, a.html, which you can visualise through a html browser.

If you wish to experiment HEVEA on small LATEX source fragments, then launch HEVEA without arguments. HEVEA will read its standard input and print the translation on its standard output. For instance:

# hevea
$x \in \mathcal{E}$
^D
<span style="font-style:italic">x</span> &#X2208; <span style="color:red"><span style="font-style:italic">E</span></span>

Incidentally, notice that the symbol “∈” translates to the appropriate numerical character reference and that the calligraphic letter “E” renders as a red “E”. You can find some more elaborate examples in the on-line documentation.

2  Style files

LATEX style files are files that are not intended to produce output, but define document layout parameters, commands, environments, etc.

2.1  Standard base styles

The base style of a LATEX document is the argument to the \documentclass command (\documentstyle in old style). Normally, the base style of a document defines the structure and appearance of the whole document.

HEVEA really knows about two LATEX base styles, article and book. Additionally, the report base style is recognized and considered equivalent to book and the seminar base style for making slides is recognized and implemented by small additions on the article style.

Base style style is implemented by an HEVEA specific style file style.hva. More precisely, HEVEA interprets \documentclass{style} by attempting to load the file style.hva (see section C.1.1.1 on where HEVEA searches for files). Thus, at the moment, HEVEA distribution includes the files, article.hva, book.hva, etc.

2.2  Other base styles

Documents whose base style is not recognized by HEVEA can be processed when the unknown base style is a derivation of a recognized base style.

Let us assume that doc.tex uses an exotic base style such as acmconf. Then, typing hevea doc.tex will yield an error, since HEVEA cannot find the acmconf.hva file:

# hevea.opt doc.tex
doc.tex:1: Warning: Cannot find file: acmconf.hva
doc.tex:1: Error while reading LaTeX: No base style
Adios

This situation is avoided by invoking HEVEA with the known base style file article.hva as an extra argument:

# hevea article.hva doc.tex

The extra argument instructs HEVEA to load its article.hva style file before processing doc.tex. It will then ignore the document base style specified by \documentclass (or \documentstyle).

Observe that the fix above works because the acmconf and article base styles look the same to the document (i.e. they define the same macros). More generally, most base styles that are neither article nor book are in fact variations on either two of them. However, such styles usually provides extra macros. If users documents use these macros, then users should also instruct HEVEA about them (see section 4.1).

Finally, it is important to notice that renaming a base style file style.cls into style.hva will not work in general. As a matter of fact, base style files are TEX and not LATEX source and HEVEA will almost surely fail on TEX-ish input.

2.3  Other style files

A LATEX document usually loads additional style files, by using the commands \input or \usepackage or \input.

2.3.1  Files loaded with \input

Just like LATEX, HEVEA reacts to the construct \input{file} by loading the file file. (if I got it right, HEVEA even follows TEX’s crazy conventions on .tex extensions).

As it is often the case, assume that the document doc.tex has a \input{mymacros.tex} instruction in its preamble, where mymacros.tex gathers custom definitions. Hopefully, only a few macros give rise to trouble: macros that performs fine typesetting or TEXish macros. Such macros need to be rewritten, using basic LATEX constructs (section 4 gives examples of macro-rewriting). The new definitions are best collected in a style file, mymacros.hva for instance. Then, doc.tex is to be translated by issuing the command:

# hevea mymacros.hva doc.tex

The file mymacros.hva is processed before doc.tex (and thus before mymacros.tex). As a consequence of HEVEA behaviour with respect to definition and redefinition (see section B.8.1), the macro definitions in mymacros.hva take precedence over the ones in mymacros.tex, provided the document original definitions (the ones in mymacros.tex) are performed by \newcommand (or \newenvironment).

Another situation is when HEVEA fails to process a whole style file. Usually, this means that HEVEA crashes on that style file. The basic idea is then to write a mymacros.hva style file that contains alternative definitions for all the commands defined in mymacros.sty. Then, HEVEA should be instructed to load mymacros.hva and not to load mymacros.tex. This is done by invoking hevea as follows:

# hevea mymacros.hva -e mymacros.tex doc.tex

Of course, mymacros.hva must now contain replacements for all the useful macros of mymacro.tex.

2.3.2  Files loaded with \usepackage

As far as I know, LATEX reacts to the construct \usepackage{name} by loading the file name.sty. HEVEA reacts in a similar, but different, manner, by loading the file name.hva.

HEVEA distributions already includes quite a few .hva implementations of famous packages (see section B.17). When a given package (say zorglub) is not implemented, the situation may not be as bad as it may seem first. Hopefully, you are only using a few commands from package zorglub, and you feel confident enough to implement them yourself. Then, it suffices to put your definitions in file zorglub.hva and HEVEA will react to \usepackage{zorglub} by loading zorglub.hva.

See section B.5.2 for the full story on \usepackage.

3  A note on style

3.1  Spacing, Paragraphs

Sequence of spaces normally are translated into one single space. Newlines in the input document undergo a special treatement. A newline triggers a special scanning mode that reads all following spaces and newlines. In case at least one additional newline character is read, then HEVEA executes the \par command. Otherwise, HEVEA outputs a single newline character. This process approximates TEX process for introducting paragraph breaks and, as a result, empty lines produce paragraph breaks.

Space after commands with no argument is skipped (as in LATEX) — however this is not true in math mode, as explained in section 3.2.1.

The following two subsections describe management of paragraphs and spaces after command sequences in greater detail. They can be skipped in first reading.

3.1.1  Spurious Paragraphs

Paragraphs are rendered by the means of p elements. HEVEA is a bit simplistic in breaking paragraphs and spurious paragraphs may be present in the final html document. Normally, as HEVEA never outputs p elements whose contents is made of spaces only, this should not happen very often. Unfortunately, some commands do not produce any output in LATEX, while they do produce output in HEVEA: those commands are \label, \index etc. HEVEA translates \label{name} into the anchor <a id="name"></a>. As a result, the following source fragment will introduce a spurious paragraph.

This a first paragraph.

\label{label}

This is another paragraph.

Indeed, whe have the following translation:

<p>This a first paragraph.</p>
<p><a id="label"></a></p>
<p>This is another paragraph.</p>

Which your browser renders as follows — with additional borders emphasizing p elements.

This a first paragraph.

This is another paragraph.

Most of the time, such extra paragraphs remain unnoticed. Of course, they can be supressed by erasing one of the empty lines. For instance:

This a first paragraph.

\label{label}
This is another paragraph.

A similar situation occurs when a sectioning command is followed by \label and a paragraph break:

\section*{A section}\label{section:label}

First paragraph. 

Produced html is, after a few cosmetic simplifications:

<h2 class="section">A section</h2>
<p><a id="section:label"></a></p>
<p>First paragraph.</p>

Output is so, because closing the element h2 implies re-opening a new paragraph. Your browser renders the above html fragment as follows:

A section

First paragraph.

Here, two possible re-writing of source are:

\section*{A\label{section:label} section}

First paragraph.
\section*{A section}

\label{section:label}First paragraph.

In all cases, this amounts to avoiding a paragraph whose contents consists in a sole \label command.

Spurious paragraphs are more easily seen by running hevea with the command-line option -dv, which instructs hevea to add border on some of the elements it produces, including p elements.

3.1.2  Spaces after Commands

Space after commands with no argument is skipped. Consider the following example:

\newcommand{\open}{(}
\newcommand{\close}{)}
\open text opened by ``\verb+\open+''
and closed by ``\verb+\close+''\close.

We get:

(text opened by “\open” and closed by “\close”).

In the output above, the space after \open does not find its way to the output.

More generally, HEVEA tries to emulate LATEX behaviour in all situations, but discrepancies probably exist. Thus, users are invited to make explicit what they want. This is good practice anyway, because LATEX is mysterious here. Consider the following example, where the \tryspace macro is first applied and then expansed by hand:

\newcommand{\bfsymbol}{\textbf{symbol}}
\newcommand{\tryspace}[1]{#1 XXX}

Some space: \tryspace{\bfsymbol}\\
No space: \bfsymbol XXX

Spacing is a bit chaotic here, the space after symbol remains when #1 is substituted for it by LATEX (or HEVEA).

Some space : symbol XXX
No space : symbolXXX

Note that, if a space before “XXX” is wanted, then one should probably write:

\newcommand{\tryspace}[1]{#1{} XXX}

Finally, whether the tabulation character is a space or not is random, so avoid tabs in your source document.

3.2  Math mode

HEVEA math mode is not very far from normal text mode, except that all letters are shown in italics and that space after macros is echoed.

However, typesetting math formulas in html rises two difficulties. First, formulas contain symbols, such as Greek letters; second, even simple formulas do not follow the simple basic typesetting model of html.

3.2.1  Spacing in math mode

By contrast with LATEX, spaces from the input are significant in math mode, this feature allows users to instruct HEVEA on how to put space in their formulas. For instance, \alpha\rightarrow\beta is typeset without spaces between symbols, whereas \alpha \rightarrow \beta produces these spaces.

\alpha\rightarrow\beta : α→β
\alpha \rightarrow \beta : α → β

Note that LATEX ignores spaces in math mode, so that users can freely adjust HEVEA output without changing anything to LATEX output.

3.2.2  Symbols


Figure 1: Some symbols
\in:      \notin:  
\int:      \prod:  
\preceq:      \prec:  
\leq:      \geq:  
\cup:      \cap:  
\supset:      \subset:  
\supseteq:      \subseteq:  

With respect to previous versions of HEVEA since the begining, the treatment of symbols has significantly evolved. Outputting symbols is now performed by using Unicode character references, an option that much more complies whith standards than the previous option of selecting a “symbol” font. Observe that this choice is now possible, because more and more browsers correctly display such references. See Figure 1 for a few such symbols.

However, this means that ancient or purposely limited browsers (such as text-oriented browsers) cannot display maths, as translated by HEVEA. For authors that insist on avoiding symbols that cannot be shown by any browser, HEVEA offers a degraded mode that outputs text in place of symbols. HEVEA operates in this mode when given the -textsymbols command-line option. Replacement text is in English. For instance. the “∈” symbol is replace by “in”. This is far from being satisfactory, but degraded mode may be appropriate for documents than contain few symbols.

3.2.3  Displays

Apart from containing symbols, formulas specify strong typesetting constraints: sub-elements must be combined together following patterns that departs from normal text typesetting. For instance, fractions numerators and denominators must be placed one above the other. HEVEA handles such constraints in display mode only.

The main two operating modes of HEVEA are text mode and display mode. Text mode is the mode for typesetting normal text, when in this mode, text items are echoed one following the other and paragraph breaks are just blank lines, both in input and output. The so called displayed-paragraph environments of LATEX (such as center or quote) are rendered by html block-level elements (such as div or blockquote). Rendering is correct becauses both LATEX displayed environments and html block-level elements start a new line. Conversly, since opening a html block-level elements means starting a new line, any text that sould appear inside a paragraph must be translated using only html text-level elements. HEVEA chooses to translate in-text formulas that way.

HEVEA display mode allows more control on text placement, since entering display mode means opening a html table element and that tables allow to control the relative position of their sub-elements. Displays come in two flavor, horizontal displays and vertical displays. An horizontal display is a one-row table, while a vertical display is a one-column table. These tables holds display sub-elements, displays sub-elements being centered vertically in horizontal display mode and horizontally in vertical display mode.

Display mode is first opened by opening a displaymath environment (e.g. by $$ or \[). Then, sub-displays are opened by LATEX constructs which require them. For instance, a displayed fraction (\frac) opens a vertical display.

The distinction between text and display modes clearly appears while typesetting math formulas. An in-text formula such as $\int_1^2 xdx = \frac{3}{2}$ appears as: ∫12 xdx =3/2, while the same formula has a better aspect in display mode:

2


1
xdx = 
3
2

As a consequence, HEVEA is more powerful in display mode and formulas should be displayed as soon as they get a bit complicated. This rule is also true in LATEX but it is more strict in HEVEA, since html capabilities to typeset formulas inside text are quite poor. In particular, it is not possible to get in-text “real” fractions or in-text limit-like subscripts.

Users should remember that HEVEA is not TEX or LATEX and that HEVEA author neither is D. E. Knuth nor L. Lamport. Thus, some formulas may be rendered poorly. For instance, two fractions with different denominator and numerator height look strange.

1
N
i=0
Ui
 = 
N
i=0
Ui
1

The reason is that vertical displays in an horizontal display are html tables that always get centered in the vertical direction. Such a crude model cannot faithfully emulate any TEX box placement.

Users can get an idea on how HEVEA combines elements in display mode by giving the -dv command-line option, which instructs HEVEA to add borders to the table elements introduced by displays.

3.2.4  Arrays and display mode

By contrast with formulas, which HEVEA attempts to render with text-level elements only when they appear inside paragraphs, LATEX arrays always translate to the block-level element table, thereby introducing non-desired line breaks before and after in-text arrays. As a consequence, in-text arrays yield an acceptable output, only while alone in a paragraph.

Consider the following source:

This is a small array:
\begin{tabular}{|cc|}
\hline item-1 & item-2 \\
\hline\end{tabular}. Next sentence.

We get:

This is a small array:
item-1item-2
. Next sentence.

However, since in some sense, all html tables are displayed, the array and tabular environments implicitly open display mode, thus allowing a satisfactory typesetting of formulas in arrays. More precisely, array elements whose column format specification is l, c or r are typeset in display mode (see section B.10.2).

3.3  Warnings

When HEVEA thinks it cannot translate a symbol or construct properly, it issues a warning. This draws user attention onto a potential problem. However, rendering may be correct.

In the following (silly) example, HEVEA gets nervous because of the complicated length given as argument to \hspace:

\newlength{\mylength}\setlength{\mylength}{5pt}
\begin{tabular}{c@{\hspace{\mylength}}c}
Before & After
\end{tabular}

Running HEVEA on this input produces a warning:

# hevea manual.tex
...
manual.tex:507: Warning: \hspace with arg '\mylength'
...

However the final rendering is correct:

BeforeAfter

Note that all warnings can be suppressed with the -s (silent) option. When a warning reveals a real problem, it can often be cured by writing a specific macro. The next two sections introduce HEVEA macros, then section 4 describes how to proceed with greater detail.

3.4  Commands

Just like LATEX, HEVEA can be seen as a macro language, macros are rewritten until no more expansion is possible. Then, either some characters (such as letters, integers…) are outputed or some internal operation (such as changing font attributes, or arranging text items in a certain manner) are performed.

This scheme favors easy extension of program capabilities by users. However, predicting program behaviour and correcting errors may prove difficult, since final output or errors may occur after several levels of macro expansion. As a consequence, users can tailor HEVEA to their needs, but it remains a subtle task. Nevertheless, happy LATEX users should enjoy customizing HEVEA, since this is done by writing LATEX code.

3.5  Style choices

LATEX and html differ in many aspects. For instance, LATEX allows fine control over text placement, whereas html does not. More symbols and font attributes are available in LATEX than in html. Conversely, html has font attributes, such as color, which standard LATEX has not.

Therefore, there are many situations where HEVEA just cannot render the visual effect of LATEX constructions. Here some choices have to be made. For instance, calligraphic letters (\mathcal) are rendered in red.

If you are not satisfied with HEVEA rendering of text style declarations, then you can choose your own, by redefining the \cal macros, using \renewcommand, the macro redefinition operator of LATEX. The key point is that you need not worry about HEVEA internals: just redefine the old-LATEX style text-style declarations (i.e. \it, \sc, etc.) and everything should get fine:

\renewcommand{\sc}{\Huge}
\renewcommand{\cal}{\em}

(See sections 4 and 5 on how to make such changes while leaving your file processable by LATEX, and section 10.2 for a more thorough descripton of customizing type styles).

With such redefinitions, we get:

This is small caps and this is CALLIGRAPHIC LETTERS

Note that many of LATEX commands and environments are defined in the hevea.hva file that HEVEA loads before processing any input. These constructs are written using LATEX source code, in the end they invoke HEVEA internal commands.

Other LATEX constructs, such as LATEX key constructs or HEVEA internal commands (see section 8.3), that require special processing are defined in HEVEA source code. However, the vast majority of these definitions can be overridden by a redefinition. This may prove useless, since there is little point in redefining core constructs such as \newcommand for instance.

4  How to detect and correct errors

Most of the problems that occur during the translation of a given LATEX file (say trouble.tex) can be detected and solved at the macro-level. That is, most problems induce a macro-related warning and can be solved by writing a few macros. The best place for these macros is an user style file (say trouble.hva) given as argument to HEVEA.

# hevea trouble.hva trouble.tex

By doing so, the macros written specially for HEVEA are not seen by LATEX. Even better, trouble.tex is not changed at all.

A worth-mentiong alternative is inserting \usepackage{trouble} in the document preamble. Then, given HEVEA semantics for \usepackage (see Section B.5.2), HEVEA-specific commands should be placed in the file “trouble.hva” file, while LATEX-specific commands should be placed in teh file “trouble.sty”.

Of course, adapting a document to HEVEA processing will be easier if the LATEX source is written in a generic style, using macros. Note that this style is recommended anyway, since it facilitates document maintenance.

4.1  HEVEA does not know a macro

Consider the following LATEX source excerpt:

You can \raisebox{.6ex}{\em raise} text.

LATEX typesets this as follows:

Since HEVEA does not know about \raisebox, it incorrectly processes this input. More precisely, it first prints a warning message:

trouble.tex:34: Unknown macro: \raisebox

Then, it goes on by translating the arguments of \raisebox as if they were normal text. As a consequence some .6ex is finally found in the html output:

You can .6exraise text.

To correct this, you should provide a macro that has more or less the effect of \raisebox. It is impossible to write a generic \raisebox macro for HEVEA, because of html limitations. However, in this case, the effect of \raisebox is to raise the box a little. Thus, the first, numerical, argument to \raisebox can be ignored in a private \raisebox macro defined in trouble.hva:

\newcommand{\raisebox}[2]{$^{\mbox{#2}}$}

Now, translating the document yields:

You can raise text a little.

Of course, this will work only when all \raisebox commands in the document raise text a little. Consider, the following example, where text is both raised a lowered a little:

You can \raisebox{.6ex}{\em raise}
or \raisebox{-.6ex}{\em lower} text.

Which LATEX renders as follows:

Whereas, with the above definition of \raisebox, HEVEA produces:

You can raise or lower text.

A solution is to add a new macro definition in the trouble.hva file:

\newcommand{\lowerbox}[2]{$_{\mbox{#2}}$}

Then, trouble.tex itself has to be modified a little.

You can \raisebox{.6ex}{\em raise}
or \lowerbox{-.6ex}{\em lower} text.

HEVEA now produces a satisfying output:

You can raise or lower text.

Note that, for the document to remain LATEX-processable, it should also contain the following definition for \lowerbox:

\newcommand{\lowerbox}[2]{\raisebox{#1}{#2}}

This definition can safely be placed anywhere in trouble.tex, since by HEVEA semantics for \newcommand (see section B.8.1) the new definition will not overwrite the old one.

4.2  HEVEA incorrectly interprets a macro

Sometimes HEVEA knows about a macro, but the produced html does not look good when seen through a browser. This kind of errors is detected while visually checking the output. However, HEVEA does its best to issue warnings when such situations are likely to occur.

Consider, for instance, this definition of \blob as a small black square.

\newcommand{\blob}{\rule[.2ex]{1ex}{1ex}}
\blob\ Blob \blob

Which LATEX typesets as follows:

HEVEA always translates \rule as <hr>, ignoring size arguments. Hence, it produces the following, wrong, output:


Blob

We may not be particularily commited to a square blob. In that case, other small symbols would perfectly do the job of \blob, such as a bullet (\bullet). Thus, you may choose to give \blob a definition in trouble.hva:

\newcommand{\blob}{\bullet}

This new definition yields the following, more satisfying output:

• Blob •

In case we do want a square blob, there are two alternatives. We can have LATEX typeset some subparts of the document and then to include them as images, section 6 explains how to proceed. We can also find a square blob somewhere in the variety of Unicode (or do I mean ISO 10646?) characters, and define \blob as a numerical character reference. Here, the character U+02588 seems ok.

\newcommand{\blob}{\@print@u{X2588}}
█ Blob █

However, beware that not all browsers display all of Unicode…

4.3  HEVEA crashes

HEVEA failure may have many causes, including a bug. However, it may also stem from a wrong LATEX input. Thus, this section is to be read before reporting a bug…

4.3.1  Simple cases: LATEX also crashes

In the following source, environments are not properly balanced:

\begin{flushright}
\begin{quote}
This is right-flushed quoted text.
\end{flushright}
\end{quote}

Such a source will make both LATEX and HEVEA choke. HEVEA issues the following error message that shows the LATEX environment that is not closed properly:

./trouble.tex:6: Environment nesting error: html: 'DIV' closes 'BLOCKQUOTE'
./trouble.tex:4: Latex environment 'quote' is pending
Adios

Thus, when HEVEA crashes, it is a good idea to check that the input is correct by running LATEX on it.

4.3.2  Complicated cases

Unfortunately, HEVEA may crash on input that does not affect LATEX. Such errors usually relate to environment or group nesting.

Consider for instance the following “optimized” version of a quoteright environment:

\newenvironment{quoteright}{\quote\flushright}{\endquote}

\begin{quoteright}
This a right-flushed quotation
\end{quoteright}

The \quote and \flushright constructs are intended to replace \begin{quote} and \begin{flushright}, while \endquote stands for \end{quote}. Note that the closing \endflushright is omitted, since it does nothing. LATEX accepts such an input and produces a right-flushed quotation.

However, HEVEA usually translates LATEX environments to html block-level elements and it requires those elements to be nested properly. Here, \quote translates to <blockquote>, \flushright translates to <div class="flushright"> and \endquote translates to </blockquote>. At that point, HEVEA refuses to generate obviously non-correct html and it crashes:

Giving up command: \@close
Giving up command: \endquote
Giving up command: \endquoteright
Giving up command: \end
./trouble.tex:7: Environment nesting error: html: 'BLOCKQUOTE' closes 'DIV'
./trouble.tex:5: Latex environment 'quoteright' is pending
Adios

Also notice that the error message above includes a backtrace showing the call-chain of commands.

In this case, the solution is easy: environments must be opened and closed consistently. LATEX style being recommended, one should write:

\newenvironment{quoteright}
  {\begin{quote}\begin{flushright}}
  {\end{flushright}\end{quote}}

And we get:

This is a right-flushed quotation

Unclosed LATEX groups ({…) are another source of nuisance to HEVEA. Consider the following horreur.tex file:

\documentclass{article}

\begin{document}
In this sentence, a group is opened now {\em and never closed.
\end{document}

LATEX accepts this file, although it produces a warning:

# latex horreur.tex 
This is TeX, Version 3.14159 (Web2C 7.2)
  ...
(\end occurred inside a group at level 1)
Output written on horreur.dvi (1 page, 280 bytes).

By contrast, running HEVEA on horreur.tex yields a fatal error:

# hevea horreur.tex 
Giving up command: \@raise@enddocument
Giving up command: \enddocument
Giving up command: \end
./horreur.tex:4: Environment nesting error: Latex env error: 'document' closes ''
./horreur.tex:3: Latex environment '' is pending
Adios

Thus, users should close opening braces where it belongs. Note that HEVEA error message “Latex environment ’env’ is pending” helps a lot in locating the brace that hurts.

4.3.3  Desperate cases

If HEVEA crashes on LATEX source (not on TEX source), then you may have discovered a bug, or this manual is not as complete as it should. In any case, please report to Luc.Maranget@inria.fr.

To be useful, your bug report should include LATEX code that triggers the bug (the shorter, the better) and mention HEVEA version number.

5  Making HEVEA and LATEX both happy

A satisfactory translation from LATEX to html often requires giving instructions to HEVEA. Typically, these instructions are macro definitions and these instructions should not be seen by LATEX. Conversely, some source that LATEX needs should not be processed by HEVEA. Basically, there are three ways to make input vary according to the processor, file loading, the hevea package and comments.

5.1  File loading

HEVEA and LATEX treat files differently. Here is a summary of the main differences:

  • LATEX and HEVEA both load files given as arguments to \input, however when given the option -e filename, HEVEA does not load filename.
  • HEVEA loads all files given as command-line arguments.
  • Both LATEX and HEVEA load style files given as optional arguments to \documentstyle and as arguments to \usepackage, but the files are searched by following different methods and considering different file extensions.

As a consequence, for having a file latexonly loaded by LATEX only, it suffices to use \input{latexonly} in the source and to invoke HEVEA as follows:

# hevea -e latexonly

Having heveaonly loaded by HEVEA only is more simple: it suffices to invoke HEVEA as follows:

# hevea heveaonly

Finally, if one has an HEVEA equivalent style.hva for a LATEX style file style.sty, then one should load the file as follows:

\usepackage{style}

This will result in, LATEX loading style.sty, while HEVEA loads style.hva. As HEVEA will not fail in case style.hva does not exist, this is another method for having a style file loaded by LATEX only.

Writing an HEVEA-specific file file.hva is the method of choice for supplying command definitions to HEVEA only. Users can then be sure that these definitions are not seen by LATEX and will not get echoed to the image file (see section 6).

The file file.hva can be loaded by either supplying the command-line argument file.hva, or by \usepackage{file} from inside the document. Which method is better depends on whether you choose to override or to replace the document definition. In the command-line case, definitions from file.hva are processed before the ones from the document and will override them, provided the document definitions are made using \newcommand (or \newenvironment). In the \usepackage case, HEVEA loads file.hva at the place where LATEX loads file.sty, hence the definitions from file.hva replace the definitions from file.sty in the strict sense.

5.2  The hevea package

The hevea.sty style file is intended to be loaded by LATEX and not by HEVEA. It provides LATEX with means to ignore or process some parts of the document. Note that HEVEA copes with the constructs defined in the hevea.sty file by default. It is important to notice that the hevea.sty style file from the distribution is a package in LATEX 2є terms and that it is not compatible with old LATEX. Moreover, the hevea package loads the comment package which must be present. Also notice that, for compatibility, HEVEA reacts to \usepackage{hevea} by loading its own version of the comment package (Section B.17.6).

5.2.1  Environments for selecting a translator

HEVEA and LATEX perform the following actions on source inside the latexonly, verblatex, htmlonly, rawhtml, toimage and verbimage environments:

environment HEVEALATEX
latexonly ignore, \end{env} constructs are processed (see section 5.2.2)  process
verblatex ignore  process
htmlonly process  ignore
rawhtml echo verbatim (see section 8.4)  ignore
toimage send to the image file, \end{env} constructs and macro characters are processed (see section 6)  process
verbimage send to the image file (see section 6)  process

As an example, this is how some text can be typeset in purple by HEVEA and left alone by LATEX:

We get:
\begin{htmlonly}%
\purple purple rain, purple rain%
\end{htmlonly}
\begin{latexonly}%
purple rain, purple rain%
\end{latexonly}%
\ldots

We get: purple rain, purple rain

It is impossible to avoid the spurious space in HEVEA output for the source above. This extra spaces comes from the newline character that follows \end{htmlonly}. Namely this construct must appear in a line of its own for LATEX to recognize it. Anyway, better control over spaces can be achieved by using the hevea boolean register or comments, see sections 5.2.3 and 5.3.

Also note that environments define a scope and that style changes (and non-global definitions) are local to them. For instance, in the example above, “…” appears in black in html output. However, as an exception, the environments image and verbimage do not create scope. It takes a little practice of HEVEA to understand why this is convenient.

5.2.2  Why are there two environments for ignoring input?

Some scanning and analysis of source is performed by HEVEA inside the latexonly environment, in order to allow latexonly to dynamically occur inside other environments.

More specifically, \end{env} macros are recognized and their env argument is tested against the name of the environment whose opening macro \env opened the latexonly environment. In that case, macro expansion of \endenv is performed and any further occurrence of \end{env’} is tested and may get expanded if it matches a pending \begin{env’} construct.

This enables playing tricks such as:

\newenvironment{latexhuge}
  {\begin{latexonly}\huge}
  {\end{latexonly}}

\begin{latexhuge}
This will appear in huge font in \LaTeX{} output only.
\end{latexhuge}

LATEX output will be:

While there is no HEVEA output.

Since HEVEA somehow analyses input that is enclosed in the latexonly environment, it may choke. However, this environment is intended to select processing by LATEX only and might contain arbitrary source code. Fortunately, it remains possible to have input processed by LATEX only, regardless of what it is, by enclosing it in the verblatex environment. Inside this environment, HEVEA performs no other action than looking for \end{verblatex}. As a consequence, the \begin{verblatex} and \end{verblatex} constructs may only appear in the main flow of text or inside the same macro body, a bit like LATEX verbatim environment.

Relations between toimage and verbimage are similar. Additionally, formal parameters #i are replaced by actual arguments inside the toimage environment (see end of section 6.3 for an example of this feature).

5.2.3  The hevea boolean register

Boolean registers are provided by the ifthen package (see [LATEX, Section C.8.5] and section B.8.5 in this document). Both the hevea.sty style file and HEVEA define the boolean register hevea. However, this register initial value is false for LATEX and true for HEVEA.

Thus, provided, both the hevea.sty style file and the ifthen packages are loaded, the “purple rain” example can be rephrased as follows:

We get:
{\ifthenelse{\boolean{hevea}}{\purple}{}purple rain, purple rain}\ldots

We get: purple rain, purple rain

Another choice is using the TEX-style conditional macro \ifhevea (see Section B.16.1.4):

We get:
{\ifhevea\purple\fi purple rain, purple rain}\ldots

We get: purple rain, purple rain

5.3  Comments

HEVEA processes all lines that start with %HEVEA, while LATEX treats these lines as comments. Thus, this is a last variation on the “purple rain” example:

We get
%HEVEA{\purple
purple rain, purple rain%
%HEVEA}%
\ldots

(Note how comments are placed at the end of some lines to avoid spurious spaces in the final output.)

We get: purple rain, purple rain

Comments thus provide an alternative to loading the hevea package. For user convenience, comment equivalents to the latexonly and toimage environment are also provided:

environmentcomment equivalent
\begin{latexonly}\end{latexonly}
%BEGIN LATEX
%END LATEX
  
\begin{toimage}\end{toimage}
%BEGIN IMAGE
%END IMAGE

Note that LATEX, by ignoring comments, naturally performs the action of processing text between %BEGIN and %END comments. However, no environment is opened and closed and no scope is created while using comment equivalents.

6  With a little help from LATEX

Sometimes, HEVEA just cannot process its input, but it remains acceptable to have LATEX process it, to produce an image from LATEX output and to include a link to this image into HEVEA output. HEVEA provides a limited support for doing this.

6.1  The image file

While outputting doc.html, HEVEA echoes some of its input to the image file, doc.image.tex. Part of this process is done at the user’s request. More precisely, the following two constructs send text to the image file:

\begin{toimage}
text
\end{toimage}
 
%BEGIN IMAGE
text
%END IMAGE

Additionally, \usepackage commands, top-level and global definitions are automatically echoed to the image file. This enables using document-specific commands in text above.

Output to the image file builds up a current page, which is flushed by the \imageflush command. This command has the following effect: it outputs a strict page break in the image file, increments the image counter and output a <img src="pagename.png"> tag in HEVEA output file, where pagename is build from the image counter and HEVEA output file name. Then the imagen script has to be run by:

# imagen doc

This will process the doc.image.tex file through LATEX, dvips, ghostscript and a few others tools, which must all be present (see section C.4.1), finally producing one pagename.png file per page in the image file.

The usage of imagen is described at section C.1.5. Note that imagen is a simple shell script. Unix users can pass hevea the command-line option -fix. Then hevea will itself call imagen, when appropriate.

6.2  A toy example

Consider the “blob” example from section 4.2. Here is the active part of a blob.tex file:

 \newcommand{\blob}{\rule[.2ex]{1ex}{1ex}}
 \blob\ Blob \blob

This time, we would like \blob to produce a small black square, which \rule[.2ex]{1ex}{1ex} indeed does in LATEX. Thus we can write:

 \newcommand{\blob}{%
 \begin{toimage}\rule[.2ex]{1ex}{1ex}%
 \end{toimage}%
 \imageflush}
 \blob\ Blob \blob

Now we issue the following two commands:

 # hevea blob.tex
 # imagen blob

And we get:

Blob

Observe that the trick can be used to replace missing symbols by small .png images. However, the cost may be prohibitive, text rendering is generally bad, fine placement is ignored and font style changes are problematic. Cost can be lowered using \savebox, but the other problems remain.

6.3  Including Postscript images

In this section, a technique to transform included Postscript images into included bitmap images is described. Note that this technique is used by HEVEA implementation of the graphics package (see section B.14.1), which provides a more standard manner to include Postscript images in LATEX documents.

Included images are easy to manage: it suffices to let LATEX do the job. Let round.ps be a Postscript file, which is included as an image in the source file round.tex (which must load the epsf package):

 \begin{center}
 \epsfbox{round.ps}
 \end{center}

Then, HEVEA can have this image translated into a inlined (and centered) .png image by modifying source as follows:

 \begin{center}
 %BEGIN IMAGE
 \epsfbox{round.ps}
 %END IMAGE
 %HEVEA\imageflush
 \end{center}

(Note that the round.tex file still can be processed by LATEX, since comment equivalents of the toimage environment are used and that the \imageflush command is inside a %HEVEA comment — see section 5.3.)

Then, processing round.tex through HEVEA and imagen yields:

It is important to notice that things go smoothly because the \usepackage{epsf} command gets echoed to the image file. In more complicated cases, LATEX may fail on the image file because it does not load the right packages or define the right macros.

However, the above solution implies modifying the original LATEX source code. A better solution is to define the \epsfbox command, so that HEVEA echoes \epsfbox and its argument to the image file and performs \imageflush:

 \newcommand{\epsfbox}[1]{%
 \begin{toimage}
 \epsfbox{#1}
 \end{toimage}
 \imageflush}

Such a definition must be seen by HEVEA only. So, it is best put in a separate file whose name is given as an extra argument on HEVEA command-line (see section 5.1). Putting it in the document source protected inside an %HEVEA comment is a bad idea, because it might then get echoed to the image file and generate trouble when LATEX is later run by imagen.

Observe that the above definition of \epsfbox is a definition and not a redefinition (i.e. \newcommand is used and not \renewcommand), because HEVEA does not know about \epsfbox by default. Also observe that this not a recursive definition, since commands do not get expanded inside the toimage environment.

Finally, if the Postscript image is produced from a bitmap, it is a pity to translate it back into a bitmap. A better idea is first to generate a PNG file from the bitmap source independantly and then to include a link to that PNG file in html output, see section 8.2 for a description of this more adequate technique.

6.4  Using filters

Some programs extend LATEX capabilities using a filter principle. In such a scheme, the document contains source fragments for the program. A first run of the program on LATEX source changes these fragments into constructs that LATEX (or a subsequent stage in the paper document production chain, such as dvips) can handle. Here again, the rule of the game is keeping HEVEA away from the normal process: first applying the filter, then making HEVEA send the filter output to the image file, and then having imagen do the job.

Consider the gpic filter, for making drawings. Source for gpic is enclosed in .PS.PE, then the result is available to subsequent LATEX source as a TEX box \box\graph. For instance the following source, from a smile.tex file, draws a “Smile!” logo as a centered paragraph:

 .PS
 ellipse "{\Large\bf Smile!}"
 .PE
 \begin{center}
 ~\box\graph~
 \end{center}

Both the image description (.PS.PE) and usage (\box\graph) are for the image file, and they should be enclosed by %BEGIN IMAGE%END IMAGE comments. Additionally, the image link is put where it belongs by an \imageflush command:

 %BEGIN IMAGE
 .PS
 ellipse "{\Large\bf Smile!}"
 .PE
 %END IMAGE
 \begin{center}
 %BEGIN IMAGE
 ~\box\graph~
 %END IMAGE
 %HEVEA\imageflush
 \end{center}

The gpic filter is applied first, then come hevea and imagen:

 # gpic -t < smile.tex > tmp.tex
 # hevea tmp.tex -o smile.html
 # imagen smile

And we get:

Observe how the -o argument to HEVEA is used and that imagen argument is HEVEA output basename (see section C.1.1.2 for the full definition of HEVEA output basename).

In the gpic example, modifying user source cannot be totally avoided. However, writing in a generic style saves typing. For instance, users may define the following environment for centered gpic pictures in LATEX:

 \newenvironment{centergpic}{}{\begin{center}~\box\graph~\end{center}}

Source code will now be as follows:

 \begin{centergpic}
 .PS
 ellipse "{\Large\bf Smile!}"
 .PE
 \end{centergpic}

HEVEA will process this source correctly, provided it is given its own definition for the centergpic environment beforehand:

 \newenvironment{centergpic}
   {\begin{toimage}}
   {\box\graph\end{toimage}\begin{center}\imageflush\end{center}}

Assuming that the definition above is in a smile.hva file, the command sequence for translating smile.tex now is:

 # gpic -t < smile.tex > tmp.tex
 # hevea smile.hva tmp.tex -o smile.html
 tmp.tex:5: Warning: ignoring definition of \centergpic
 tmp.tex:5: Warning: not defining environment centergpic
 # imagen smile

The warnings above are normal: they are issued when HEVEA runs across the LATEX-intended definition of the centergpic environment and refuses to override its own definition for that environment.

7  Cutting your document into pieces with HACHA

HEVEA outputs a single .html file. This file can be cut into pieces at various sectional units by HACHA

7.1  Simple usage

First generate your html document by applying HEVEA:

# hevea doc.tex

Then cut doc.html into pieces by the command:

# hacha doc.html

This will generate a simple root file index.html. This root file holds document title, abstract and a simple table of contents. Every item in the table of contents contains a link to or into a file that holds a “cutting” sectional unit. By default, the cutting sectional unit is section in the article style and chapter in the book style. The name of those files are doc001.html, doc002.html, etc.

Additionally, one level of sectioning below the cutting unit (i.e. subsections in the article style and sections in the book style) is shown as an entry in the table of contents. Sectional units above the cutting section (i.e. parts in both article and book styles) close the current table of contents and open a new one. Cross-references are properly handled, that is, the local links generated by HEVEA are changed into remote links.

The name of the root file can be changed using the -o option:

# hacha -o root.html doc.html

Some of HEVEA output get replicated in all the files generated by HACHA. Users can supply a header and a footer, which will appear at the begining and end of every page generated by HACHA. It suffices to include the following commands in the document preamble:

  \htmlhead{header}
  \htmlfoot{footer}

HACHA also makes every page it generates a clone of its input as regards attributes to the <body ...> opening tag and meta-information from the <head><\head> block. See section B.2 for examples of this replication feature.

By contrast, style information specified in the style elements from rom the <head><\head> block is not replicated. Instead, all style definitions are collected into an external style sheet file whose name is doc.css, and all generated html files adopt doc.css as an external style sheet. It is important to notice that, since version 1.08, HEVEA produces a style element by itself, even if users do not explicitely use styles. As a consequence, HACHA normally produces a file doc.css, which should not be forgotten while copying files to their final destination after a run of HACHA.

7.2  Advanced usage

HACHA behaviour can be altered from the document source, by using a counter and a few macros.

A document that explicitly includes cutting macros still can be typeset by LATEX, provided it loads the hevea.sty style file from the HEVEA distribution. (See section 5 for details on this style file). An alternative to loading the hevea package is to put all cutting instructions in comments starting with %HEVEA.

7.2.1  Principle

HACHA recognizes all sectional units, ordered as follows, from top to bottom: part, chapter, section, subsection, subsubsection, paragraph and subparagraph.

At any point between \begin{document} and \end{document}, there exist a current cutting sectional unit (cutting unit for short), a current cutting depth, a root file and an output file. Table of contents output goes to the root file, normal output goes to the output file. Cutting units start a new output file, whereas units comprised between the cutting unit and the cutting units plus the cutting depth add new entries in the table of contents.

At document start, the root file and the output file are HACHA output file (i.e. index.html). The cutting unit and the cutting depth are set to default values that depend on the document style.

7.2.2  Cutting macros

The following cutting instructions are for use in the document preamble. They command the cutting scheme of the whole document:

\cuttingunit
This is a macro that holds the document cutting unit. You can change the default (which is section in the article style and chapter in the book style) by doing:
\renewcommand{\cuttingunit}{secname}.
\tocnumber
Instruct HEVEA to put section numbers into table of content entries.
\notocnumber
Instruct HEVEA not to put section numbers into table of content entries. This is the default.
cuttingdepth
This is a counter that holds the document cutting depth. You can change the default value of 1 by doing \setcounter{cuttingdepth}{numvalue}. A cutting depth of zero means no other entries than the cutting units in the table of contents.

Other cutting instructions are to be used after \begin{document}. They all generate html comments in HEVEA output. These comments then act as instructions to HACHA.

\cuthere{secname}{itemtitle}
Attempt a cut.
  • If secname is the current cutting unit or the keyword now, then a new output file is started and an entry in the current table of contents is generated, with title itemtitle. This entry holds a link to the new output file.
  • If secname is above the cutting unit, then the current table of contents is closed. The output file is set to the current root file.
  • If secname is below the cutting unit and less than the cutting depth away from it, then an entry is added in the table of contents. This entry contains itemtitle and a link to the point where \cuthere appears.
  • Otherwise, no action is performed.
\cutdef[depth]{secname}
Open a new table of contents, with cutting depth depth and cutting unit secname. If the optional depth is absent, the cutting depth does not change. The output file becomes the root file. Result is unspecified if whatever secname expands to is a sectional unit name above the current cutting unit, is not a valid sectional unit name or if depth does not expand to a small positive number.
\cutend
End the current table of contents. This closes the scope of the previous \cutdef. The cutting unit and cutting depth are restored. Note that \cutdef and \cutend must be properly balanced.

Commands \cuthere and \cutend have starred variants, which behave identically except for footnotes (see 7.3.6).

Default settings work as follows: \begin{document} performs

\cutdef*[\value{cuttingdepth}]{\cuttingunit}

and \end{document} performs \cutend*. All sectioning commands perform \cuthere, with the sectional unit name as first argument and the (optional, if present) sectioning command argument (i.e. the section title) as second argument. Note that starred versions of the sectioning commands also perform cutting instructions.

7.2.3  Table of links organisation

A table of links generated by HACHA is a list of links to generated files. Additionally, some sublists may be present, up to a certain depth. The items in those sublists are links inside generated files, they point to sectional unit titles below the cutting unit, up to a certain depth.

More precisely, let A be a certain sectional unit (e.g. “part”), let B be just below A (e.g. “section”), and let C be just below C (e.g. “subsection”). Further assume that cutting is performed at level B with a depth of more than one. Then, every unit A holds a one or several tables of links to generated files, and each generated file normally holds a B unit. Sublists with links to C units inside B units normally appear in the tables of links of level A. The command-line options -tocbis and -tocter instruct hacha to put sublists at other places. With -tocbis sublists are duplicated at the beginning of the B level files; while with -tocter sublist only appear at the beginning of the B level files.

In my opinion, default style is appropriate for documents with short B units; while -tocbis style is appropriate for documents with long B units with a few sub-units; and -tocter style is appropriate for documents with long B units with a lot of sub-units. As you may have noticed, this manual is cut by following the -tocbis style.

Whatever the style is, if a B unit is cut (e.g. because its text is enclosed in \cutdef{C}\cutend), then every C unit goes into its own file and there is no sublist after the relevant B level entry in the A level table of links.

7.2.4  Examples

Consider, for instance, a book document with a long chapter that you want to cut at the section level, showing subsections:

\chapter{A long chapter}
.....

\chapter{The next chapter}

Then, you should insert a \cutdef at chapter start and a \cutend at chapter end:

\chapter{A long chapter}
%HEVEA\cutdef[1]{section}
.....
%HEVEA\cutend
\chapter{The next chapter}

Then, the file that would otherwise contain the long chapter now contains the chapter title and a table of sections. No other change is needed, since the command \section already performs the appropriate \cuthere{section}{...} commands, which were ignored by default. (Also note that cutting macros are placed inside %HEVEA comments, for LATEX not to be disturbed).

The \cuthere macro can be used to put some document parts into their own file. This may prove appropriate for long cover pages or abstracts that would otherwise go into the root file. Consider the following document:

\documentclass{article}

\begin{document}

\begin{abstract} A big abstract \end{abstract}
...

Then, you make the abstract go to its own file as it was a cutting unit by typing:

\documentclass{article}
\usepackage{hevea}

\begin{document}
\cuthere{\cuttingunit}{Abstract}
\begin{abstract} A big abstract \end{abstract}
...

(Note that, this time, cutting macros appear unprotected in the source. However, LATEX still can process the document, since the hevea package is loaded).

7.2.5  More and More Pages in Output

In some situations it may be appropriate to produce many pages from one source files. More specifically, loading the deepcut package will put all sectioning units of your document (from \part to \subsection in their own file.

Similarly, loading the figcut package will make all figures and tables go into their own file. The figcut package accepts two options, show and noshow. The former, which is the default, instructs HEVEA to repeat the caption into the main flow of text, with a link to the figure. The latter option disables the feature.

7.3  More Advanced Usage

In this section we show how to alter some details of HACHA behaviour. This includes controlling output file names and the title of generated web pages and introducing arbitrary cuts.

7.3.1  Controlling output file names

When invoked as hacha doc.html, HACHA produces a index.html table of links file that points into doc001.html, doc002.html, etc. content files. This is not very convenient when one wishes to point inside the document from outside. However, the \cutname{name} command sets the name of the current output file name as name.

Consider a document cut at the section level, which contains the following important section:

\section{Important\label{important} section}
...

To make the important section goes into file important.html, one writes:

\section{Important\label{important} section}\cutname{important.html}
...

Then, section “Important section” can be referenced from an HEVEA unaware html page by:

In this document, there is a very
<a href="important.html#important">important section</a>.

If you are reading the html version of this manual, you may check that you are now reading file cutname.html. This particular file name has been specified from the source using \cutname{cutname.html}.

7.3.2  Controlling page titles

When HACHA creates a web page from a given sectional unit, the title of this page normally is the name of the sectional unit. For instance, the title of this very page should be “Cutting your document into pieces with HACHA”. It is possible to insert some text at the beginning of all page titles, by using the \htmlprefix command. Hence, by writing \htmlprefix{\hevea{} Manual: } in the document, the title of this page would become: “HEVEA Manual: Cutting your document into pieces with HACHA” and the title of all other pages would show the same prefix.

7.3.3  Links for the root file

The command \toplinks{prev}{up}{next} instructs HACHA to put links to a “previous”, “up” and “next” page in the root file. The following points are worth noticing:

  • The \toplink command must appear in the document preamble (i.e. before \begin{document}).
  • The arguments prev, up and next should expand to urls, notice that these argument are processed (see section 8.1.1).
  • When one of the expected argument is left empty, the corresponding link is not generated.

This feature can prove useful to relate documents that are generated independently by HEVEA and HACHA.

7.3.4  Controlling link aspect from the document

By default the links to the previous, up and next pages show a small icon (an appropriate arrow). This can be changed with the command \setlinkstext{prev}{up}{next}, where prev, up and next are some LATEX source. For instance the default behaviour is equivalent to:

\setlinkstext
  {\imgsrc[alt="Previous"]{previous_motif.gif}}
  {\imgsrc[alt="Up"]{contents_motif.gif}}
  {\imgsrc[alt="Next"]{next_motif.gif}}

Command \setlinkstext behaves as \toplinks does. That is, it must occur in document preamble, arguments are processed and empty arguments yield no effect (i.e. defaults apply).

7.3.5  Cutting a document anywhere

Part of a document goes to a separate file when enclosed in a cutflow environment:

\begin{cutflow}{title}\end{cutflow}

The content “…” will go into a file of its own, while the argument title is used as the title of the introduced html page.

The html page introduced here does not belong to the normal flow of text. Consequently, one needs an explicit reference from the normal flow of text into the content of the cutflow environment. This will occur naturally when the content of the cutflow environment. contains a \label construct. This look natural in the following quiz example:

\paragraph{A small quiz}
\begin{enumerate}
\item What is black?
\item What is white?
\item What is Dylan?
\end{enumerate}
Answers in section~\ref{answers}.
\begin{cutflow}{Answers}
\paragraph{Quiz answers}\label{answers}
\begin{enumerate}
\item Black is black.
\item White is white.
\item Dylan is Dylan.
\end{enumerate}
\end{cutflow}

The example yields:

A small quiz

  1. What is black?
  2. What is white?
  3. What is Dylan?

Answers in section 7.3.5.

Quiz answers

  1. Black is black.
  2. White is white.
  3. Dylan is Dylan.

However,introducing html hyperlink targets and references with the \aname and \ahrefloc commands (see section 8.1.1) will be more practical most of the time.

The starred variant environment cutflow* is the same as cutflow, save for the html header and footer (see Section 7.1) which are not replicated in the introduced page.

7.3.6  Footnotes

Footnote texts (given as arguments either to \footnote or \footnotetext) do not go directly to output. Instead, footnote texts accumulate internally in a buffer, awaiting to be flushed. The flushing of notes is controlled by the means of a current flushing unit, which is a sectional unit name or document — a fictional unit above all units. At any point, the current flushing unit is the value of the command \@footnotelevel. In practice, the flushing of footnote texts is performed by two commands:

  • \flushdef{secname} simply sets the flushing unit to secname.
  • \footnoteflush{secname} acts as follows:
    • If argument secname is equal to or above the current flushing unit, then footnote texts are flushed (if any). In the output, the texts themselves are surrounded by special comments that tag them as footnote texts and record secname.
    • Otherwise, no action is performed.

The article style file performs \flushdef{document}, while the book style file performs \flushdef{chapter}. At the end of processing, \end{document} performs \footnoteflush{\@footnotelevel}, so as to flush any pending notes.

Cutting commands interact with footnote flushing as follows:

  • \cuthere{secname} executes \footnoteflush{secname}. Remember that all sectioning commands perform \cuthere with their sectional unit name as argument.
  • \cutdef{secname} saves the current flushing unit and buffer on some internal stack, starts a new buffer for footnote texts, and sets the current flushing unit to secname (by performing \flushdef{secname}).
  • \cutend first flushes any pending texts (by performing \footnoteflush with the current flushing unit as argument), and restores the flushing unit and footnote text buffer saved by the matching \cutdef.
  • The starred variants \cutdef* and \cutend* perform no operation that is related to footnotes.

Later, when running across footnote texts in its input file, HACHA sometimes put notes in a separate file. More precisely, HACHA has knowledge of the current cutting level, the current sectional unit where cuts occur — as given by the relevant \cutdef. Moreover, HACHA knows the current section level — that is, the last sectional command processed. Besides, HACHA extracts the note level from the comments that surround the notes (as given by the command \footnoteflush that produced the notes). Then, HACHA creates a separate file for notes when the cutting level and the note level differ, or when the current level is above the cutting level (e.g. the current level is document while the cutting level is chapter). As a result, notes should stay where they are when they occur at the end of HACHA output file and otherwise go to a separate file.

To make a complicated story even more complicated, footnotes in minipage environments or in the arguments to \title or \author have a different, I guess satisfactory, behaviour.

Given the above description, footnotes are managed by default as follows.

  • In style article, hevea puts all footnotes go at the end of the html file. A later run of hacha creates a separate footnote file.
  • In style book, footnotes are collected at the end of chapters. A later run of  hacha leaves them where they are. Footnotes in the title or author names are managed specially, they will normally appear at the end of the root file.

In case you wish to adopt a book-like behaviour for an article (footnotes at the end of sections), it suffices to insert \flushdef{section} in the document preamble.

We now give a few example of interaction between notes and cutting. We first consider normal behaviour. The page you are reading is a section page, since the current cutting unit is “section”. The current unit is “subsection”. The following two subsubsections are sent to their own files by the means of a \cutdef{subsubsection}/\cutend pair. As a result the text of footnotes appear at the end of the subsubsection pages.

7.3.7  A cut subsubsection

A note in a subsubsection, flushed at subsubsections.1


1
At the end of my page.

7.3.8  Another cut subsubsection

Another note in a subsubsection, flushed at subsubsections.2


2
At the end of my page.

The following two subsubsections are sent to their own files by the means of a \cutdef*{subsubsection}/\cutend* pair. As a result, the text of footnotes in the subsections appear at the end of the current section page.3

7.3.9  A cut subsubsection

A note in a subsubsection, flushed at sections.4

7.3.10  Another cut subsubsection

Another note in a subsubsection, flushed at sections.5

Finally, to send the footnotes in subsubsections to a separate web page, one should use a \cutdef{subsubsection}/\cutend pair (to create a proper buffer for subsubsection notes), redefine the flushing unit, and flush notes explicitly.

\cutdef{subsubsection}\flushdef{document}%
\subsubsection{...}
  ...
\footnoteflush{document}\cutend

7.3.11  A cut subsubsection

A note in a subsubsection flushed at document level.6

7.3.12  Another cut subsubsection

Another note in a subsubsection at document level.7


6
Sent to a separate file
7
Sent to a separate file

3
Standard section footnote.
4
Sent at the end of cutname.html
5
Sent at the end of cutname.html

8  Generating html constructs

HEVEA output language being html, it is normal for users to insert hypertext constructs their documents, or to control colours.

8.1  High-Level Commands

HEVEA provides high-level commands for generating hypertext constructs. Users are advised to use these commands in the first place, because it is easy to write incorrect html and that writing html directly may interfere in nasty ways with HEVEA internals.

A few commands for hyperlink management and included images are provided, all these commands have appropriate equivalents defined by the hevea package (see section 5.2). Hence, a document that relies on these high-level commands still can be typeset by LATEX, provided it loads the hevea package.

MacroHEVEALATEX
\ahref{url}{text}    make text an hyperlink to url    echo text
\footahref{url}{text}    make text an hyperlink to url    make url a footnote to text, url is shown in typewriter font
\ahrefurl{url}    make url an hyperlink to url.    typeset url in typewriter font
\ahrefloc{label}{text}    make text an hyperlink to label inside the document    echo text
\aname{label}{text}    make text an hyperlink target with label label    echo text
\mailto{address}    make address a “mailto” link to address    typeset address in typewriter font
\imgsrc[attr]{url}    insert url as an image, attr are attributes in the html sense    do nothing
\home{text}    produce a home-dir url both for output and links, output aspect is: “~text

It is important to notice that all arguments are processed. For instance, to insert a link to my home page, (http://pauillac.inria.fr/~maranget/index.html), you should do something like this:

\ahref{http://pauillac.inria.fr/\home{maranget}/index.html}{his home page}

Given the frequency of ~, # etc. in urls, this is annoying. Moreover, the immediate solution, using \verb, \ahref{\verb" ... /~maranget/..."}{his home page} does not work, since LATEX forbids verbatim formatting inside command arguments.

Fortunately, the url package provides a very convenient \url command that acts like \verb and can appear in other command arguments (unfortunately, this is not the full story, see section B.17.11). Hence, provided the url package is loaded, a more convenient reformulation of the example above is:

\ahref{\url{http://pauillac.inria.fr/~maranget/index.html}}{his home page}

Or even better:

\urldef{\lucpage}{\url}{http://pauillac.inria.fr/~maranget/index.html}
\ahref{\lucpage}{his home page}

It may seem complicated, but this is a safe way to have a document processed both by LATEX and HEVEA. Drawing a line between url typesetting and hyperlinks is correct, because users may sometime want urls to be processed and some other times not. Moreover, HEVEA (optionally) depends on only one third party package: url, which is as correct as it can be and well-written.

In case the \url command is undefined at the time \begin{document} is processed, the commands \url, \oneurl and \footurl are defined as synonymous for \ahref, \ahrefurl and \footahref, thereby ensuring some compatibility with older versions of HEVEA. Note that this usage of \url is deprecated.

8.1.2  html style colours

Specifying colours both for LATEX and HEVEA should be done using the color package (see section B.14.2). However,one can also specify text color using special type style declarations. The hevea.sty style file define no equivalent for these declarations, which therefore are for HEVEA consumption only.

Those declarations follow html conventions for colours. There are sixteen predefined colours:

\black, \silver, \gray, \white, \maroon, \red, \fuchsia, \purple, \green, \lime, \olive, \yellow, \navy, \blue, \teal, \aqua

Additionally, the current text color can be changed by the declaration \htmlcolor{number}, where number is a six digit hexadecimal number specifying a color in the RGB space. For instance, the declaration \htmlcolor{404040} changes font color to dark gray,

8.2  More on included images

The \imgsrc command becomes handy when one has images both in Postscript and GIF (or PNG or JPG) format. As explained in section 6.3, Postscript images can be included in LATEX documents by using the \epsfbox command from the epsf package. For instance, if screenshot.ps is an encapsulated Postscript file, then a doc.tex document can include it by:

\epsfbox{screenshot.ps}

We may very well also have a GIF version of the screenshot image (or be able to produce one easily using image converting tools), let us store it in a screenshot.ps.gif file. Then, for HEVEA to include a link to the GIF image in its output, it suffices to define the \epsfbox command in the macro.hva file as follows:

\newcommand{\epsfbox}[1]{\imgsrc{#1.gif}}

Then HEVEA has to be run as:

# hevea macros.hva doc.tex

Since it has its own definition of \epsfbox, HEVEA will silently include a link the GIF image and not to the Postscript image.

If another naming scheme for image files is preferred, there are alternatives. For instance, assume that Postscript files are of the kind name.ps, while GIF files are of the kind name.gif. Then, images can be included using \includeimage{name}, where \includeimage is a specific user-defined command:

\newcommand{\includeimage}[1]{\ifhevea\imgsrc{#1.gif}\else\epsfbox{#1.ps}\fi}

Note that this method uses the hevea boolean register (see section 5.2.3). If one does not wish to load the hevea.sty file, one can adopt the slightly more verbose definition:

\newcommand{\includeimage}[1]{%
%HEVEA\imgsrc{#1.gif}%
%BEGIN LATEX
\epsfbox{#1.ps}
%END LATEX
}

When the Postscript file has been produced by translating a bitmap file, this simple method of making a bitmap image and using the \imgsrc command is the most adequate. It should be preferred over using the more automated image file mechanism (see section 6), which will translate the image back from Postscript to bitmap format and will thus degrade it.

8.3  Internal macros

In this section a few of HEVEA internal macros are described. Internal macros occur at the final expansion stage of HEVEA and invoke Objective Caml code.

Normally, user source code should not use them, since their behaviour may change from one version of HEVEA to another and because using them incorrectly easily crashes HEVEA. However:

  • Internal macros are almost mandatory for writing supplementary base style files.
  • Casual usage is a convenient (but dangerous) way to finely control output (cf. the examples in the next section).
  • Knowing a little about internal macros helps in understanding how HEVEA works.

The general principle of HEVEA is that LATEX environments \begin{env}\end{env} get translated into html block-level elements <block attributes></block>. More specifically, such block level elements are opened by the internal macro \@open and closed by the internal macro \@close. As a special case, LATEX groups {} get translated into html groups, which are shadow block-level elements with neither opening nor closing tag.

In the following few paragraphs, we sketch the interaction of \@open\@close with paragraphs. Doing so, we intend to warn users about the complexity of the task of producing correct html, and to encourage them to use internal macros, which, most of the time, take nasty details into account.

Paragraphs are rendered by p elements, which are opened and closed automatically. More specifically, a first p is opened after \begin{document}, then paragraph breaks close the active p and open a new one. The final \end{document} closes the last p. In any occasion, paragraphs consisting only of space characters are discarded silently.

Following html “normative reference [HTML-5a]”, block-level elements cannot occur inside p; more precisely, block-level opening tags implicitly close any active p. As a consequence, HEVEA closes the active p element when it processes \@open and opens a new p when it processes the matching \@close. Generally, no p element is opened by default inside block-level elements, that is, HEVEA does not immediately open p after having processed \@open. However, if a paragraph break occurs later, then a new p element is opened, and will be closed automatically when the current block is closed. Thus, the first “paragraph” inside block-level elements that include several paragraphs is not a p element. That alone probably prevents the consistent styling of paragraphs with style sheets.

Groups behave differently, opening or closing them does not close nor open p elements. However, processing paragraph breaks inside groups involves temporarily closing all groups up to the nearest enclosing p, closing it, opening a new p and finally re-opening all groups. Opening a block-level element inside a group, similarly involves closing the active p and opening a new p when the matching \@close is processed.

Finally, display mode (as introduced by $$) is also complicated. Displays basically are table elements with one row (tr), and HEVEA manages to introduce table cells (td) where appropriate. Processing \@open inside a display means closing the current cell, starting a new cell, opening the specified block, and then immediately opening a new display. Processing the matching \@close closes the internal display, then the specified block, then the cell and finally opens a new cell. In many occasions (in particular for groups), either cell break or the internal display may get cancelled.

It is important to notice that primitive arguments are processed (except for the \@print primitive, and for some of the basic style primitives). Thus, some characters cannot be given directly (e.g. # and % must be given as \# and \%).

\@print{text}
Echo text verbatim. As a consequence use only ascii in text.
\@getprint{text}
Process text using a special output mode that strips off html tags. This macro is the one to use for processed attributes of html tags.
\@hr[attr]{width}{height}
Output an html horizontal rule, attr is attributes given directly (e.g. SIZE=3 HOSHADE), while width and height are length arguments given in the LATEX style (e.g. 2pt or .5\linewidth).
\@print@u{n}
Output the (Unicode) character “n”, which can be given either as a decimal number or an hexadecimal number prefixed by “X”.
\@open{block}{attributes}
Open html block-level element block with attributes attributes. The block name block must be lowercase. As a special case block may be the empty string, then a html group is opened.
\@close{block}
Close html block-level element block. Note that \@open and \@close must be properly balanced.
\@out@par{arg}
If occurring inside a p element, that is if a <p> opening tag is active, \@out@par first closes it (by emitting </p>), then formats arg, and then re-open a p element. Otherwise \@out@par simply formats arg. This command is adequate when formatting arg produces block-level elements.

Text-level elements are managed differently. They are not seen as blocks that must be closed explicitly. Instead they follow a “declaration” style, similar to the one of LATEX “text-style declarations” — namely, \itshape, \em etc. Block-level elements (and html groups) delimit the effect of such declarations.

\@span{attr}
Declare the text-level element span (with given attributes) as active. The text-level element span will get opened as soon as necessary and closed automatically, when the enclosing block-level elements get closed. Enclosed block-level elements are treated properly by closing span before them, and re-opening span (with given attributes) inside them. The following text-level constructs exhibit similar behaviour with respect to block-level elements.
\@style{shape}
Declare the text shape shape (which must be lowercase) as active. Text shapes are known as font style elements (i, tt, etc.; warning:most of font style elements are depreciated in html5, and some of them are no longer valid, prefer CSS in span tags) or phrase elements (em, etc.) in the html terminology.
\@styleattr{name}{attr}
This command generalises both \@span and \@style, as both a text-level element name name and attributes are specified. More specifically, \@span{attr} can be seen as a shorthand for \@styleattr{span}{attr}; while \@style{name} can be seen as a shorthand for \@styleattr{name}{}.
\@fontsize{int}
Declare the text-level element span with attribute style="font-size:font-size" as active. The argument int must be a small integer in the range 1,2, … , 7. hevea computes font-size, a CSS fontsize value, from int. More specifically, font-size will range from x-small to 120% included in a xx-large, 3 being the default size medium. Notice that \@fontsize is deprecated in favour of \@span with proper fontsize declarations: \@span{style="font-size=xx-small"}, \@span{style="font-size=x-small"}, \@span{style="font-size=small"}, etc.
\@fontcolor{color}
Declare the text-level element span with attribute "style=color" as active. The argument color must be a color attribute value in the html style. That is either one of the sixteen conventional colours black, silver etc, or a RGB hexadecimal color specification of the form #XXXXXX. Note that the argument color is processed, as a consequence numerical color arguments should be given as \#XXXXXX.
\@nostyle
Close active text-level declarations and ignore further text-level declarations. The effect stops when the enclosing block-level element is closed.
\@clearstyle
Simply close active text-level declarations.

Notice on font styling with CSS

The preferred way to style text in new versions of the html “standard” is using style-sheet specifications. Those can be given as argument to a “style” attributes of html elements, most noticeably of the span elements. For instance, to get italics in old versions of html one used the text-level “i” element as in <i></i>. Now, for the same results of getting italics one may write: <span style="font-style:italic"></span>. An indeed hevea styles text in that manner, starting from version 2.00. Such (verbose) declarations are then abstracted into style class declarations by HEVEA optimiser esponja, which is invoked by hevea when given option “-O”.

Notice that style attributes can be given to elements other than span. However, combining style attributes requires a little care as only one style attribute is allowed. Namely <cite style="font-weight:bold" style="color:red"> is illegal and should be written <cite style="font-weight:bold;color:red">. For instance: Das Kapital.

The command \@addtyle can be handy for adding style to already style elements:

\@addstyle{name:val}{attrs}
Echo the space-separated attributes attrs of a tag with the name:val style declaration added to these attributes. The style attribute is added if necessary. Examples: \@addstyle{color:red}{href="#"} will produce href="#" style="color:red", and \@addstyle{color:red}{href="#" style="font-style:italic"} will produce href="#" style="font-style:italic;color:red". Note that an unnecessary extra space can be added in some cases.

As an example, consider the following definition of a command for typesetting citation in bold, written directly in html:

\newcommand{\styledcite}[2][]
{{\@styleattr{cite}{\@addstyle{#1}{style="font-weight:bold"}}#2}}

The purpose of the optional argument is to add style to specific citations, as in:

Two fundamental works: \styledcite{The Holy Bible} and
\styledcite[color:red]{Das Kapital}.

We get: Two fundamental works: The Holy Bible and Das Kapital.

Notice that the example is given for illustrating the usage of the \@addstyle macros, which is intended for package writers. A probably simpler way to proceed would be to use LATEX text-style declarations:

\newcommand{styledcite}[2][]{{\@style{cite}#1\bf{}#2}}
Two fundamental works: \styledcite{The Holy Bible} and
\styledcite[\color{red}]{Das Kapital}.

We get: Two fundamental works: The Holy Bible and Das Kapital.

8.4  The rawhtml environment

Any text enclosed between \begin{rawhtml} and \end{rawhtml} is echoed verbatim into the html output file. Similarly, \rawhtmlinput{file} echoes the contents of file file. In fact, rawhtml is the environment counterpart of the \@print command, but experience showed it to be much more error prone.

When HEVEA was less sophisticated then it is now, rawhtml was quite convenient. But, as time went by, numerous pitfalls around rawhtml showed up. Here are a few:

  • Verbatim means that no translation of any kind is performed. In particular, be aware that input encoding (see B.17.4) does not apply. Hence one should use ascii only, if needed non-ascii characters can be given as entity or numerical character references — e.g. &eacute; or &#XE9; for é.
  • The rawhtml environment should contain only html text that makes sense alone. For instance, writing \begin{rawhtml}<table>\end{rawhtml}\begin{rawhtml}</table>\end{rawhtml} is dangerous, because HEVEA is not informed about opening and closing the block-level element table. In that case, one should use the internal macros \@open and \@close.
  • \begin{rawhtml}text\end{rawhtml} fragments that contain block-level elements will almost certainly mix poorly with p elements (introduced by paragraph breaks) and with active style declaration (introduced by, for instance, \it). Safe usage will most of the time means using the internal macros \@nostyle and \@out@par.
  • When HEVEA is given the command-line option -O, checking and optimisation of text-level elements in the whole document takes place. As a consequence, incorrect html introduced by using the rawhtml environment may be detected at a later stage, but this is far from being certain.

As a conclusion, do not use the rawhtml environment! A much safer option is to use the htmlonly environment and to write LATEX code. For instance, in place of writing:

\begin{rawhtml}
A list of links:
<ul>
<li><a href="http://www.apple.com/">Apple</a>.
<li><a href="http://www.sun.com/">Sun</a>.
</ul>
\end{rawhtml}

One can write:

\begin{htmlonly}
A list of links:
\begin{itemize}
\item \ahref{http://www.apple.com/}{Apple}.
\item \ahref{http://www.sun.com/}{Sun}.
\end{itemize}
\end{htmlonly}

A list of links:

If HEVEA is targeted to text or info files (see Section 11). The text inside rawhtml environments is ignored. However there exists a rawtext environment (and a \rawtextinput command) to echo text verbatim in text or info output mode. Additionally, the raw environment and a \rawinput command echo their contents verbatim, regardless of HEVEA output mode. Of course, when HEVEA produces html, the latter environment and command suffer from the same drawbacks as rawhtml.

8.5  Examples

As a first example of using internal macros, consider the following excerpt from the hevea.hva file that defines the center environment:

\newenvironment{center}{\@open{div}{style="text-align:center"}}{\@close{div}}

Notice that the code above is no longer present and is given here for explanatory purpose only. Now HEVEA uses style-sheets and the actual definition of the center environment is as follows:

\newstyle{.center}{text-align:center;margin-left:auto;margin-right:auto;}%
\setenvclass{center}{center}%
\newenvironment{center}
  {\@open{div}{\@getprint{class="\getenvclass{center}"}}
  {\@close{div}}%

Basically environments \begin{center}\end{center} will, by default, be translated into blocks <div class="center"></div>. Additionally, the style class associated to center environments is managed through an indirection, using the commands \setenvclass and \getenvclass. See section 9.3 for more explanations.

Another example is the definition of the \purple color declaration (see section 8.1.2):

\newcommand{\purple}{\@fontcolor{purple}}

HEVEA does not feature all text-level elements by default. However one can easily use them with internal macros. For instance this is how you can make all emphasised text blink:

\renewcommand{\em}{\@styleattr{em}{style="text-decoration:blink"}}

Here is an example of this questionable blinking feature:

Hello!

Then, here is the definition of a simplified \imgsrc command (see section 8.1.1), without its optional argument:

\newcommand{\imgsrc}[1]
  {\@print{<img src="}\@getprint{#1}\@print{">}}

Here, \@print and \@getprint are used to output html text, depending upon whether this text requires processing or not. Note that \@open{img}{src="#1"} is not correct, because the element img consists in a single tag, without a closing tag.

Another interesting example is the definition of the command \@doaelement, which HEVEA uses internally to output A elements.

\newcommand{\@doaelement}[2]
  {{\@nostyle\@print{<a }\@getprint{#1}\@print{>}}{#2}{\@nostyle\@print{</a>}}

The command \@doaelement takes two arguments: the first argument contains the opening tag attributes; while the second element is the textual content of the A element. By contrast with the \imgsrc example above, tags are emitted inside groups where styles are cancelled by using the \@nostyle declaration. Such a complication is needed, so as to avoid breaking proper nesting of text-level elements.

Here is another example of direct block opening. The bgcolor environment from the color package locally changes background color (see section B.14.2.1). This environment is defined as follows:

\newenvironment{bgcolor}[2][style="padding:1em"]
{\@open{table}{}\@open{tr}{}%
\@open{td}{\@addstyle{background-color:\@getcolor{#2}}{#1}}}
{\@close{td}\@close{tr}\@close{table}}

The bgcolor environment operates by opening a html table (table) with only one row (tr) and cell (td) in its opening command, and closing all these elements in its closing command. In my opinion, such a style of opening block-level elements in environment opening commands and closing them in environment closing commands is good style. The one cell background color is forced with a background-color property in a style attribute. Note that the mandatory argument to \begin{bgcolor} is the background color expressed as a high-level color, which therefore needs to be translated into a low-level color by using the \@getcolor internal macro from the color package. Additionally, \begin{bgcolor} takes html attributes as an optional argument. These attributes are the ones of the table element.

If you wish to output a given Unicode character whose value you know, the recommended technique is to define an ad-hoc command that simply call the \@print@u command. For instance, “blackboard sigma” is Unicode U+02140 (hexa). Hence you can define the command \bbsigma as follows:

\newcommand{\bbsigma}{\@print@u{X2140}}

Then, “\bbsigma” will output “⅀”

8.6  The document charset

According to standards, as far as I understand them, html pages are made of Unicode (ISO 10646) characters. By contrast, a file in any operating system is usually considered as being made of bytes.

To account for that fact, html pages usually specify a document charset that defines a translation from a flow of bytes to a flow of characters. For instance, the byte 0xA4 means Unicode 0x00A4 (¤) in the ISO-8859-1 (or latin1) encoding, and 0x20AC (€) in the ISO-8859-15 (or latin9) encoding. Notice that HEVEA has no difficulty to output both symbols, in fact they are defined as Unicode characters:

\newcommand{\textcurrency}{\@print@u{XA4}}
\newcommand{\texteuro}{\@print@u{X20AC}}

But the \@print@u command may output the specified character as a byte, when possible, by the means of the output translator. If not possible, \@print@u outputs a numerical character references (for instance &#X20AC;).

Of course, the document charset and the output translator must be synchronised. The command \@def@charset takes a charset name as argument and performs the operation of specifying the document character set and the output translator. It should occur in the document preamble. Valid charset names are ISO-8859-n where n is a number in 115, KOI8-R, US-ASCII (the default), windows-n where n is 1250, 1251, 1252 or 1257, or macintosh, or UTF-8. In case those charsets do not suffice, you may ask the author for other document charsets. Notice however that document charset is not that important, the default US-ASCII works everywhere! Input encoding of source files is another, although related, issue — see Section B.17.4.

If wished so, the charset can be extracted from the current locale environment, provided this yields a valid (to HEVEA) charset name. This operation is performed by a companion script: xxcharset.exe. It thus suffices to launch HEVEA as:

# hevea -exec xxcharset.exe other arguments

9  Support for style sheets

9.1  Overview

Starting with version 1.08, HEVEA offers support for style sheets (of the CSS variant see [CSS-2]).

Style sheets provide enhanced expressiveness. For instance, it is now possible to get “real” (whatever real means here) small caps in html, and in a relatively standard manner. There are other, discrete, maybe unnoticeable, similar enhancements.

However, style sheets mostly offer an additional mechanism to customise their documents to HEVEA users. To do so, users should probably get familiar with how HEVEA uses style sheets in the first place.

HEVEA interest for style sheets is at the moment confined to block-level elements (div, table, H<n>, etc.). The general principle is as follows: when a command or an environment gets translated into a block-level element, the opening tag of the block level element has a class="name" attribute, where name is the command or environment name.

As an example the LATEX command \subsection is implemented with the element h3, resulting in html output of the form:

    <h3 class="subsection">
    ...
    </h3>

By default, most styles are undefined, and default rendering of block-level elements applies. However, some packages (such as, for instance fancysection, see Section B.16.4) may define them. If you wish to change the style of section headers, loading the fancysection package may prove appropriate (see B.16.4). However, one can also proceed more directly, by appending new definitions to the document style sheet, with the command \newstyle. For instance, here is a \newstyle to add style for subsections.

  \newstyle{.subsection}{padding:1ex;color:navy;border:solid navy;}

This declaration adds some style element to the subsection class (notice the dot!): blocks that declare to belong to the class will show dark-blue text, some padding (space inside the box) is added and a border will be drawn around the block. These specification will normally affect all subsections in the document. Given the previous style definition, the sectioning command

\subsection*{A styled subsection heading}

should yield:

A styled subsection heading

The following points are worth noticing:

  • To yield some effect, \newstyle commands must appear in the document preamble, i.e. before \begin{document}.
  • Arguments to \newstyle commands are processed.
  • The hevea package defines all style sheet related commands as no-ops. Thus, these commands do not affect document processing by LATEX.

9.2  Changing the style of all instances of an environment

In this very document, all verbatim environments appear over a light green background, with small left and right margins. This has been performed by simply issuing the following command in the document preamble.

\newstyle{.verbatim}{margin:1ex 1ex;padding:1ex;background:\#ccffcc;}

Observe that, in the explicit numerical color argument above, the hash character “#” has to be escaped.

9.3  Changing the style of some instances of an environment

One can also change the style class attached to a given instance of an environment and thus control styling of environments more precisely.

As a matter of fact, the name of the class attribute of environment env is referred to through an indirection, by using the command \getenvclass{env}. The class attribute can be changed with the command \setenvclass{env}{class}. The \setenvclass command internally defines a command \env@class, whose content is read by the \getenvclass command. As a consequence, the class attribute of environments follows normal scoping rules. For instance, here is how to change the style of one verbatim environment.

{\setenvclass{verbatim}{myverbatim}
\begin{verbatim}
This will be styled through class 'myverbatim', introduced by:
\newstyle{.myverbatim}
  {margin:1ex 3x;padding:1ex;
   color:maroon;
   background:\@getstylecolor[named]{Apricot}}
\end{verbatim}}

Observe how the class of environment verbatim is changed from its default value to the new value myverbatim. The change remains active until the end of the current group (here, the “}” at the end). Then, the class of environment verbatim is restored to its default value — which happen to be verbatim.

This example also shows two new ways to specify colours in style definition, with a conventional html color name (here maroon) or as a high-level color (see Section B.14.2), given as an argument to the \@getstylecolor internal command (here Apricot from the named color model).

A good way of specifying style class changes probably is by defining new environments.

\newenvironment{flashyverbatim}
  {\setenvclass{verbatim}{myverbatim}\verbatim}
  {\endverbatim}

Then, we can use \begin{flashyverbatim}\end{flashyverbatim} to get verbatim environments style with the intended myverbatim style class.

This text is typeset inside the environment
\emph{flashyverbatim}, and hence with the \emph{myverbatim}
style.

9.4  Which class affects what

Generally, the styling of environment env is performed through the commands \getenvclass{env} and \setenvclass{env}{}, with \getenvclass{env} producing the default value of env.

Concretely, this means that most of the environments are styled through an homonymous style class. Here is a non-exhaustive list of such environments

figure, table, itemize, enumerate, list, description, trivlist, center, flushleft, flushright, quote, quotation, verbatim, abstract, mathpar (cf Section B.17.15), lstlisting (cf. Section B.17.13), etc.

All sectioning commands (\part, \section etc.) output H<n> block-level elements, which are styled through style classes named part, section, etc.

List making-environment introduce extra style classes for items. More specifically, for list-making environments itemize and enumerate, li elements are styled as follows:

<ul class="itemize">
<li class="li-itemize"> ...
</ul>
<ol class="enumerate">
<li class="li-enumerate"> ...
</ol>

That is, li elements are styled as environments, the key name being li-env.

The description, trivlist and list environments (which all get translated into DL elements) are styled in a similar way, internal DT and DD elements being styles through names dt-env and dd-env respectively.

9.5  A few examples

9.5.1  The title of the document

The command \maketitle formats the document title within a table element, with class title, for display. The name of the title is displayed inside block h1, with class titlemain, while all other information (author, date) are displayed inside block h3, with class titlerest.

<table class="title">
 <tr>
  <td style="padding:1ex">
   <h1 class="titlemain">..title here..</h1>
   <h3 class="titlerest">..author here..</h3>
   <h3 class="titlerest">..date here..</h3>
  </td>
 </tr>
</table>

Users can impact on title formatting by adding style in the appropriate style classes. For instance the following style class definitions:

\newstyle{.title}
  {text-align:center;margin:1ex auto;color:navy;border:solid navy;}
\newstyle{.titlerest}{font-variant:small-caps;}

will normally produce a title in dark blue, centered in a box, with author and date in small-caps.

Title

Date

Author

9.5.2  Enclosing things in a styled div

At the moment, due to the complexity of the task, environments tabular and array cannot be styled as others environments can be, by defining an appropriate class in the preamble. However, even for such constructs, limited styling can be performed, by using the divstyle environment. The opening command \begin{divstyle}{class} takes the name of a class as an argument, and translates to <div class="class">. Of course the closing command \end{divstyle} translates to </div>. The limitation is that the enclosed part may generate more html blocks, and that not all style attribute defined in class class class will apply to those inner blocks.

As an example consider the style class definition below.

\newstyle{.ruled}{border:solid black;padding:1ex;background:\#eeddbb;color:maroon}

The intended behaviour is to add a black border around the inner block (with some padding), and to have maroon text over a light brown background.

If we, for instance, enclose an itemize environment, the resulting effect is more or less what we have expected:

\begin{divstyle}{ruled}
\begin{itemize}
\item A ruled itemize
\item With two items.
\end{itemize}
\end{divstyle}
  • A ruled itemize
  • With two items.

However, enclosing a centered tabular environment in a divstyle{ruled} one is less satisfactory.

\begin{divstyle}{ruled}
\begin{center}\begin{tabular}{|c|c|}
\hline \bf English & \bf French\\ \hline
Good Morning & Bonjour\\ Thank You & Merci\\ Good Bye & Au Revoir\\ \hline
\end{tabular}\end{center}
\end{divstyle}
EnglishFrench
Good MorningBonjour
Thank YouMerci
Good ByeAu Revoir

In the html version of this document, one sees that the brown background extend on all the width of the displayed page.

This problem can be solved by introducing an extra table. We first open an extra centered table and then only open the divstyle environment.

\begin{center}\begin{tabular}{c}
\begin{divstyle}{ruled}
\begin{tabular}{|c|c|}
\hline \bf English & \bf French\\ \hline
Good Morning & Bonjour\\ Thank You & Merci\\ Good Bye & Au Revoir\\
\hline
\end{tabular}
\end{divstyle}
\end{tabular}\end{center}

This works because of the rules that govern the width of html table elements, which yield minimal width. This trick is used in numerous places by HEVEA, for instance in document titles, and looks quite safe.

EnglishFrench
Good MorningBonjour
Thank YouMerci
Good ByeAu Revoir

Another solution is to specify the display property of the styling div block as being inline-block:

\newstyle{.ruledbis}
  {border:solid black;padding:1ex;background:\#eeddbb;color:maroon;display:inline-block;}
EnglishFrench
Good MorningBonjour
Thank YouMerci
Good ByeAu Revoir

9.5.3  Styling the itemize environment

Our idea is highlight lists with a left border whose color fades while lists are nested. Such a design may be appropriate for tables of content, as the one of this document.

  • Part A
    • Chapter I
      • Section I.1
      • Section I.2
    • Chapter II
      • Section II.1
      • Section II.2
    • Chapter III
  • Part B
    • Chapter IV
      • Section IV.1
        • Section IV.1.a
        • Section IV.1.b
      • Section IV.2
    • Chapter V

The text above is typeset from the following LATEX source.

\begin{toc}
\item Part~A
\begin{toc}
\item Chapter~I
\begin{toc}
\item Section~I.1
\item Section~I.2
\end{toc}
  ...
\end{toc}
\end{toc}

For simplicity, we assume a limit of four over the nesting depth of toc environment. We first define four style classes toc1, toc2, toc3 and toc4 in the document preamble. Since those classes are similar, a command \newtocstyle is designed.

\newcommand{\newtocstyle}[2]
{\newstyle{.toc#1}{list-style:none;border-left:1ex solid #2;padding:0ex 1ex;}}
\newtocstyle{1}{\@getstylecolor{Sepia}}
\newtocstyle{2}{\@getstylecolor{Brown}}
\newtocstyle{3}{\@getstylecolor{Tan}}
\newtocstyle{4}{\@getstylecolor{Melon}}

The toc environment uses a counter to record nesting depth. Notice how the style class of the itemize environment is redefined before \begin{itemize}.

\newcounter{toc}
\newenvironment{toc}
{\stepcounter{toc}\setenvclass{itemize}{toc\thetoc}\begin{itemize}}
{\addtocounter{toc}{-1}\end{itemize}}

The outputted html is:

<ul class="toc1"><li class="li-itemize">
Part&nbsp;A
<ul class="toc2"><li class="li-itemize">
Chapter&nbsp;I
<ul class="toc3"><li class="li-itemize">
Section&nbsp;I.1
<li class="li-itemize">Section&nbsp;I.2
  ...
</ul>
</ul>

9.6  Miscellaneous

9.6.1  HACHA and style sheets

HACHA now produces an additional file: a style sheet, which is shared by all the html files produced by HACHA. Please refer to section 7.1 for details.

9.6.2  Producing an external style sheet

By default, style declarations defined with \newstyle go into the header of the html document doc.html. However, one can send those declaration into an external style file, whose name is doc.css. Then, HEVEA automatically relates doc.html to its style sheet doc.css. To achieve this behaviour, it suffices to set the value of the boolean register externalcss to true, by issuing the command \externalcsstrue in the preamble of the source document. Notice that HEVEA output still can be processed by HACHA, with correct behaviour.

9.6.3  Linking to external style sheets

The HEVEA command \loadcssfile{url} allows the user to link to an external style sheet (like the link option for HTML). The command takes an url of the external sheet as argument and emits the HTML text to link to the given external style sheet. As an example, the command

\loadcssfile{../abc.css}

produces the following html text in the head of the document.

  <link rel="stylesheet" type="text/css" href="../abc.css">

To yield some effect, \loadcssfile must appear in the document preamble. Several \loadcssfile commands can be issued. Then the given external style sheets appear in the output, following source order.

Notice that the argument to \loadcssfile is processed. Thus, if it contains special characters such as “#” or “$”, those must be specified as \# and \$ respectively. A viable alternative would be to quote the argument using the \url command from the url package (see Section B.17.11).

9.6.4  Limitations

At the moment, style class definitions cumulate, and appear in the style element in the order they are given in the document source. There is no way to cancel the default class definitions performed by HEVEA before it starts to process the user’s document. Additionally, external style sheets specified with \loadcssfile appear before style classes defined with \newstyle. As a consequence (if I am right), styles declared by \newstyle take precedence over those contained in external style sheets. Thus, using external style-sheets, especially if they alter the styling of elements, may produce awkward results.

Those limitations do not apply of course to style classes whose names are new, since there cannot be default definitions for them. Then, linking with external style sheets can prove useful to promote uniform styling of several documents produced by HEVEA.

10  Customising HEVEA

HEVEA can be controlled by writing LATEX code. In this section, we examine how users can change HEVEA default behaviour or add functionalities. In all this section we assume that a document doc.tex is processed, using a private command file macros.hva. That is, HEVEA is invoked as:

# hevea macros.hva doc.tex

The general idea is as follows: one redefines LATEX constructs in macros.hva, using internal commands. This requires a good working knowledge of both LATEX and html. Usually, one can avoid internal commands, but then, all command redefinitions interact, sometimes in very nasty ways.

10.1  Simple changes

Users can easily change the rendering of some constructs. For instance, assume that all quotations in a text should be emphasised. Then, it suffices to put the following re-declaration in macros.hva:

\renewenvironment{quote}
  {\@open{blockquote}{}\@style{em}}
  {\@close{blockquote}}

The same effect can be achieved without using any of the internal commands:

\let\oldquote\quote
\let\oldendquote\endquote
\renewenvironment{quote}{\oldquote\em}{\oldendquote}

In some sense, this second solution is easier, when one already knows how to customise LATEX. However, this is less safe, since the definition of \em can be changed elsewhere.

There is yet another solution that takes advantage of style sheets. One can also add this line to the macros.hva file:

\newstyle{.quote}{font-style:oblique;}

This works because the environment quote is styled through style class quote (see Section 9.2). Notice that this solution has very little to do with “emphasising” in the proper sense, since here we short-circuit the implicit path from \em to oblique fonts.

10.2  Changing defaults for type-styles

HEVEA default rendering of type style changes is described in section B.15.1. For instance, the following example shows the default rendering for the font shapes:

\itshape italic shape \slshape slanted shape
\scshape small caps shape \upshape upright shape

By default, \itshape is italics, \slshape is oblique italics, \scshape is small-caps (thanks to style sheets) and \upshape is no style at all. All shapes are mutually exclusive, this means that each shape declaration cancels the effect of other active shape declarations. For instance, in the example, small caps shapes is small caps (no italics here).

italic shape slanted shape small caps shape upright shape

If one wishes to change the rendering of some of the shapes (say slanted caps), then one should redefine the old-style \sl declaration. For instance, to render slanted as Helvetica (why so?), one should redefine \sl by \renewcommand{\sl}{\@span{style="font-family:Helvetica"}} in macros.hva.

And now, the shape example above gets rendered as follows:

italic shape slanted shape small caps shape upright shape

Redefining the old-style \sl is compatible with the cancellation mechanism, redefining \slshape is not. Thus, redefining directly LATEX 2є \slshape with \renewcommand{\slshape}{} would yield:

italic shape slanted shape small caps shape upright shape

Hence, redefining old-style declarations using internal commands should yield satisfactory output. However, since cancellation is done at the html level, a declaration belonging to one component may sometimes cancel the effect of another that belongs to another component. Anyway, you might have not noticed it if I had not told you.

10.3  Changing the interface of a command

Assume for instance that the base style of doc.tex is jsc (the Journal of Symbolic Computation style for articles). For running HEVEA, the jsc style can be replaced by article style, but for a few commands whose calling interface is changed. In particular, the \title command takes an extra optional argument (which HEVEA should ignore anyway). However, HEVEA can process the document as it stands. One solution to insert the following lines into macros.hva:

\input{article.hva}% Force document class 'article'
\let\oldtitle=\title
\renewcommand{\title}[2][]{\oldtitle{#2}}

The effect is to replace \title by a new command which calls HEVEA \title with the appropriate argument.

10.4  Checking the optional argument within a command

HEVEA fully implements LATEX 2є \newcommand. That is, users can define commands with an optional argument. Such a feature permits to write a \epsfbox command that has the same interface as the LATEX command and echoes itself as it is invoked to the image file. To do this, the HEVEA \epsfbox command has to check whether it is invoked with an optional argument or not. This can be achieved as follows:

\newcommand{\epsfbox}[2][!*!]{%
\ifthenelse{\equal{#1}{!*!}}
{\begin{toimage}\epsfbox{#2}\end{toimage}}%No optional argument
{\begin{toimage}\epsfbox[#1]{#2}\end{toimage}}}%With optional argument
\imageflush}

10.5  Changing the format of images

Semi-automatic generation of included images is described in section 6. Links to included images are generated by the \imageflush command, which calls the \imgsrc command:

\newcommand{\imageflush}[1][]
{\@imageflush\stepcounter{image}\imgsrc[#1]{\hevaimagedir\jobname\theimage\heveaimageext}}

That is, you may supply a html-style attribute to the included image, as an optional argument to the \imageflush command.

By default, images are PNG images stored in .png files. HEVEA provides support for the alternative GIF image file format. It suffices to invoke hevea as:

# hevea gif.hva doc.tex

Then imagen must be run with option -gif:

# imagen -gif doc

A convenient alternative is to invoke hevea as:

# hevea -fix gif.hva doc.tex

Then hevea will invoke imagen with the appropriate option when it thinks images need to be rebuild.

10.6  Storing images in a separate directory

By redefining the \heveaimagedir command, users can specify a directory for images. More precisely, if the following redefinition occurs in the document preamble.

\renewcommand{\heveaimagedir}{dir}

Then, all links to images in the produced html file will be as “dir/…”. Then imagen must be invoked with option - todir:

# imagen -todir dir doc

As usual, hevea will invoke imagen with the appropriate option, provided it is passed the -fix option.

10.7  Controlling imagen from document source

The internal command \@addimagenopt{option} add the text option to imagen command-line options, when launched automatically by hevea (i.e. when hevea is given the -fix command-line option).

For instance, to instruct hevea/imagen to reduce all images by a factor of √2, it suffices to state:

%HEVEA\@addimagenopt{-mag 707}

See section C.1.5 for the list of command-line options accepted by imagen.

11  Other output formats

It is possible to translate LATEX file into other formats than html. There are two such formats: plain text and info files. This enables producing postscript, html, plain text and info manuals from one (LATEX) input file.

11.1  Text

The LATEX file is processed and converted into a plain text formatted file. It allows some pretty-printing in plain text.

To translate into text, invoke HEVEA as follow:

# hevea -text [-w <width>] myfile.tex

Then, HEVEA produces myfiles.txt a plain text translation of myfile.tex.

Additionally, the optional argument -w <number> sets the width of the output for text formatting. By default, The text will be 72 characters wide.

Nearly every environment has been translated, included lists and tables. The support is nearly the same as in html, excepted in some cases described hereafter.

Most style changes are ignored, because it is hardly possible to render them in plain text. Thus, there are no italics, bold fonts, underlinings, nor size change or colours… The only exception is for the verbatim environment that puts the text inside quotes, to distinguish it more easily.

Tables with borders are rendered in the same spirit as in LATEX. Thus for instance, it is possible to get vertical lines between some columns only. Table rendering can be poor in case of line overflow. The only way to correct this (apart from changing the tables themselves) is to adjust the formatting width, using the the -w command-line option.

For now, maths are not supported at all in text mode. You can get very weird results with in-text mathematical formulas. Of course, simple expressions such as subscripts remains readable. For instance, x2 will be rendered as x^2, but ∫01f(x)dx will yield something like : int01f(x)dx.

11.2  Info

The file format info is also supported. Info files are text files with limited hypertext links, they can be read by using emacs info mode or the info program. Please note that HEVEA translates plain LATEX to info, and not TeXinfo.

You can translate your LATEX files into info file(s) as follows:

# hevea -info [-w <width>] myfile.tex

Then, HEVEA produces the file myfile.info, an info translation of myfile.tex. However, if the resulting file is too large, it is cut into pieces automatically, and myinfo.info now contains references for all the nodes in the others files, which are named myfile.info-1, myfile.info-2,…

The optional argument -w has the same meaning as for text output.

The text will be organised in nodes that follow the pattern of LATEX sectioning commands. Menus are created to navigate through the sections easily

A table of content is produced automatically. References, indexes and footnotes are supported, as they are in html mode. However, the info format only allows pointers to info nodes, i.e. in HEVEA case, to sectional units. As a consequence all cross references lead to sectional unit headers.

Part B
Reference manual

This part follows the pattern of the LATEX reference manual [LATEX, Appendix C].

B.1  Commands and Environments

B.1.1  Command Names and Arguments

LATEX comments that start with “%” and end at end of line are ignored and produce no output. Usually, HEVEA ignore such comments. However, HEVEA processes text that follows “%HEVEA” and some other comments have a specific meaning to it (see section 5.3).

Command names follow strict LATEX syntax. That is, apart from #, $, ~, _ and ^, they either are “\” followed by a single non-letter character or “\” followed by a sequence of letters. Additionally, the letter sequence may be preceded by “@” (and this is the case of many of HEVEA internal commands), or terminated by “*” (starred variants are implemented as plain commands).

Users are strongly advised to follow strict LATEX syntax for arguments. That is, mandatory arguments are enclosed in curly braces {} and braces inside arguments must be properly balanced. Optional arguments are enclosed in square brackets []. However, HEVEA does its best to read arguments even when they are not enclosed in curly braces. Such arguments are a single, different from “\”, “{” and “ ”, character or a command name. Thus, constructs such as \'ecole, $a_1$ or $a_\Gamma$ are recognized and processed as école a1 and aΓ. By contrast, a^\mbox{...} is not recognized and must be written a^{\mbox{...}}.

Also note that, by contrast with LATEX, comments are parsed during argument scanning, as an important consequence brace nesting is also checked inside comments.

With respect to previous versions, HEVEA has been improved as regards emulation of complicated argument passing. That is, commands and their arguments can now appear in different static text bodies. As a consequence, HEVEA correctly processes the following source:

\newcommand{\boite}{\textbf}
\boite{In bold}

The definition of \boite makes it reduces as \textbf and HEVEA succeeds in fetching the argument “{In bold}”. We get

In bold

The above example arguably is no “legal” LATEX, but HEVEA handles it. Of course, there remains numerous “clever” LATEX tricks that exploits TEX internal behaviour, which HEVEA does not handle. For instance consider the following source:

\newcommand{\boite}[1]{\textbf#1}
\boite{{In bold}, Not in Bold.}

LATEX typesets the text “In bold” using bold font, leaving the rest of the text alone. While HEVEA typesets everything using bold font. Here is HEVEA output:

In bold, Not in Bold.

Note that, in most similar situations, HEVEA will likely crash.

As a conclusion of this important section, Users are strongly advised to use ordinary command names and curly braces and not to think too much the TEX way.

B.1.2  Environments

Environment opening and closing is performed like in LATEX, with \begin{env} and \end{env}. The *-form of an environment is a plain environment.

It is not advised to use \env and \endenv in place of \begin{env} and \end{env}.

B.1.3  Fragile Commands

Fragile commands are not relevant to HEVEA and \protect is defined as a null command.

B.1.4  Declarations

Scope rules are the same as in LATEX.

B.1.5  Invisible Commands

I am a bit lost here. However spaces in the output should correspond to users expectations. Note that, to HEVEA being invisible commands is a static property attached to command name.

B.1.6  The \\ Command

The \\ and \\* commands are the same, they perform a line break, except inside arrays where they end the current row. Optional arguments to \\ and \\* are ignored.

B.2  The Structure of the Document

Document structure is a bit simplified with respect to LATEX, since documents consist of only two parts. The preamble starts as soon as HEVEA starts to operate and ends with the \begin{document} construct. Then, any input occurring before \end{document} is translated to html. However, the preamble is processed and the preamble comprises the content of the files given as command-line arguments to HEVEA, see section C.1.1.1). As a consequence, command and environment definitions that occur before \begin{document} are performed. and they remain valid during all the processing.

In particular one can define a header and a footer, by using the \htmlhead and \htmlfoot commands in the preamble. Those commands register their argument as the header and the footer of the final html document. The header appears first while the footer appears last in (visible) html output. This is mostly useful when HEVEA output is later cut into pieces by HACHA, since both header and footer are replicated at the start and end of any file generated by HACHA. For instance, to append a copyright notice at the end of all the html pages, it suffices to invoke the \htmlfoot command as follows in the document preamble:

\htmlfoot{\copyright to me}

The \htmlhead command cannot be used for changing anything outside of the html document body, there are specific commands for doing this. Those command must be used in the document preamble. One can change HEVEA default (empty) attribute for the opening <body ...> tag by redefining \@bodyargs. For instance, you get black text on a white background, when the following declaration occurs before \begin{document}:

\renewcommand{\@bodyargs}{style="color:black;background:white"}

Since version 1.08, a recommended alternative is to use style sheets:

\newstyle{body}{color:black; background:white;}

Similarly, some elements can be inserted into the output file head element by redefining the \@meta command (Such elements typically are meta, link, etc.). As such text is pure html, it should be included in a rawhtml environment. For instance, you can specify author information as follows:

\let\oldmeta=\@meta
\renewcommand{\@meta}{%
\oldmeta
\begin{rawhtml}
<meta name="Author" content="Luc Maranget">
\end{rawhtml}}

Note how \@meta is first bound to \oldmeta before being redefined and how \oldmeta is invoked in the new definition of \@meta. Namely, simply overriding the old definition of \@meta would imply not outputting default meta-information.

The \@charset command holds the value of the (html) document character set. By default, this value is US-ASCII. In previous versions of HEVEA, one could change the value of the document character set by simply redefining \@charset. Then, it was users responsability to provide a (LATEX) document in the correspounding encoding. This is no longer so, and users should not redefine \@charset directly. Please, see Section 8.6 for details.

B.3  Sentences and Paragraphs

B.3.1  Spacing

Generally speaking, spaces (and single newline characters) in the source are echoed in the output. Browser then manage with spaces and line-breaks. Following LATEX behaviour, spaces after commands are not echoed. Spaces after invisible commands with arguments are not echoed either.

However this is no longer true in math mode, see section B.7.7 on spaces in math mode.

B.3.2  Paragraphs

New paragraphs are introduced by one blank line or more. Paragraphs are not indented. Thus the macros \indent and \noindent perform no action. Paragraph are rendered by p elements. In some occasions, this technique may produce spurious paragraphs (see 3.1.1).

B.3.3  Footnotes

The commands \footnote, \footnotetext and \footnotemark (with or without optional arguments) are supported. The footnote counter exists and (re)setting it or redefining \thefootnote should work properly. When footnotes are issued by a combination of \footnotemark and \footnotetext, a \footnotemark command must be issued first, otherwise some footnotes may get numbered incorrectly or disappear. Footnotes appear at document end in the article style and at chapters end in the book style. See section 7.3.6 for a description of how footnotes are flushed.

B.3.4  Accents and special symbols

Thanks to Unicode character references, HEVEA can virtually output any symbol. It may happen that HEVEA does not known about a particular symbol, that is, most of the time, HEVEA does not known about a particular command. In that case a warning is issued to draw user attention. Users can then choose a particular symbol amongst the recognized ones, or as an explicit Unicode character reference (see Section 4.2 for an example of this technique).

Commands for making accents used in non-English languages, such as \', work when applied to accent-less (i.e. ascii) letters and that the corresponding accented letters exist in the Unicode character set. Otherwise, the argument to the command is not modified and a warning is issued. For instance, consider the following source code, where, after a legitimate use of acute accents, one attempt to put an accute accent over the letter “h”:

``\'Ecole'' works as in \LaTeX, while ``\'h'' does not.

HEVEA output will be “École” works as in LATEX, while “h” does not. And a warning will be issued.

./tmp.tex:3741: Warning: Application of '\'' on 'h' failed

Observe that using input encodings is a convenient alternative to accent commands — see Section B.17.4.

B.4  Sectioning

B.4.1  Sectioning Commands

Sectioning commands from \part down to \subparagraph are defined in base style files. They accept an optional argument and have starred versions.

The non-starred sectioning commands from \part down to \subsubsection show section numbers in sectional unit headings, provided their level is greater than or equal to the current value of the secnumdepth counter. Sectional unit levels and the default value of the secnumdepth counter are the same as in LATEX. Furthermore, given a sectional unit secname, the counter secname exists and the appearance of sectional units numbers can be changed by redefining \thesecname. For instance, the following redefinition turn the numbering of chapters into alphabetic (uppercase) style:

\renewcommand{\thechapter}{\Alph{chapter}}

When jumping to anchors, browsers put the targeted line on top of display. As a consequence, in the following code:

\section{A section}
\label{section:section}
 ...
See Section~\ref{section:section}

Clicking on the link produced by \ref{section:section} will result in not displaying the targeted section title. A fix is writing:

\section{\label{section:section}A section}
 ...
See Section~\ref{section:section}

Starting with version 2.04, HEVEA and HACHA will use the label name (section:section above) for the table of contents they generate. For instance, the source code for the next sectioning command just below is:

\subsection{The \label{appendix}Appendix}

As a consequence, the link to the next section on top of this page should read as:

<a href="sectioning.html#appendix">The Appendix</a>

That is, HEVEA used the label name given in source as an anchor. Notice that this behaviour applies to the \label command that occurs first in the sectioning command argument.

B.4.2  The Appendix

The \appendix command exists and should work as in LATEX.

B.4.3  Table of Contents

HEVEA now generates a table of contents, using a procedure similar to the one of LATEX(a .htoc file is involved). One inserts this table of contents in the main document by issuing the command \tableofcontents. Table of contents is controlled by the counter tocdepth. By default, the table of contents shows sectioning units down to the subsubsection level in article style and down to the subsection level in book (or report) style. To include more or less sectioning units in the table of contents, one should increase or decrease the tocdepth counter. It is important to notice that HEVEA produces such a table of contents, only when it has total control over cross-references. More precisely, HEVEA cannot produce the table of contents when it reads LATEX-produced .aux files. Instead, it should read its own .haux files. This will naturally occur if no .aux files are present, otherwise these .aux files should be deleted, or HEVEA should be instructed not to read them with the command-line option -fix (see Sections B.11.1 and  C.1.1.4).

One can also add extra entries in the table of contents by using the command \addcontentslines, in a way similar to LATEX homonymous command. However, hyperlinks need to be introduced explicitly, as in the following example, where an anchor is defined in the section title and referred to in the argument to \addcontentsline:

\subsection*{\aname{no:number}{Use \hacha{}}}
\addcontentsline{toc}{subsection}{\ahrefloc{no:number}{Use \hacha{}}}

(See Section 8.1.1 for details on commands related to hyperlinks.)

There is no list of figures nor list of tables.

Use HACHA

However, HEVEA has a more sophisticated way of producing a kind of map w.r.t. the sectioning of the document. A later run of HACHA on HEVEA output file splits it in smaller files organized in a tree whose nodes are tables of links. By contrast with LATEX, starred sectioning commands generate entries in these tables of contents. Table of contents entries hold the optional argument to sectioning commands or their argument when there is no optional argument. Section 7 explains how to control HACHA.

B.5  Classes, Packages and Page Styles

B.5.1  Document Class

Both LATEX 2є \documentclass and old LATEX \documentstyle are accepted. Their argument style is interpreted by attempting to load a style.hva file. Presently, only the style files article.hva, seminar.hva, book.hva and report.hva exist, the latter two being equivalent.

If one of the recognized styles has already been loaded at the time when \documentclass or \documentstyle is executed, then no attempt to load a style file is made. This allows to override the document style file by giving one of the four recognized style files of HEVEA as a command line argument (see 2.2).

Conversely, if HEVEA attempt to load style.hva fails, then a fatal error is flagged, since it can be sure that the document cannot be processed.

B.5.2  Packages and Page Styles

HEVEA reacts to \usepackage[options]{pkg} in the following way:

  1. The whole \usepackage command with its arguments gets echoed to the image file (see 6).
  2. HEVEA attempt to load file pkg.hva, (see section C.1.1.1 on where HEVEA searches for files).

Note that HEVEA will not fail if it cannot load pkg.hva and that no warning is issued in that case.

The HEVEA distribution contains implementations of some packages, such as verbatim, colors, graphics, etc.

In some situations it may not hurt at all if HEVEA does not implement a package, for instance HEVEA does not provide an implementation for the fullpage package.

Users needing an implementation of a package that is widely used and available are encouraged to contact the author. Experienced users may find it fun to attempt to write package implementations by themselves.

B.5.3  The Title Page and Abstract

All title related commands exist, with the following peculiarities:

  • The argument to the \title command appears in the html document header. As a consequence, titles should remain simple. Normal design (as regards HEVEA) is for \title to occur in the document preamble, so that the title is known at the time when the document header is emitted (while processing \begin{document}). However, there are two subtleties.

    If no \title command occurs in document preamble and that one \title command appears in the document, then the title is saved into the .haux file for a next run of HEVEA to put it in the html document header.

    If \title commands are present both in preamble and after \begin{document}, then the former takes precedence.

  • When not present the date is left empty. The \today command generates will work properly only if hevea is invoked with the -exec xxdate.exe option. Otherwise \today generates nothing and a warning is issued.

The abstract environment is present is all base styles, including the book style. The titlepage environment does nothing.

B.6  Displayed Paragraphs

Displayed-paragraph environments translate to block-level elements.

In addition to the environments described in this section, HEVEA implements the center, flushleft and flushright environments. HEVEA also implements the corespondant TEX style declaration \centering \raggedright and \raggedleft, but these declarations may not work as expected, when they do not appear directly inside a displayed-paragraph environment or inside an array element.

B.6.1  Quotation and Verse

The quote and quotation environments are the same thing: they translate to BLOCKQUOTE elements. The verse environment is not supported.

B.6.2  List-Making environments

The itemize, enumerate and description environments translate to the ul, ol, and DL elements and this is the whole story.

As a consequence, no control is allowed on the appearances of these environments. More precisely optional arguments to \item do not function properly inside itemize and enumerate. Moreover, item labels inside itemize or numbering style inside enumerate are browser dependent.

However, customized lists can be produced by using the the list environment (see next section).

B.6.3  The list and trivlist environments

The list environment translates to the DL element. Arguments to \begin{list} are handled as follows:

  \begin{list}{default_label}{decls}

The first argument default_label is the label generated by an \item command with no argument. The second argument, decls is a sequence of declarations. In practice, the following declarations are relevant:

\usecounter{counter}
The counter counter is incremented by \refstepcounter by every \item command with no argument, before it does anything else.
\renewcommand{\makelabel}[1]{}
The command \item executes \makelabel{label}, where label is the item label, to print its label. Thus, users can change label formatting by redefining \makelabel. The default definition of \makelabel simply echoes label.

As an example, a list with an user-defined counter can be defined as follows:

\newcounter{coucou}
\begin{list}{\thecoucou}{%
\usecounter{coucou}%
\renewcommand{\makelabel}[1]{\textbf{#1}.}}
...
\end{list}

This yields:

1.
First item.
2.
Second item.

The trivlist environment is also supported. It is equivalent to the description environment.

B.6.4  Verbatim

The verbatim and verbatim* environments translate to the PRE element. Inside verbatim*, spaces are replaced by underscores (“_”).

Similarly, \verb and \verb* translate to the CODE text element.

The alltt environment is supported.

B.7  Mathematical Formulae

B.7.1  Math Mode Environment

The three ways to use math mode ($$, \(\) and \begin{math}\end{math}) are supported. The three ways to use display math mode ($$$$, \[\] and \begin{displaymath}\end{displaymath}) are also supported. Furthermore, \ensuremath behaves as expected.

The equation, eqnarray, eqnarray* environments are supported. Equation labelling and numbering is performed in the first two environments, using the equation counter. Additionally, numbering can be suppressed in one row of an eqnarray, using the \nonumber command.

Math mode is not as powerful in HEVEA as in LATEX. The limitations of math mode can often be surpassed by using math display mode. As a matter of fact, math mode is for in-text formulas. From the html point of view, this means that math mode does not close the current flow of text and that formulas in math mode must be rendered using text-level elements only. By contrast, displayed formulas can be rendered using block-level elements. This means that HEVEA have much more possibilities in display context than inside normal flow of text. In particular, stacking text elements one above the over is possible only in display context. For instance compare how HEVEA renders $\frac{1}{\sum_{i=1}^{\infty} i$ as: 1/∑i=1 i, and $$\frac{1}{\sum_{i=1}^{\infty} i$$ as:

1
i=1
 i

B.7.2  Common Structures

HEVEA admits, subscript (_), superscripts (^) and fractions (\frac{numer}{denom}). The best effect is obtained in display mode, where html table element is extensively used. By contrast, when not in display mode, HEVEA uses only SUB and SUP text-level elements to render superscrits and subscript, and the result may not be very satisfying.

However, simple subscripts and superscripts, such as x_i or x^2, are always rendered using the SUB and SUP text-level elements and their appearance should be correct even in in-text formulas.

When occurring outside math mode, characters _ and ^ act as ordinary characters and get echoed to the output. However, a warning is issued.

An attempt is made to render all ellipsis constructs (\ldots, \cdots, \vdots and \ddots). The effect may be strange for the latter two.

B.7.3  Square Root

The nth root command \sqrt is supported only for n=3,4, thanks to the existence of Unicode characters for the same. For the others, we shift to fractional exponents, in which case, the \sqrt command is defined as follows:

\newcommand{\sqrt}[3][2]{\left(#2\right)^{1/#1}}

Then, the source fragment: $$\sqrt[5]{\frac{1}{n!}} + \sqrt[3]{\pi} + \sqrt{\pi}$$ gets rendered as follows:




1
n!



1
5



 
 + 
π
 + 
π

B.7.4  Unicode and mathematical symbols

The support for unicode symbols offered by modern browsers allows to translate almost all math symbols correctly.

Log-like functions and variable sized-symbols are recognized and their subscripts and superscripts are put where they should in display mode. Subscript and superscript placement can be changed using the \limits and \nolimits commands. Big delimiters are also handled.

B.7.5  Putting one thing above/below/inside

The commands \stackrel, \underline and \overline are recognized. They produce sensible output in display mode. In text mode, these macros call the \textstackrel, \textunderline and \textoverline macros. These macros perform the following default actions

\textstackrel
Performs ordinary superscripting.
\textunderline
Underlines its argument, using the U text-level element.
\textoverline
Overlines using style-sheets (used <SPAN> with a top border).

The command \boxed works well both in display and normal math mode. Input of the form \boxed{\frac{\pi}{2}} produces π/2 in normal math, and

π
2

in display-math mode. The commands \bigl,\bigr etc. are also rendered well. Some examples can be found here.

B.7.6  Math accents

Math accents that have coresponding text accents (\hat, \tilde, etc.) are handled by default. They in fact act as the corresponding text-mode accents (Section B.3.4). As a consequence, they work properly only on ascii letters. This may be quite cumbersome, but at least some warnings draw user’s attention on the problem. If accents are critical to your document and that HEVEA issues a lot of warnings, a solution is to redefine the math accent command. A suggested replacement is using limit superscripts. That way accents are positioned above symbols in display mode and after symbols in text mode.

\renewcommand{\hat}[1]{\mathop{#1}\limits^{\textasciicircum}\nolimits}
Displayed:
$$
\hat{\mu} = \hat{\Delta}.
$$
In text: $\hat{\mu} = \hat{\delta}$

An you get, displayed:

^
µ
 
 = 
^
Δ
 
.

In text: µ^ = δ^.

Whereas, with the default of \hat being \^, you get “µ = δ”, with the following warnings:

./tmp.tex:4652: Warning: Application of '\^' on '\mu' failed
./tmp.tex:4652: Warning: Application of '\^' on '\delta' failed

The \vec command is rendered differently in display and non-display mode. In display mode, the arrow appears in normal position, while in non-display the arrow appears as an ordinary superscript.

\vec{u} in text mode: u,   \vec{u} in display mode: 
u
 

Most “extensible accents” (\widetilde, \widehat, etc.) are not even defined. There are a few exceptions: line “accents”:

    
abc
  \underline
    
abc
  \overline

Brace “accents”:

    
 
1 × 2 × ⋯ × n


  \underbrace
    


1 × 2 × ⋯ × n
 
  \overbrace

And arrow “accents”:

    

1 × 2 × ⋯ × n
 
  \overleftarrow
    

1 × 2 × ⋯ × n
 
  \overrightarrow

B.7.7  Spacing

By contrast with LATEX, space in the input matters in math mode. One or more spaces are translated to one space. Furthermore, spaces after commands (such as \alpha) are echoed except for invisible commands (such as \tt). This allows users to control space in their formulas, output being near to what can be expected.

Explicit spacing commands (\,, \!, \: and \;) are recognized, the first two commands do nothing, while the others two output one space.

B.7.8  Changing Style

Letters are italicized inside math mode and this cannot be changed. The appearance of other symbols can be changed using LATEX 2є style changing commands (\mathbf, etc.). The commands \boldmath and \unboldmath are not recognized. Whether symbols belonging to the symbol font are affected by style changes or not is browser dependent.

The \cal declaration and the \mathcal command (that yield calligraphic letters in LATEX) exist. They yield red letters by default.

Observe that this does not corresponds directly to how LATEX manage style in math mode and that, in fact, style cannot really change in math mode.

Math style changing declarations \displaystyle and \textstyle do nothing when HEVEA is already in the requested mode, otherwise they issue a warning. This is so because HEVEA implements displayed maths as tables, which require to be both opened and closed and introduce line breaks in the output. As a consequence, warnings on \displaystyle are to be taken seriously.

The commands \scriptstyle and \scriptscriptstyle perform type size changes.

B.8  Definitions, Numbering

B.8.1  Defining Commands

HEVEA understands command definitions given in LATEX style. Such definitions are made using \newcommand, \renewcommand and \providecommand. These three constructs accept the same arguments and have the same meaning as in LATEX, in particular it is possible to define an user command with one optional argument. However, HEVEA is more tolerant: if command name already exists, then a subsequent \newcommand{name}…is ignored. If macro name does not exists, then \renewcommand{name}…performs a definition of name. In both cases, LATEX would crash, HEVEA just issues warnings.

The behaviour of \newcommand allows to shadow document definition, provided the new definitions are processed before the document definitions. This is easily done by grouping the shadowing definition in a specific style file given as an argument to HEVEA (see section 5.1). Conversely, changes of base macros (i.e. the ones that HEVEA defines before loading any user-specified file) must be performed using \renewcommand.

Scoping rules apply to macros, as they do in LATEX. Environments and groups define a scope and command definition are local to the scope they occur.

It is worth noticing that HEVEA also partly implements TEX definitions (using \def) and bindings (using \let), see section B.16.1 for details.

B.8.2  Defining Environments

HEVEA accepts environment definitions and redefinitions by \newenvironment and \renewenvironment. The support is complete and should conform to [LATEX, Sections C.8.2].

Environments define a scope both for commands and environment definitions.

B.8.3  Theorem-like Environments

New theorem-like environments can also be introduced and redefined, using \newtheorem and \renewtheorem.

Note that, by contrast with plain environments definitions, theorem-like environment definitions are global definitions.

B.8.4  Numbering

LATEX counters are (fully ?) supported. In particular, defining a counter cmd with \newcounter{cmd} creates a macro \thecmd that outputs the counter value. Then the \thecmd command can be redefined. For instance, section numbering can be turned into alphabetic style by:

\renewcommand{\thesection}{\alph{section}}

Note that TEX style for counters is not supported at all and that using this style will clobber the output. However, HEVEA implements the calc package that makes using TEX style for counters useless in most situations (see section B.17.3).

B.8.5  The ifthen Package

The ifthen package is partially supported. The one unsupported construct is the \lengthtest test expression, which is undefined.

As a consequence, HEVEA accepts the following example from the LATEX manual:

\newcounter{ca}\newcounter{cb}%
\newcommand{\printgcd}[2]{%
  \setcounter{ca}{#1}\setcounter{cb}{#2}%
  Gcd(#1,#2) =
  \whiledo{\not\(\value{ca}= \value{cb}\)}%
    {\ifthenelse{\value{ca}>\value{cb}}%
      {\addtocounter{ca}{-\value{cb}}}%
      {\addtocounter{cb}{-\value{ca}}}%
    gcd(\arabic{ca}, \arabic{cb}) = }%
  \arabic{ca}.}%
For example: \printgcd{54}{30}

For example: Gcd(54,30) = gcd(24, 30) = gcd(24, 6) = gcd(18, 6) = gcd(12, 6) = gcd(6, 6) = 6.

Additionally, a few boolean registers are defined by HEVEA. Some of them are of interest to users.

hevea
Initial value is true. The hevea.sty style file also defines this register with initial value false.
mmode
This register value reflects HEVEA operating mode, it is true in math-mode and false otherwise.
display
This register value reflects HEVEA operating mode, it is true in display-mode and false otherwise.
footer
Initial value is true. When set false, HEVEA does not insert its footer “This document has been translated by HEVEA”.

Finally, note that HEVEA also recognised à la TEX conditional macros (see section B.16.1.4). Such macros are fully compatible with the boolean registers of the ifthen package, as it is the case in LATEX.

B.9  Figures and Other Floating Bodies

Figures and tables are put where they appear in source, regardless of their placement arguments. They are outputted inside a BLOCKQUOTE element and they are separated from enclosing text by two horizontal rules.

Captions and cross referencing are handled. However captions are not moved at end of figures: instead, they appear where the \caption commands occur in source code. The \suppressfloats command does nothing and the figure related counters (such as topnumber) exist but are useless.

Marginal notes go in the right margin by default.
To get marginal notes in the left margin, use \reversemaginpar.

Marginal notes are handled in an HEVEA specific way. By default, all notes go in the right margin. Issuing \reversemarginpar causes the notes to go in the left margin. Unsurprisingly, issuing \normalmarginpar reverts to default behaviour.

The \marginpar command has an optional argument.

  \marginpar[left_text]{right_text}

If optional argument left_text is present and that notes go in the left margin, then left_text is the text of the note. Otherwise, right_text is the text of the note. As a conclusion, marginal notes in HEVEA always go to a fixed side of the page, which side being controlled by the commands \normalmarginpar (right side) and \reversemarginpar (left side). This departs form LATEX that selects a default side depending on the parity of the page counter.

Marginal notes are styled by the means of two environment style classes (see Section 9.3) : marginpar and marginparside. The latter marginparside takes care of margins and placement as a float, its value is marginparright for notes in the right margin and marginparleft for notes in the left margin. Users are not expected to alter those. The marginpar environment style class governs the general aspect of all marginal notes. Users can control the aspect of all marginal notes by defining a new style class and assigning the marginpar environment style class. For instance, to get all marginal notes in red font, and taking 10% of the page width (in place of the default 20%), one can issue the following commands in the document preamble.

\newstyle{.mynote}{width:10\%; color:red;}
\setenvclass{marginpar}{mynote}

B.10  Lining It Up in Columns

B.10.1  The tabbing Environment

Limited support is offered. The tabbing environment translate to a flexible tabular-like environment. Inside this environment, the command \kill ends a row, while commands \= and \> start a new column. All other tabbing commands do not even exist.

B.10.2  The array and tabular environments

These environments are supported, using html table element, rendering is satisfactory in most (not too complicated) cases. By contrast with LATEX, some of the array items always are typeset in display mode. Whether an array item is typeset in display mode or not depends upon its column specification, the l, c and r specifications open display mode while the remaining p and @ do not. The l, c,r and @ specifications disable word wrap, while the p specification enables it.

Entries in a column whose specification is l (resp. c or r) get left-aligned (resp. centered or right-aligned) in the horizontal direction. They will get top-aligned in the vertical direction if there are other column specifications in the same array that specify vertical alignment constraints (such as p{wd}, see below). Otherwise, vertical alignment is unspecified.

Entries in a column whose specification is p{wd} get left-aligned in the horizontal direction and top-aligned in the vertical direction and a paragraph break reduces to one line break inside them. This is the only occasion where HEVEA makes a distinction between LR-mode and paragraph mode. Also observe that the length argument wd to the p specification is ignored.

Some LATEX array features are not supported at all:

  • Optional arguments to \begin{array} and \begin{tabular} are ignored.
  • The command \vline does not exists.

Some others are partly rendered:

  • Spacing between columns is different.
  • @ formatting specifications in \multicolumn argument are ignored.
  • If a | appears somewhere in the column formatting specification, then the array is shown with borders.
  • The command \hline does nothing if the array has borders (see above). Otherwise, an horizontal rule is outputted.
  • The command \cline ignores its argument and is equivalent to \hline.
  • Similarly the command \extracolsep issues a warning and ignores its argument.

Additionally, the tabular* environment is recognised and gets rendered as an html table with an advisory width attribute.

By default, HEVEA implements the array package (see [LATEX-bis, Section 5.3] and section B.17.2 in this document), which significantly extends the array and tabular environments.

B.11  Moving Information Around

B.11.1  Files

In some situations, HEVEA uses some of the ancillary files generated by LATEX. More precisely, while processing file doc.tex, the following files may be read:

.aux
The file doc.aux contains cross-referencing information, such as figure or section numbers. If this file is present, HEVEA reads it and put such numbers (or labels) inside the links generated by the \ref command. If the .aux file is not present, or if the hevea command is given the -fix option, HEVEA will instead use .haux files.
.haux
Such files are HEVEA equivalents of .aux files. Indeed, they are .aux files tailored to HEVEA needs. Two runs of HEVEA might be needed to get cross references right.
.htoc
This file contains a formatted table of contents. It is produced while reading the .haux file. As consequence a table of contents is available only when the .haux file is read.
.hbbl
The doc.hbbl file is generated by bibhva from doc.haux. When present, it is read by the \bibliography command.
.bbl
The doc.bbl file is generated by BibTEX from doc.aux. When present, and if no doc.hbbl exists, doc.bbl is read by the \bibliography command.
.hidx and .hind
HEVEA computes its own indexes, using .hidx files for storing index references and, using .hind files for storing formatted indexes. Index formatting significantly departs from the one of LATEX. Again, several runs of HEVEA might be needed to get indexes right.

HEVEA does not fail when it cannot find an auxiliary file. When another run of HEVEA is needed, a warning is issued, and it is user’s responsibility to rerun HEVEA. However, the convenient -fix command-line option instructs HEVEA to rerun itself, until it believes it has reached stable state.

B.11.2  Cross-References

The LATEX commands \label and \ref are changed by HEVEA into html anchors and local links, using the “a” element. Additionally, numerical references to sectional units, figures, tables, etc. are shown, as they would appear in the .dvi file. Numerical references to pages (such as generated by \pageref) are not shown; only an link is generated.

The anchor used is the label argument to \label{label}. More precisely, \label{label} translates to <a id="label"></a>; while \ref{label} translates to <a name="#label">nnn</a>, where nnn is the appropriate numerical reference to a section. As a consequence spaces are better avoided in label.

Starting with HEVEA version 2.04, the html anchors used by \label and \ref cannot differ from the arguments to these commands anymore. Moreover, when \label{label} occurs inside the argument of a sectioning command (i.e. in section title, as recommended by section B.4.1), then HEVEA and HACHA will use label as the “id” attribute of the corresponding section. For instance, the LATEX source of this very section is:

\subsection{Cross-References\label{cross-reference}}

It translates to html similar to

<h3 class="subsection" id="cross-reference">B.11.2&#XA0;&#XA0;Cross-References</h3>

Notice that no <a id="cross-reference"></a> appears above. Instead id="cross-reference" appears in the enclosing h3 header element.

While processing a document doc.tex, cross-referencing information can be computed in two different, mutually exclusive, ways, depending on whether LATEX has been previously run or not:

  • If there exists a file doc.aux and that hevea has not been given the command-line option -fix, then cross-referencing information is extracted from that file. Of course, the doc.aux file has to be up-to-date, that is, it should be generated by running LATEX as many times as necessary. (For HEVEA needs, one run is probably sufficient).
  • If no doc.aux file exists or if hevea has been given the -fix command-line option, then HEVEA expect to find cross-referencing information in the file doc.haux.

The second option is recommended.

When using its own doc.haux file, HEVEA will output a new doc.haux file at the end of its processing. This new doc.haux file contains actualised cross referencing information. Hence, in that case, HEVEA may need to run twice to get cross-references right. Note that, just like LATEX, HEVEA issues a warning then the cross-referencing information it generates differs from what it has read at start-up, and that it does not fail if doc.haux does not exist.

Observe that if a non-correct doc.aux file is present, then cross-references will apparently be wrong. However the links are correct.

B.11.3  Bibliography and Citations

The \cite macro is supported. Its optional argument is correctly handled. Citation labels are extracted from the .aux file if present, from the .haux file otherwise. Note that these labels are put there by LATEX in the first case, and by HEVEA in the second case, when they process the \bibitem command.

Using BibTEX

All BibTEX related commands exist and echo the appropriate information into the .haux file.

In particular, the \bibliography command exists and attempts to load the formatted bibliography, i.e. to load the .hbbl file. The .hbbl file is produced from the .haux file by the companion program bibhva (see C.1.4). To include the bibliographic references extracted from .bib databases, it should normally suffice to do:

# hevea doc.tex
# bibhva doc
# hevea doc.tex

In case no .hbbl file exists, the \bibliography command attempts to load the .bbl file normally used while combining LATEX and BibTEX. Thus, another way to extract bibliographic references from .bib databases is:

# latex doc.tex
# bibtex doc
# hevea doc.tex

In case both files exist, notice that loading the .hbbl file has priority over loading the .bbl file.

B.11.4  Splitting the Input

The \input and \include commands exist and they perform exactly the same operation of searching (and then processing) a file, whose name is given as an argument. See section C.1.1.1 on how HEVEA searches files. However, in the case of the \include command, the file is searched only when previously given as an argument to the \includeonly command.

Note the following features:

  • TEX syntax for \input is not supported. That is, one should write \input{filename}.
  • If filename is excluded with the -e command-line option (see section C.1.1.4), then HEVEA does not attempt to load filename. Instead, it echoes \input{filename} and \include{filename} commands into the image file. This sounds complicated, but this is what you want!
  • HEVEA does not fail when it cannot find a file, it just issues a warning.

The \listfiles command is a null command.

B.11.5  Index and Glossary

Glossaries are not handled (who uses them ?).

While processing a document doc.tex, index entries go into the file doc.hidx, while the formatted index gets written into the file doc.hind. As with LATEX, two runs of HEVEA are normally needed to format the index. However, if all index producing commands (normally \index) occur before the index formatting command (normally \printindex), then only one run is needed.

As in LATEX, index processing is not enabled by default and some package has to be loaded explicitly in the document preamble. To that aim, HEVEA provides the standard package makeidx, and two extended packages that allow the production of several indexes (see section B.17.7).

Formatting of indexes in HEVEA departs from LATEX behaviour. More precisely the theindex environment does not exist. Instead, indexes are formatted using special indexenv environments. Those details do not normally concern users. However, the number of columns in the presentation of the index can be controlled by setting the value of the indexcols counter (default value is two).

B.11.6  Terminal Input and Output

The \typeout command echos its argument on the terminal, macro parameter #i are replaced by their values. The \typein command is not supported.

B.12  Line and Page Breaking

B.12.1  Line Breaking

The advisory line breaking command \linebreak will produce a line break if it has no argument or if its optional argument is 4. The \nolinebreak command is a null command.

The \\ and \\* commands output a <BR> tag, except inside arrays where the close the current row. Their optional argument is ignored. The \newline command outputs a <BR> tag.

All other line breaking commands, declarations or environments are silently ignored.

B.12.2  Page Breaking

They are no pages in the physical sense in html. Thus, all these commands are ignored.

B.13  Lengths, Spaces and Boxes

B.13.1  Length

All length commands are ignored, things go smoothly when LATEX syntax is used (using the \newlength, \setlength, etc. commands, which are null macros). Of course, if lengths are really important to the document, rendering will be poor.

Note that TEX length syntax is not at all recognised. As a consequence, writing things like \textwidth=10cm will clobber the output. Users can correct such misbehaviour by adopting LATEX syntax, here they should write \setlength{\textwidth}{10cm}.

B.13.2  Space

The \hspace, \vspace and \addvspace spacing commands and their starred versions recognise positive explicit length arguments. Such arguments get converted to a number of non-breaking spaces or line breaks. Basically, the value of 1em or 1ex is one space or one line-break. For other length units, a simple conversion based upon a 10pt font is used.

HEVEA cannot interpret more complicated length arguments or perform negative spacing. In these situations, a warning is issued and no output is done.

Spacing commands without arguments are recognised. The \enspace, \quad and \qquad commands output one, two and four non-breaking spaces, while the \smallskip, \medskip and \bigskip output one, one, and two line breaks.

Stretchable lengths do not exist, thus the \hfill and \vfill macros are undefined.

B.13.3  Boxes

Box contents is typeset in text mode (i.e. non-math and non-display mode). Both LATEX boxing commands \mbox and \makebox commands exist. However \makebox generates a specific warning, since HEVEA ignore the length and positioning instructions given as optional argument.

Similarly, the boxing with frame \fbox and \framebox commands are recognised and \framebox issues a warning. When in display mode, \fbox frames its argument by enclosing it in a table with borders. Otherwise, \fbox calls the \textfbox command, which issues a warning and typesets its argument inside a \mbox (and thus no frame is drawn). Users can alter the behaviour of \fbox in non-display mode by redefining \textfbox.

Boxes can be saved for latter usage by storing them in bins. New bins are defined by \newsavebox{cmd}.

Then some text can be saved into cmd by \sbox{cmd}{text} or \begin{lrbox}{cmd} text \end{lrbox}. The text is translated to html, as if it was inside a \mbox and the resulting output is stored. It is retrieved (and outputted) by the command \usebox{cmd}. The \savebox command reduces to \sbox, ignoring its optional arguments.

The \rule commands translate to a html horizontal rule (<HR>) regardless of its arguments.

All other box-related commands do not exist.

B.14  Pictures and Colours

B.14.1  The picture environment and the graphics Package

It is possible to have pictures and graphics processed by imagen (see section 6.1). In the case of the picture environment it remains users responsibility to explicitly choose source chunks that will get rendered as images. In the case of the commands from the graphics package, this choice is made by HEVEA.

For instance consider the following picture:

\newcounter{cms}
\setlength{\unitlength}{1mm}
\begin{picture}(50,10)
\put(0,7){\makebox(0,0)[b]{cm}}
\multiput(10,7)(10,0){5}{\addtocounter{cms}{1}\makebox(0,0)[b]{\arabic{cms}}}
\multiput(1,0)(1,0){49}{\line(0,1){2.5}}
\multiput(5,0)(10,0){5}{\line(0,1){5}}
\thicklines
\put(0,0){\line(1,0){50}}
\multiput(0,0)(10,0){6}{\line(0,1){5}}
\end{picture}

Users should enclose all picture elements in a toimage environment (or inside %BEGIN IMAGE%END IMAGE comments) and insert an \imageflush command, where they want the image to appear in html output:

%BEGIN IMAGE
\newcounter{cms}
\setlength{\unitlength}{1mm}
\begin{picture}(50,10)
  ...
\end{picture}
%END IMAGE
%HEVEA\imageflush

This will result in normal processing by LATEX and image inclusion by HEVEA:

All commands from the graphics package are implemented using the automatic image inclusion feature. More precisely, the outermost invocations of the \includegraphics, \scalebox, etc. commands are sent to the image image file and there will be one image per outermost invocation of these commands.

For instance, consider a document doc.tex that loads the graphics package and that includes some (scaled) images by:

\begin{center}
\scalebox{.5}{\includegraphics{round.ps}}
\scalebox{.75}{\includegraphics{round.ps}}
\includegraphics{round.ps}
\end{center}

Then, issuing the following two commands:

# hevea doc.tex
# imagen doc

yields html that basically consists in three image links, the images being generated by imagen.

Since the advent of pdflatex, using \includegraphics to insert bitmap images (e.g. .gif or .jpg) became frequent. In that case, users are advised not to use HEVEA default implementation of the graphics package. Instead, they may use a simple variation of the technique described in Section 8.2.

B.14.2  The color Package

HEVEA partly implements the color package. Implemented commands are \definecolor, \color, \colorbox, \textcolor, \colorbox and \fcolorbox. Other commands do not exist. At startup, colours black, white, red, green, blue, cyan, yellow and magenta are pre-defined.

Colours are defined by \definecolor{name}{model}{spec}, where name is the color name, model is the color model used, and spec is the color specification according to the given model. Defined colours are used by the declaration \color{name} and by the command \textcolor{name}{text}, which change text color. Please note that, the \color declaration accepts color specifications directly when invoked as \color[model]{spec}. The \textcolor command has a similar feature.

As regards color models, HEVEA implements the rgb, cmyk, hsv and hls color models. In those models, color specifications are floating point numbers less than one. For instance, here is the definition for the red color:

\definecolor{red}{rgb}{1, 0, 0}

The named color model is also supported, in this model color specification are just names… Named colours are the ones of dvips.

GreenYellow, Yellow, Goldenrod, Dandelion, Apricot, Peach, Melon, YellowOrange, Orange, BurntOrange, Bittersweet, RedOrange, Mahogany, Maroon, BrickRed, Red, OrangeRed, RubineRed, WildStrawberry, Salmon, CarnationPink, Magenta, VioletRed, Rhodamine, Mulberry, RedViolet, Fuchsia, Lavender, Thistle, Orchid, DarkOrchid, Purple, Plum, Violet, RoyalPurple, BlueViolet, Periwinkle, CadetBlue, CornflowerBlue, MidnightBlue, NavyBlue, RoyalBlue, Blue, Cerulean, Cyan, ProcessBlue, SkyBlue, Turquoise, TealBlue, Aquamarine, BlueGreen, Emerald, JungleGreen, SeaGreen, Green, ForestGreen, PineGreen, LimeGreen, YellowGreen, SpringGreen, OliveGreen, RawSienna, Sepia, Brown, Tan, Gray, Black, White.

There are at least three ways to use colours from the named model.

  1. Define a color name for them.
  2. Specify the named color model as an optional argument to \color and \textcolor.
  3. Use the names directly (HEVEA implements the color package with the usenames option given).

That is:

  1. \definecolor{rouge-brique}{named}{BrickRed}\textcolor{rouge-brique}{Text as a brick}.
  2. \textcolor[named]{BrickRed}{Text as another brick}.
  3. \textcolor{BrickRed}{Text as another brick}.

Which yields:

  1. Text as a brick.
  2. Text as another brick.
  3. Text as another brick.

HEVEA also implements the \colorbox and \fcolorbox commands.

\colorbox{red}{Red background},
\fcolorbox{magenta}{red}{Red background, magenta border}.
Red background, Red background, magenta border.

Those two commands accept an optional first argument that specifies the color model, as \textcolor does:

\fcolorbox[named]{RedOrange}{Apricot}{Apricot background, RedOrange border}.
Apricot background, RedOrange border.

Colours should be used carefully. Too many colours hinders clarity and some of the colours may not be readable on the document background color.

B.14.2.1  The bgcolor environment

With respect to the LATEX color package, HEVEA features an additional bgcolor environment, for changing the background color of some subparts of the document. The bgcolor environment is a displayed environment and it normally starts a new line. Simple usage is \begin{bgcolor}{color}\end{bgcolor}, where color is a color defined with \definecolor. Hence the following source yield a paragraph with a red background:

\begin{bgcolor}{red}
\color{yellow}Yellow letters on a red backgroud
\end{bgcolor}
Yellow letters on a red background

The bgcolor environment is implemented by one-cell table element, it takes an optional argument that is used as an attribute for the inner td element (default value is style="padding:1em"). Advanced users may change the default, for instance as:

\begin{bgcolor}[style="padding:0"]{yellow}
\color{red}Red letters on a yellow backgroud
\end{bgcolor}

The resulting output will be red letters on a yellow background and no padding:

Red letters on a yellow background, no padding

B.14.2.2  From High-Level Colours to Low-Level Colours

High-level colours are color names defined with \definecolor. Low-level colours are html-style colours. That is, they are either one of the sixteen conventional colours black, silver etc., or a RGB hexadecimal color specification of the form "#XXXXXX".

One changes the high-level high-color into a low-level color by \@getcolor{high-color}. Low-level colours are appropriate inside html attributes and as arguments to the \@fontcolor internal macro. An example of \@getcolor usage can be found at the end of section 8.5.

There is also \@getstylecolor command that acts like\@getcolor, except that it does not output the double quotes around RGB hexadecimal color specifications. Such low-level colours are appropriate for style definitions in cascading style sheets [CSS-2]. See Section 9.3 for an example.

B.15  Font Selection

B.15.1  Changing the Type Style

All LATEX 2є declarations and environments for changing type style are recognised. Aspect is rather like LATEX 2є output, but there is no guarantee.

As html does not provide the same variety of type styles as LATEX does. However css provide a wide variety of font properties. HEVEA uses generic properties, proper rendering will then depend upon user agent. For instance, it belongs to the user agent to make a difference between italics (rendered by the font style “italic”) and slanted (rendered by the font style “oblique”).

Here is how HEVEA implements text-style declarations by default:

\itshape  font-style:italic
\slshape  font-style:oblique
\scshape  font-variant:small-caps
\upshape  no style
\ttfamily  font-family:monospace
\sffamily  font-family:sans-serif
\rmfamily  no style
\bfseries  font-weight:bold
\mdseries  no style

Text-style commands also exists, they are defined as \mbox{\decl}. For instance, \texttt is defined as a command with one argument whose body is \mbox{\ttfamily#1}. Finally, the \emph command for emphasised text also exists, it yields text-level em elements.

As in LATEX, type styles consists in three components: shape, series and family. HEVEA implements the three components by making one declaration to cancel the effect of other declarations of the same kind. For instance consider the following source, that exhibits shape changes:

{\itshape italic shape \slshape slanted shape
\scshape small caps shape \upshape upright shape}

Then, in the rendering below, “small caps shape” appears in small caps shape only and not in italics:

italic shape slanted shape small caps shape upright shape

Old style declarations are also recognised, they translate to text-level elements. However, no elements are cancelled when using old style declaration. Thus, the source “{\sl\sc slanted and small caps}” yields “slanted” small caps: “slanted and small caps”. Users need probably not worry about this. However this has an important practical consequence: to change the default rendering of type styles, one should redefine old style declaration in order to benefit from the cancellation mechanism. See section 10.2 for a more thorough description.

B.15.2  Changing the Type Size

All declarations, from \tiny to \Huge are recognised. Output is not satisfactory inside headers elements generated by sectioning commands.

B.15.3  Special Symbols

The \symbol{num} outputs character number num (decimal) from the Unicode character set. This departs from LATEX, which output symbol number num in the current font.

B.16  Extra Features

This section describes HEVEA functionalities that extends on plain LATEX, as defined in [LATEX]. Most of the features described here are performed by default.

B.16.1  TEX macros

Normally, HEVEA does not recognise constructs that are specific to TEX. However, some of the internal commands of HEVEA are homonymous to TEX macros, in order to enhance compatibility. Note that full compatibility with TEX is not guaranteed.

B.16.1.1  À la TEX macros definitions

The \def construct for defining commands is supported. It is important to notice that HEVEA semantics for \def follows TEX semantics. That is, defining a command that already exists with \def succeeds.

Delimiting characters in command definition are somehow supported. Consider the following example from the TEX Book:

\def\Look{\textsc{Look}}
\def\x{\textsc{x}}
\def\cs AB#1#2C$#3\$ {#3{ab#1}#1 c\x #2}
\cs AB {\Look}{}C${And \$}{look}\$ 5.

It yields: And $lookabLookLook cx5.

Please note that delimiting characters are supported as far as I could, problems are likely with delimiting characters which include spaces or command names, in particular the command name \{. One can include \{ in a command argument by using the grouping characters {}:

\def\frenchquote(#1){\guillemotleft~\emph{#1}~\guillemotright{} (in French)}
he said \frenchquote(Alors cette accolade ouvrante {``\{''}~?).

Yields: he said « Alors cette accolade ouvrante “{” ? » (in French).

Another issue regards comments: “%” in arguments may give undefined behaviours, while comments are better avoided while defining macros. As an example, the following code will not be handled properly by HEVEA:

\def\x%
   #1{y}

Such TEX source should be rewritten as \def\x#1{y}.

Another source of incompatibility with TEX is that substitution of macros parameters is not performed at the same moment by HEVEA and TEX. However, things should go smoothly at the first level of macro expansion, that is when the delimiters appear in source code at the same level as the macro that is to parse them. For instance, the following source will give different results in LATEX and in HEVEA:

\def\cs#1A{``#1''}
\def\othercs#1{\cs#1A}
\othercs{coucouA}

LATEX output is “coucou”A, while HEVEA output is “coucouA”. Here is HEVEA output: “coucouA” Please note that in most situations this discrepancy will make HEVEA crash.

B.16.1.2  The \let construct

HEVEA also processes a limited version of \let:

\let macro-name1 = macro-name2

The effect is to bind macro-name1 to whatever macro-name2 is bound to at the time \let is processed. This construct may prove very useful in situations where one wishes to slightly modify basic commands. See sections 10.3 and B.2 for examples of using \let in such a situation.

B.16.1.3  The \global construct

It is possible to escape scope and to make global definitions and bindings by using the TEX construct \global. The \global construct is significant before \def and \let constructs.

Also note that \gdef is equivalent to \global\def.

B.16.1.4  TEX Conditional Macros

The \newif\ifname, where name is made of letters only, creates three macros: \ifname, \nametrue and \namefalse. The latter two set the name condition to true and false, respectively. The \ifname command tests the condition name:

\ifname
text
1
\else
text2
\fi

Text text1 is processed when name is true, otherwise text2 is processed. If text2 is empty, then the \else keyword can be omitted.

Note that HEVEA also implements LATEX ifthen package and that TEX simple conditional macros are fully compatible with LATEX boolean registers. More precisely, we have the following correspondences:

TEXLATEX
\newif\ifname  \newboolean{name}
\nametrue  \setboolean{name}{true}
\namefalse  \setboolean{name}{false}
\ifname text1\else text2\fi  \ifthenelse{\boolean{name}}{text1}{text2}

B.16.1.5  Other TEX Macros

HEVEA implements the macros \unskip and \endinput. It also supports the \csname\endcsname construct.

B.16.2  Command Definition inside Command Definition

If one strictly follows the LATEX manual, only commands with no arguments can be defined inside other commands. Parameters (i.e. #n) occurring inside command bodies refer to the outer definition, even when they appear in nested command definitions. That is, the following source:

\newcommand{\outercom}[1]{\newcommand{\insidecom}{#1}\insidecom}
\outercom{outer}

yields this output:

outer

Nevertheless, nested commands with arguments are allowed. Standard parameters #n still refer to the outer definition, while nested parameters ##n refer to the inner definition. That is, the source:

\newcommand{\outercom}[1]{\newcommand{\insidecom}[1]{##1}\insidecom{inner}}
\outercom{outer}

yields this output:

inner

B.16.3  Date and time

Date and time support is not enabled by default, for portability and simplicity reasons.

However, HEVEA source distribution includes a simple (sh) shell script xxdate.exe that activates date and time support. The hevea command, should be invoked as:

# hevea -exec xxdate.exe ...

This will execute the script xxdate.exe, whose output is then read by HEVEA. As a consequence, standard LATEX counters year, month, day and time are defined and LATEX command \today works properly. Additionally the following counters and commands are defined:

Counter weekday  day of week, 0…6 (e.g. 2)
Counter Hour  hour, 00…11 (e.g. 05)
Counter hour  hour, 00…23 (e.g. 17)
Counter minute  minute, 00…59 (e.g. 17)
Counter second  second, 00…618(e.g. 15)
Command \ampm  AM or PM (e.g. PM)
Command \timezone  Time zone (e.g. CEST)
Command \heveadate  Output of the date Unix command, (e.g. Tue Aug 20 17:17:15 CEST 2013)

Note that I chose to add an extra option (and not an extra \@exec primitive) for security reasons. You certainly do not want to enable HEVEA to execute silently an arbitrary program without being conscious of that fact. Moreover, the hevea program does not execute xxdate.exe by default since it is difficult to write such a script in a portable manner.

Windows users should enjoy the same features with the version of xxdate.exe included in the Win32 distribution.

B.16.4  Fancy sectioning commands

Loading the fancysection.hva file will radically change the style of sectional units headers: they appear over a green background, the background color saturation decreases as the sectioning commands themselves do (this is the style of this manual). Additionally, the document background color is white.

Note : Fancy section has been re-implemented using style-sheets. While it respects the old behaviour, users are encouraged to try out style-sheets for more flexibility. See Section 9 for details.

The fancysection.hva file is intended to be loaded after the document base style. Hence the easiest way to load the fancysection.hva file is by issuing \usepackage{fancysection} in the document preamble. To allow processing by LATEX, one may for instance create an empty fancysection.sty file.

As an alternative, to use fancy section style in doc.tex whose base style is article you should issue the command:

  # hevea article.hva fancysection.hva doc.tex

You can also make a doc.hva file that contains the two lines:

  \input{article.hva}
  \input{fancysection.hva}

And then launch hevea as:

  # hevea doc.hva doc.tex

Sectioning command background colours can be changed by redefining the corresponding colours (part, chapter, section,…). For instance, you get various mixes of red and orange by:

\input{article.hva}
\input{fancysection.hva}
\definecolor{part}{named}{BrickRed}
\definecolor{section}{named}{RedOrange}
\definecolor{subsection}{named}{BurntOrange}

(See section B.14.2 for details on the named color model that is used above.)

Another choice is issuing the command \colorsections{hue}, where hue is a hue value to be interpreted in the HSV model. For instance,

\input{article.hva}
\input{fancysection.hva}
\colorsections{20}

will yield sectional headers on a red-orange background.

HEVEA distribution features another style for fancy sectioning commands: the undersection package provides underlined sectional headers.

B.16.5  Targeting Windows

At the time of this release, Windows support for symbols through Unicode is not as complete as the one of Linux, which I am using for testing HEVEA.

One of the most salient shortcomings is the inability to display sub-elements for big brackets, braces and parenthesis, which HEVEA normally outputs when it processes \left[, \right\} etc.

We (hopefully) expect Windows fonts to display more of Unicode easily in a foreseeable future. As a temporary fix, we provide a style file winfonts.hva. Authors concerned by producing pages that do not look too ugly when viewed through Windows browsers are thus advised to load the file winfonts.hva. For instance they can invoke HEVEA as:

# hevea winfonts.hva ...

At the moment, loading winfonts.hva only changes the rendering of LATEX big delimiters, avoiding the troublesome Unicode entities. As an example, here are some examples of rendering.

delimitersdefaultwinfonts
\left\{  …  \right\}    




1
2
3




    
 / 
 | 

 | 
 \ 
1
2
3
 \
 |
 >
 |
 /
\left[  …  \right]    



1
2
3



    
1
2
3
\left(  …  \right)    



1
2
3



    



1
2
3
 \
 |
 |
 /
\left\vert  …  \right\vert    



1
2
3



    
1
2
3
\left\Vert  …  \right\Vert    
⎪⎪
⎪⎪
⎪⎪
⎪⎪
1
2
3
⎪⎪
⎪⎪
⎪⎪
⎪⎪
    
1
2
3

More generally, it remains authors responsibility to be careful not to issue too refined Unicode entities. To that aim, authors that target a wide audience should first limit themselves to the most common symbols (e.g. use \leq [≤] in place of \preceq [≼]) and, above all, they should control the rendering of their documents using several browsers.


8
According to date man page.

B.17  Implemented Packages

HEVEA distribution includes .hva packages that are implementations of LATEX packages. Packages described in the “Blue Book” (makeidx, ifthen, graphics —and graphicx!—, color, alltt) are provided. Additionally, quite a few extra packages are provided. I provide no full documentation for these packages, users should refer to the first pages of the package documentation, which can usually be found in the book [LATEX-bis], in your local LATEX installation or in a TeX CTAN-archive.

At the moment, most package options are ignored, except for the babel package, where it is essential.

B.17.1  AMS compatibility

HEVEA amsmath package defines some of the constructs of the amsmath package. At the moment, supported constructs are the cases environment and matrix environments [LATEX-bis, Section 8.4], the environments for multi-line displayed equations (gather, split,…) [LATEX-bis, Section 8.5] and the \numberwithin command [LATEX-bis, Section 8.6.2].

HEVEA provides support for the amssymb symbols using Unicode. I found Unicode equivalent for most symbols. However, a few symbols remain undefined (e.g. \varsubsetneqq).

B.17.2  The array and tabularx packages

The array package is described in [LATEX-bis, Section 5.3] and in the local documentation of modern LATEX installations. It is a compatible extension of LATEX arrays (see B.10.2). Basically, it provides new column specifications and a \newcolumntype construct for user-defined column specifications. Table 1 gives a summary of the new column specifications and of how HEVEA implements them.


Table 1: Column specifications from the array package
m{width}  Equivalent to the p column specification (the width argument is ignored, entries are typeset in paragraph mode with paragraph breaks being reduced to a single line break), except that the entries are centered vertically.
b{width}  Equivalent to the p column specification, except that the entries are bottom-aligned vertically.
>{decl}  Can be used before l, c, r, p{}, m{} or b{}. It inserts decl in front of the entries in the corresponding column.
<{decl}  Can be used after l, c, r, p{}, m{} or b{}. It inserts decl after entries in the corresponding column.
!{decl}  Equivalent to @{decl}

Note that centered, top-aligned or bottom-aligned in the vertical direction, do not have exactly the same meaning in LATEX and in html. However, the aspect is the same when all columns agree w.r.t. vertical alignment. Ordinary column types (c, l and r) do not specify vertical alignment, which therefore becomes browser dependent.

The >{decl} and <{decl} constructs permit the encoding of TEX \cases macro as follows:

\def\cases#1{\left\{\begin{array}{l>{$}l<{$}}#1\end{array}\right.}

(This is an excerpt of the latexcommon.hva file.)

New column specifications are defined by the \newcolumntype construct:

  \newcolumntype{col}[narg]{body}

Where col is one letter, the optional narg is a number (defaults to 0), and body is built up with valid column specifications and macro-argument references (#int). Examples are:

\newcolumntype{C}{>{\bf}c}
\newcolumntype{E}[1]{*{#1}{c}}
\begin{tabular}{CE{3}}\hline
one & two & three & four \\
five & six & seven & eight \\ \hline
\end{tabular}

The column specification C means that entries will be typeset centered and using bold font, while the column specifications E{num} stands for num centered columns. We get:

onetwothreefour
fivesixseveneight

HEVEA implements column specifications with commands defined in the \newcommand style. Thus, they have the same behaviour as regards double definition, which is not performed and induces a warning message. Thus, a column specification that is first defined in a macro.hva specific file, overrides the document definition.

The tabularx package [LATEX-bis, Section 5.3.5] provides a new tabular environment tabularx and a new column type X. HEVEA makes the former equivalent to tabular and the latter equivalent to p{ignored}. By contrast with the subtle array formatting that the tabularx package performs, this may seem a crude implementation. However, rendering is usually correct, although different.

More generally and from the html point of view such sophisticated formatting is browser job in the first place. However, the html definition allows suggested widths or heights for table entries and table themselves. From HEVEA point of view, drawing the border line between what can be specified and what can be left to the browser is not obvious at all. At the moment HEVEA choice is not to specify too much (in particular, all length arguments, either to column specifications or to the arrays themselves, are ignored). As a consequence, the final, browser viewed, aspect of arrays will usually be different from their printed aspect.

B.17.3  The calc package

The calc package enables using traditional, infix, notation for arithmetic operations inside the num argument to the \setcounter{name}{num} and \addtocounter{name}{num} constructs (see [LATEX-bis, Section A.4])

The calc package provides a similar extension of the syntax of the len argument to the \setlength and \addtolength constructs. HEVEA does not implement this extension, since it does not implement length registers in the first place.

B.17.4  Specifying the document input encoding, the inputenc package

The inputenc package enables LATEX to process a file according to various 8 bits encodings, plus UTF-8. The one used encoding is specified as an option while loading the package \usepackage[encoding]{inputenc}. At the moment, HEVEA recognises ten latin encodings (from latin1 to latin10), the koi8-r encoding, the ascii encoding, four windows encodings, the applemac encoding, and the utf8 encoding. It is important to notice that loading the inputenc package alters the html document charset. For instance if the latin9 input encoding is selected by:

\usepackage[latin9]{inputenc}

Then, the document charset is ISO-8859-15, which is an enhanced version of ISO-8859-1 with some characters for Œ, œ and €. The rationale behind changing the output document charset at the same time as changing the input encoding is to allow non-ascii bytes in the input file to be replicated as themselves in the output file.

However, one can change the document charset (and the output translator) by using the internal command \@def@charset. For instance, one can specify latin1 encoding, while producing html pages in ascii:

\usepackage[latin1]{inputenc}
%HEVEA\@def@charset{US-ASCII}

See section 8.6 for a more thorough description of html charset management.

The inputenc package also provides the command \inputcoding{encoding} that changes the input encoding at any time. The argument encoding can be any of the options accepted by \usepackage[encoding]{inputenc}. The command \inputcoding of HEVEA follows the behaviour of its LATEX counterpart, it the sense that it obeys scope rules. Notice that \inputcoding does not change the document output encoding and charset.

B.17.5  More symbols

HEVEA implements the following packages: latexsym amssymb, textcomp (a.k.a. “Text companion”) and eurosym (a nice € symbol in LATEX).

B.17.6  The comment package

The comment package provides two commands, \excludecomment and \includecomment, for (re-)defining new environments that ignore their content or that do nothing. The comment environment is also defined as an environment of the first kind.

B.17.7  Multiple Indexes with the index and multind packages

HEVEA supports several simultaneous indexes, following the scheme of the index package, which is present in modern LATEX distributions. This scheme is backward compatible with the standard indexing scheme of LATEX.

Support is not complete, but the most useful commands are available. More precisely, HEVEA knows the following commands:

\newindex{tag}{ext}{ignored}{indexname}
Declare an index. The first argument tag is a tag to select this index in other commands; ext is the extension of the index information file generated by LATEX (e.g., idx); ignored is ignored by HEVEA; and indexname is the title of the index. There also exists a \renewindex commands that takes the same arguments and that can be used to redefine previously declared indexes.
\makeindex
Perform \newindex{default}{idx}{ind}{Index}.
\index[tag]{arg}
Act as the LATEX \index command except that the information extracted from arg goes to the tag index. The tag argument defaults to default, thereby yielding standard LATEX behaviour for the \index command without an optional argument. There also exists a stared-variant \index* that Additionally typesets arg.
\printindex[tag]
Compute, format and output index whose tag is tag. The tag argument defaults to default.

The multind package is supported to some extend, but index is definitely to be preferred.

B.17.8  “Natural” bibliographies, the natbib package

LATEX version of natbib is present in modern installations.

Implementation is quite complete and compatible with version 8.0 of the natbib package (with the keyval style command \setcitestyle).

Unimplemented features are the sorting and compression of references. Automatic generation of an index of citations is handled, but the current implementation probably is quite fragile.

B.17.9  Multiple bibliographies

The multibib package

HEVEA provides a slightly incomplete implementation of the multibib package. The one non-implemented feature is the simultaneous definition of more than one bibliography. That is one cannot invoke \newcites as follows:

\newcites{suf1, suf2}{Title1, Title2}

Instead, one should perform to calls to the \newcites command:

\newcites{suf1}{Title1}\newcites{suf2}{Title2}

The chapterbib package

A basic implementation is provided. At the moment, you can define one bibliography per included file and no toplevel bibliography. HEVEA implementation of this package recognises the option sectionbib and provides the command \sectionbib to change the sectioning command introduced by bibliographies.

B.17.10  Support for babel

B.17.10.1  Basics

HEVEA offers support for the LATEX package babel. When it reads the command

  \usepackage[lang-list]{babel}

it loads babel.hva, and sends it the saved lang-list. The file babel.hva then looks at each language (say x) in it, and loads x.hva, which offers support for the language x. As in LATEX, the last language in the list is selected as default. As an example the command

\usepackage[english,french,german]{babel}

would load babel.hva, then the files english.hva,french.hva,german.hva containing the respective definitions, and finally activate the definitions in german.hva and sets the current language to german.

B.17.10.2  Commands and languages

The following babel commands for changing and querying the language work as in LATEX :

  1. \selectlanguage : to change the language
  2. \iflanguage : to branch after comparing with current language

The language specific details are described in the corresponding .hva file, just as in the .sty file for LATEX. Users need to supply this file for their language, or modify/check the files if they are already supplied with the distribution. The list of languages is given below.

americanaustrianbrazilcatalan
checkcroatiandanishdutch
englishesperantofinnishfrench
galiciangermanitalianmagyar
norsknynorskpolishportuges
romanianrussianslovakslovene
spanishswedishturkish 

B.17.10.3  Writing hva files

The languages for which .hva files are available with the distribution are english, french, german, austrian and czech. These may need to be modified as not all accents and hyphenation techniques are supported.

They can be written/modified as simple TEX files (see the section  B.16.1.1 on writing TEX macros for details). As an example, one may also take a look at the file french.hva, which describes the details for french.

Note how all definitions are inside the definition for \french@babel, which is the command that \selectlanguage{french} would call. Similar commands need to be provided (i.e. \x@babel in \x.hva for language x).

Some definitions may involve specifying Unicode characters, for doing so, using the \@print@u is recommended (cf. Section 8.3). The definition of Unicode characters can be found at http://www.unicode.org/charts/. Most language specific Unicode characters can be found in the first few files.

B.17.11  The url package

LATEX source.

This package in fact provides a enhanced \verb command that can appear inside other command arguments. This command is named \url, but it can be used for any verbatim text, including DOS-like path names. Hence, one can insert urls in one’s document without worrying about LATEX active characters:

This is a complicated url: \url{http://foo.com/~user#label%coucou}.

which gets typeset as: “This is a complicated url: http://foo.com/~user#label%coucou.”

The main use for the \url command is to specify urls as arguments to HEVEA commands for hyperlinks (see section 8.1.1):

\hevea{} home page is
\ahrefurl{\url{http://hevea.inria.fr/}}

It yields: “HEVEA home page is http://hevea.inria.fr/”.

However the \url command is fragile, as a consequence it cannot be used inside \footahref first argument (This is a LATEX problem, not an HEVEA one). The url package solves this problem by providing the \urldef command for defining commands whose body is typeset by using \url:

\urldef{\heveahome}{\url}{http://hevea.inria.fr/}

Such a source defines the robust command \heveahome as the intended url. Hence the following source works as expected:

Have a look at \footahref{\heveahome}{\hevea{} home page}

It yields: “Have a look at HEVEA home page”.

Using \url inside command definitions with a #i argument is a bad idea, since it gives “verbatim” a rather random meaning. Unfortunately, in some situations (e.g, no %, no #), it may work in LATEX. By contrast, it does not work in HEVEA. In such situations, \urldef should be used.

HEVEA implementation is somehow compatible at the “programming level”. Thus, users can define new commands whose argument is understood verbatim. The urlhref.hva style file from the distribution takes advantage of this to define the \url command, so that it both typesets an url and inserts a link to it.

\input{urlhref.hva}
Have a look at \url{http://hevea.inria.fr/}

It yields “Have a look at http://hevea.inria.fr/”. The urlhref.hva style file (which is an HEVEA style file and not a LATEX style file) can be adequate for bibliographic references, which often use \url for its typesetting power. Of course, loading urlhref.hva only makes sense when all arguments to \url are urls…

B.17.12  Verbatim text: the moreverb and verbatim packages

These two packages provide new commands and environments for processing verbatim text. I recommend using moreverb rather than verbatim, since HEVEA implementation is more advanced for the former package.

B.17.13  Typesetting computer languages: the listings package

I strongly recommend the listings package. Learning the user interface requires a little effort, but it is worth it.

HEVEA features a quite compatible implementation, please refer to the original package documentation. Do not hesitate to report discrepancies. Note that HEVEA does not produce very compact html in case you use this package. This can be cured by giving hevea the command-line option -O (see C.1.1.4).

The lstlisting environment is styled through an homonymous style class (see 9.2 and 9.3) and most lstlisting environments get translated to div elements with the appropriate \getenvclass{lstlisting} class, which, by default is lstlisting. A few points deserve mention:

  1. The definition of default style class lstlisting includes the important declarations font-family:monospace; and white-space:pre;, which, more or less, specify non-proportional font and mandatory line breaks. In case you replace lstlisting by another style class (by \setenvclass{lstlisting}{another one}), your alternate definition should probably feature an identical specification. Otherwise, rendering would be poor, as regards spacing and line breaks. Here is how specific listings are styled. We first define a new environment to typeset programs written in the C language, by using the command \lstnewenvironment:
    \lstdefinestyle{colors}{keywordstyle={\bf\color{blue}}, commentstyle={\em\color{magenta}}}
    \lstnewenvironment{clisting}
      {\setenvclass{lstlisting}{clisting}\lstset{language=C, style=colors}}
      {}
    
    The command \lstnewenvironment{name}{starting code}{ending code} is from the listings package, with similar semantics. In the starting code above, the fragment \setenvclass{lstlisting}{clisting} instructs HEVEA to use the style class clisting locally (notice that it could just be another name). The style class clisting is defined in the document preamble as follows:
    \newstyle{.clisting}{font-family:monospace;white-space:pre;
    border-left:solid black;padding-left:2ex;margin-left:2ex;}
    
    Typesetting a C listing with a black border on the left is then as simple as:
    \begin{clisting}
    /* Compute, guess what! */
    int fact(int n) {
      int r = 1 ;
      for ( ; n > 0 ; n--) {
        r *= n ;
      }
      return r ;
    }
    \end{clisting}
    
    The final result is:
    /* Compute, guess what! */ int fact(int n) { int r = 1 ; for ( ; n > 0 ; n--) { r *= n ; } return r ; }
  2. When listings are framed, that is, when some frame=… or background=… keyval specifications are active, they no longer get translated to div elements. Instead they get translated to one cell tables whose td and table elements are styled through style classes lstlisting and lstframe, respectively. Of course, those two style classes follow the usual \setenvclass/\getenvclass mechanism. That way, one can for instance center all framed listings by issuing the following declaration in the document preamble:
    \newstyle{.lstframe}{margin:auto;}
    
    Notice that the default style class lstframe is empty.
  3. Unfortunately the white-space:pre; style declaration is still a bit young, and some browsers implement it in rather incomplete fashion. This is particularly true as regards text copy-pasted from browser display. In case you want to provide your readers with easy copy-paste of listings, you can, by issuing the command \lstavoidwhitepre in the document preamble. Then, white-space:pre; is not used any longer: spaces get rendered by non-breaking space entities and line-breaks by <BR> elements, which significantly increase output size. However, as a positive consequence, display remains correct and text copy-pasted from browser display indeed possesses the line-breaks shown in display.

B.17.14  (Non-)Multi page tabular material

LATEX source for the longtable and supertabular packages.

Those two packages provide LATEX users with the possibility to typeset tabular material over several pages [LATEX-bis, Section 5.4]. Of course, HEVEA does not care much about physical pages. Thus the supertabular and longtable environments are rendered more or less as tabular environments inside table environments.

B.17.15  Typesetting inference rules: the mathpartir package

The mathpartir package, authored by D. Rémy, essentially provides two features:

  1. An environment mathpar for typesetting a sequence of math formulas in mixed horizontal and vertical mode. The environment selects the best arrangement according to the line width, exactly as paragraph mode does for words.
  2. A command \inferrule (and its starred variant) for typesetting inferences rules.

We give a short description, focussing on HEVEA-related details. Users are encouraged to refer to the original documentation of the package.

In the following, comments on rule typesetting apply to HEVEA output and not to LATEX output.

B.17.15.1  The mathpar environment

In its LATEX version, the mathpar environment is a “paragraph mode for formulas”. It allows to typeset long list of formulas putting as many as possible on the same line:

\begin{mathpar} A-Formula \and Longer-Formula \and And \and The-Last-One \end{mathpar}
        
AFormula 
LongerFormula
And 
TheLastOne

In the example above, formulas are separated with \and. The LATEX implementation also changes the meaning of paragraph breaks (either explicit as a \par command or implicit as a blank line) to act as \and. It also redefines the command \\ as an explicit line-break in the flow of formulas.

\begin{mathpar} \int_0^2 xdx = \frac{3}{2} \\ \int_0^3 xdx = \frac{5}{2} \end{mathpar}
        
2


0
 xdx = 
3
2
3


0
 xdx = 
5
2

The HEVEA version is simplistic: Formulas are typeset in math display mode, \and separators always produce horizontal space, while \\ always produce line-breaks. However, when prefixed by \hva the meaning of explicit separators is reversed: that is, \hva\and produces a line-break, while \hva\\ produces horizontal space. Hence, we can typeset the previous example on two lines:

\begin{mathpar} A-Formula \and Longer-Formula \hva\and And \and The-Last-One \end{mathpar}
        
AFormula 
LongerFormula 
And 
TheLastOne

It is to be noticed that the LATEX version of the package defines \hva as a no-op, so as to allow explicit instructions given to HEVEA not to impact on the automatic typesetting performed by LATEX.

B.17.15.2  The inferrule macro

The \inferrule macro is designed to typeset inference rules. It should only be used in math mode (or display math mode). It takes three arguments, the first being optional, specifying the label, premises, and conclusions respectively. The premises and the conclusions are both lists of formulas, and are separated by \\. A simple example of its use is

\inferrule
  [label]
  {one \\ two \\ three \\ or \\ more \\ premises}
  {and \\ any \\ number \\ of \\ conclusions \\ as \\ well}

which gives the following rendering:

label
one           two           three           or           more           premises
and           any           number           of           conclusions           as           well

Again, HEVEA is simplistic. Where LATEX performs actual typesetting, interpreting \\ as horizontal or vertical breaks, HEVEA always interpret \\ as an horizontal break. In fact HEVEA interpret all separators (\\, \and) as horizontal breaks, when they appear in the arguments of the \inferrule command. Nevertheless prefixing separators with \hva yields vertical breaks:

\inferrule {aa \hva\\ bb} {dd \\ ee \\ ff}
        
aa 
bb
dd           ee           ff

The color of the horizontal rule that separates the premises and conclusions can be changed by redefining the command \mpr@hhline@color. This color must be specified as a low-level color (cf. Section B.14.2.2).

B.17.15.3  Options

By default, lines are centered in inference rules. However, this can be changed either by using \mprset{flushleft} or \mprset{center}, as shown below.

$$\mprset{flushleft} \inferrule {a \\ bbb \hva\\ ccc \\ dddd} {e \\ ff \hva\\ gg} $$
        
 
a           bbb  
ccc           dddd
e           ff 
gg

B.17.15.4  Derivation trees

The mathpartir package provides a starred variant \inferrule*. In LATEX, the boxes produced by \inferrule and \inferrule* differ as regards their baseline, the second being well adapted to derivation trees. All this is irrelevant to HEVEA, but \inferrule* remains of interest because of its interface: the optional argument to the \inferrule* command is a list of key=value pairs in the style of keyval. This makes the variant command much more flexible.

keyEffect for value v
beforeExecute v before typesetting the rule. Useful for instance to change the maximal width of the rule.
leftPut a label v on the left of the rule
LeftIdem.
rightAs left, but on the right of the rule.
RightAs Left, but on the right of the rule.
labPut a label v above the inference rule, in the style of \inferrule.
LabIdem.
vdotsRaise the rule by v and insert vertical dots, the length argument is translated to a number of line-skips.

Additionally, the value-less key center centers premises and conclusions (this is the default), while flushleft commands left alignment of premises and conclusions (as \mprset{flushleft} does). Other keys defined by the LATEX package exist and are parsed, but they perform no operation.

As an example, the code

\begin{mathpar} \inferrule* [Left=Foo] {\inferrule* [Right=Bar,width=8em, leftskip=2em,rightskip=2em,vdots=1.5em] {a \and a \and bb \hva\\ cc \and dd} {ee} \and ff \and gg} {hh} \hva\and \inferrule* [lab=XX]{uu \and vv}{ww} \end{mathpar}

produces the following output:

Foo 
a           a           bb  Bar
cc           dd 
ee 

          ff           gg
 hh
XX
uu           vv
ww

B.17.16  The ifpdf package

This package should be present in modern latex installations. Basically, the package defines a boolean register pdf, whose value is true for tools that produce PDF (such as pdflatex) and false for tools that produce DVI (such as latex).

The hevea version of the package simply defines the boolean register pdf with initial value true. Command-line option -pdf is also added to imagen command-line options (by using the command \@addimagenopt, see Section 10.7). As a result, imagen will normally call pdflatex in place of latex.

In case standard latex processing in imagen is wished, one can issue the command \pdffalse after loading the ifpdf package and before \begin{document}. Then, no command line option is added. Hence, to achieve latex processing of the image file, while still loading the ifpdf package, one writes:

\usepackage{ifpdf}
%HEVEA\pdffalse

B.17.17  Typesetting Thai

HEVEA features an implementation of Andrew Seagar’s technique for Thai in LATEX, by the means of the package thai.hva in the distribution.

As regards input encoding, Thai users of HEVEA could (perhaps) use \usepackage[utf8]{inputenc}. However, the typesetting of Thai is more subtle than just proper characters. For that reason, Thai in LATEX is better performed by another technique, which HEVEA supports. See this specific document.

B.17.18  Hanging paragraphs

The hanging package is implemented. HEVEA implementation consists of no-ops, except for the hangparas environment, which is partially implemented. Assume the following usage of hangparas:

\begin{hangparas}{wd}{n}   …\end{hangparas}

where wd is a length that makes sense both for LATEX and CSS (typically 2ex). Then html output will reproduce LATEX output for n=1, regardless of the given value of argument n. That is, in any paragraph inside the environment, all lines except the first get indented by wd.

B.17.19  The cleveref package

The cleveref package attempts (and mostly succeeds) typesetting references cleverly. Its main feature is a \cref command that accepts several, comma separated, label references and typesets them as a list (which can be one-element long, of course) prefixed with sectional unit names. The HEVEA implementation is quite complete, but it does not support some of the subtleties of the LATEX implementations, especially as regards customisation.

B.17.20  Other packages

The fancyverb and colortbl packages are partly implemented.

The xspace package is implemented, in simple cases, rendering is satisfactory, but beware: HEVEA differs significantly from TEX, and discrepancies are likely.

The chngcntr package is implemented. This package provides commands to connect (and disconnect) counters once they are created (see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=addtoreset).

The import package is partially implemented: all starred commands are missing.

The booktabs package is implemented. This package provides nicer rulers in tables as specific commands. HEVEA defines those as no-ops.

Part C
Practical information

C.1  Usage

C.1.1  HEVEA usage

The hevea command has two operating modes, normal mode and filter mode. Operating mode is determined by the nature of the last command-line argument.

C.1.1.1  Command line arguments

The hevea command interprets its arguments as names of files and attempts to process them. Given an argument filename there are two cases:

  • If filename is base.tex or base.hva, then a single attempt to open filename is made.
  • In other cases, a first attempt to open filename.tex is made. In case of failure, a second attempt to open filename is made.

In all attempts, implicit filenames are searched along hevea search path, which consist in:

  1. the current directory “.”,
  2. user-specified directories (with the -I command-line option),
  3. hevea library directory.
  4. one of the sub-directories html, text or info from hevea library directory, depending upon hevea output format,

The hevea library directory is fixed at compile-time (this is where hevea library files are installed) and typically is /usr/local/lib/hevea. However, this compile-time value can be overridden by setting the HEVEADIR shell environment variable. In all cases, the value of hevea library directory can be accessed from the processed document as the value of the command \@hevealibdir.

C.1.1.2  Normal mode

If the last argument has an extension that is different from .hva or has no extension, then it is interpreted as the name of the main input file. The main input file is the document to be translated and normally contains the \documentclass command. In that case two basenames are defined:

  • The input basename, basein, is defined as the main input file name, with extension removed when present.
  • The output basename, baseout, is basein with leading directories omitted. However the output basename can be changed, using the -o option (see below).

HEVEA will attempt to load the main input file. Ancillary files from a previous run of LATEX (i.e. .aux, .bll and .idx files) will be searched as basein.ext. The output base name governs all files produced by HEVEA. That is, html output of HEVEA normally goes to the file baseout.html, while cross-referencing information goes into baseout.haux. Furthemore, if an image file is generated (cf. section 6), its name will be baseout.image.tex.

Thus, in the simple case where the hevea command is invoked as:

# hevea file.tex

The input basename is file and the output basename also is file. The main input file is searched once along hevea search path as file.tex. html output goes into file file.html, in the current directory. In the more complicated case where the hevea command is invoked as:

# hevea ./dir/file

The input base name is ./dir/file and the output basename is file. The main input file is loaded by first attempting to open file ./dir/file.tex, then file ./dir/file. html output goes into file file.html, in the current directory.

Finally, the output base name can be a full path, but you have to use option -o. For instance, we consider:

# hevea -o out/out.html file.tex

Then, html output goes into out/out.html — notice that directory out must exist. Furthermore, hevea output base name is out/out. This means that hevea generates files out/out.haux, out/out.image.tex etc.

The article.hva, seminar.hva, book.hva and report.hva base style files from HEVEA library are special. Only the first base style file is loaded and the \documentclass command has no effect when a base style file is already loaded. This feature allows to override the document base style. Thus, a document file.tex can be translated using the article base style as follows:

# hevea article.hva file.tex

C.1.1.3  Filter mode

If there is no command-line argument, or if the last command-line argument has the extension .hva, then there is neither input base name nor output base name, the standard input is read and output normally goes to the standard output. Output starts immediately, whithout waiting for \begin{document}. In other words hevea acts as a filter.

Please note that this operating mode is just for translating isolated LATEX constructs. The normal way to translate a full document file.tex being “hevea file.tex” and not “hevea < file.tex > file.html”.

C.1.1.4  Options

The hevea command recognises the following options:

-version
Show hevea version and exit.
-v
Verbose flag, can be repeated to increase verbosity. However, this is mostly for debug.
-dv
Add border around some of the block-level elements issued. Specifically, all div and p are bordered, while the structure of displayed material is also shown.
-s
Suppress warnings.
-I dirname
Add dirname to the search path.
-o name
Make name the output basename. However, if name is base.html, then the output basename is base. Besides, -o - makes HEVEA output to standard output.
-e filename
Prevent hevea from loading any file whose name is filename. Note that this option applies to all files, including hevea.hva and base style files.
-fix
Iterate HEVEA until a fixpoint is found. Additionally, images get generated automatically.
-O
Optimise html by calling esponja (see section C.1.3).
-exec prog
Execute file prog and read the output. The file prog must have execution permission and is searched by following the searching rules of hevea.
-francais
Deprecated by babel support. This option issues a warning message.
-help
Print version number and a short help message.

The following options control the html code produced by hevea. By default, hevea outputs a page encoded in US-ASCII with most symbols rendered as html or numerical Unicode entities.

-entities
Render symbols by using entities. This is the default.
-textsymbols
Render symbols by English text.
-moreenties
Enable the output of some infrequent entities. Use this option to target browsers with wide entities support.
-mathml
Produces MathML output for equations, very experimental.
-pedantic
Be strict in interpreting html definition. In particular, this option disable size and color changes inside <PRE></PRE>, which are otherwise performed.

The following options select and control alternative output formats (see section 11):

-text
Output plain text. Output file extension is .txt.
-info
Output info format. Output file extension is .info.
-w width
Set the line width for text or info output, defaults to 72.

Part A of this document is a tutorial introduction to HEVEA, while Part B is the reference manual of HEVEA.

C.1.2  HACHA usage

The hacha command interprets its argument base.html as the name of a html source file to cut into pieces.

It also recognises the following options:

-v
Be a little verbose.
-o filename
Make HACHA output go into file filename (defaults to index.html). Additionally, if filename is a composite filename, dir/base, then all files outputted by HACHA will reside in directory dir.
-tocbis
Another style for table of contents: sub-tables are replicated at the beginning of every file.
-tocter
Like -tocbis above, except that sub-tables do not appear in the main table of contents (see Section 7.2.3).
-nolinks
Do not insert Previous/Up/Next links in generated pages.
-hrf
Output a base.hrf file, showing in which output files are the anchors from the input file gone. The format of this summary is one “anchor\tfile” line per anchor. This information may be needed by other tools.
-help
Print version number and a short help message.

Section 7 of the user manual explains how to alter HACHA default behaviour.

C.1.3  esponja usage

The program esponja is part of HEVEA and is designed to optimise hevea output. However, esponja can also be used alone to optimise text-level elements in html files. Since esponja fails to operate when it detects incorrect html, it can be used as a partial html validator.

C.1.3.1  Operating mode

The program esponja interprets its arguments as names of files and attempt to process them. It is important to notice that esponja will replace files by their optimised versions, unless instructed not to do so with option -n.

Invoking esponja as

# esponja foo.html

will alter foo.html. Of course, if esponja does not succeed in making foo.html any smaller or if esponja fails, the original foo.html is left unchanged. Note that this feature allows to optimise all html files in a given directory by:

# esponja *.html

C.1.3.2  Options

The command esponja recognises the following options:

-v
Be verbose, can be repeated to increase verbosity.
-n
Do not alter input files. Instead, esponja output for file input.html goes to file input.esp. Option -n implies option -v.
-u
Output esponja intermediate version of html. In most occasions, this amounts to pessimize instead of to optimise. It may yield challenging input for other html optimisers.

C.1.4  bibhva usage

The program bibhva is a simple wrapper, which basically forces bibtex into accepting a .haux file as input and producing a .hbbl file as output. Usage is bibhva bibtex-options basename.

C.1.5  imagen usage

The command imagen is a simple shell script that translates a LATEX document into many .png images. The imagen script relies on much software to be installed on your computer, see Section C.4.1.

It is a companion program of HEVEA, which must have been previously run as:

# heveabase.tex
or
# hevea-o base.html

In both cases, base is HEVEA output basename. When told to do so (see section 6) HEVEA echoes part of its input into the base.image.tex file.

The imagen script should then be run as:

# imagen base

The imagen script produces one basennn.png image file per page in the base.image.tex file.

This is done by first calling latex on base.image.tex, yielding one dvi file. Then, dvips translates this file into one single Postscript file that contains all the images, or into one Postscript file per image, depending upon your version of dvips. Postscript files are interpreted by ghostscript (gs) that outputs ppm images, which are then fed into a series of transformations that change them into .png files.

The imagen script recognises the following options:

-mag nnnn
Change the enlarging ratio that is applied while translating DVI into Postscript. More precisely, dvips is run with -xnnnn option. Default value for this ration is 1414, this means that, by default, imagen magnifies LATEX output by a factor of 1.414.
-extra command
Insert command as an additional stage in imagen ppm to png production chain. command is an Unix filter that expects a ppm image in its standard input and outputs a ppm image on its standard output. A sensible choice for command is one command from the netpbm package, several such commands piped together, or various invocations of the convert command from ImageMagick.
-quant number
Add an extra color quantisation step in imagen ppm image production chain, where number is the maximal number of colors in the produced images. This option may be needed as a response to a failure in the image production chain. It can also help in limiting image files size.
-png
Output PNG images. This is the default.
-gif
Output GIF images in place of PNG images. GIF image files have a .gif extension. Note that hevea should have been previously run as hevea gif.hva base.tex (so that the proper .gif filename extension is given to image file references from within the html document).
-pnm
Output PPM images. This option mostly serves debugging purposes. Experimented users can also take advantage of it for performing additional image transformation or adopting exotic image formats.
-t arg
Pass option “-t arg” to dvips. For instance, using “-t a3” may help when images are truncated on the right.
-pdf
Have imagen call pdflatex instead of latex.

The first three options enable users to correct some misbehaviours. For instance, when the document base style is seminar, image orientation may be wrong and the images are too small. This can be cured by invoking imagen as:

# imagen -extra "pnmflip -ccw" -mag 2000 base

Notice that hevea calls imagen by itself, when given the command-line option -fix. In that situation, the command-line options of imagen can be controlled from source file by using the command \@addimagenopt (see Section 10.7).

C.1.6  Invoking hevea, hacha and imagen

In this section, we give a few sequence of (Unix) commands to build the html version of a document in various situations. The next section gives a few Makefile’s for similar situations.

We translate a file doc.tex that requires a specific style file doc.hva. The file is first translated into doc.html by hevea, which also reads the specific style file doc.hva. Then, hacha cuts doc.html into several, doc001.html, doc002.html, etc. also producing the table of links file index.html.

# hevea -fix doc.hva doc.tex
# hacha doc.html

Thanks to the command-line option -fix, hevea runs the appropriate number of times automatically. In case hevea produces a non-empty doc.image.tex file, then hevea calls imagen by itself (because of option -fix). Hence, the above sequence of two commands is also appropriate in that situation.

In case some problem occurs, it is sometime convenient to run imagen by hand. It is time not to use the option -fix.

# rm -f doc.image.tex
# hevea doc.hva doc.tex

Now, hevea normally has shown the imagen command line that it would have run, if it had been given the option -fix. For instance, if doc.hva includes \input{gif.hva}, then hevea shows the following warning:

HeVeA Warning: images may have changed, run 'imagen -gif doc'

Now, one can run imagen as it should be.

It is sometime convenient not to clobber the source directory with numerous target files. It suffices to instruct hevea and hacha to output files in a specific directory, say doc.

# hevea -fix -o doc/doc.html doc.hva doc.tex
# hacha -o doc/index.html doc/doc.html

Notice that hevea does not create the target directory doc: it must exist before hevea runs. Again, in case hevea calls imagen, image generation should proceed smoothly and the final files doc001.png, doc002.png, … should go into directory doc.

In all situations, while installing files to their final destination, it is important not to forget any relevant files. In particular, in addition to the root file (index.html), contents files (doc001.html, doc002.html, etc.) and images (doc001.png, doc002.png, etc.), one should not forget the arrow images and the style sheet generated by hacha (contents_motif.gif, next_motif.gif, previous_motif.gif and doc.css).

As a consequence, producing all files into the subdirectory doc may be a good idea, since then one easily install all relevant files by copying doc to a public destination.

# cp -r doc $(HOME)/public_html

However, one then also installs the auxiliary files of hevea, and hevea output file doc.html, which is no longer useful once hacha has run. Hence, those should be erased beforehand.

# rm -f doc/doc.h{tml,aux,ind,toc} doc/doc.image.tex
# cp -r doc $(HOME)/public_html

C.1.7  Using make

Here is a typical Makefile, which is appropriate when no images are produced.

HEVEA=hevea
HEVEAOPTS=-fix
HACHA=hacha
#document base name
DOC=doc
index.html: $(DOC).html
        $(HACHA) -o index.html $(DOC).html

$(DOC).html: $(DOC).hva $(DOC).tex
        $(HEVEA) $(HEVEAOPTS) $(DOC).hva $(DOC).tex

clean:
        rm -f $(DOC).html $(DOC).h{toc,aux,ind}
        rm -f index.html $(DOC)[0-9][0-9][0-9].html $(DOC).css

Note that the clean rule removes all the doc001.html, doc002.html, etc. and doc.css files produced by hacha. Also note that make clean also removes the doc.haux, doc.hind and doc.htoc files, which are HEVEA auxiliary files.

When the image file feature is used, one can use the following, extended, Makefile:

HEVEA=hevea
HEVEAOPTS=-fix
HACHA=hacha
#document base name
DOC=doc
index.html: $(DOC).html
        $(HACHA) -o index.html $(DOC).html

$(DOC).html: $(DOC).hva $(DOC).tex
        $(HEVEA) $(HEVEAOPTS) $(DOC).hva $(DOC).tex

clean:
        rm -f $(DOC).html $(DOC).h{toc,aux,ind}
        rm -f index.html $(DOC)[0-9][0-9][0-9].html $(DOC).css
        rm -f $(DOC).image.* $(DOC)[0-9][0-9][0-9].png *_motif.gif

Observe that the clean rule now also gets rid of doc.image.tex and of the various files produced by imagen.

With the following Makefile, hevea, imagen, hacha all output their files into a specific directory DIR.

HEVEA=hevea
HEVEAOPTS=-fix
HACHA=hacha
#document base name
DOC=doc
DIR=$(HOME)/public_html/$(DOC)
BASE=$(DIR)/$(DOC)

$(DIR)/index.html: $(BASE).html
        $(HACHA) -tocter -o $(DIR)/index.html $(BASE).html

$(BASE).html: $(DOC).hva $(DOC).tex
        $(HEVEA) $(HEVEAOPTS) $(DOC).hva -o $(BASE).html $(DOC).tex

partialclean:
        rm -f $(BASE).h{tml,aux,toc,ind} $(BASE).image.*

clean:
        rm -f $(DIR)/*

The above Makefile directly produces html and PNG files into the final directory $(HOME)/public_html/$(DOC). The new partialclean entry erases files that are not useful anymore, once imagen and hacha have performed their tasks.

However, most often, it is more appropriate to build html and PNG files in a specific directory, and then to copy them to their final destination.

   ...

#document base name
DOC=doc
DIR=$(DOC)
BASE=$(DIR)/$(DOC)
INSTALLDIR=$(HOME)/public_html/$(DOC)

  ...

install: partialclean
        cp $(DIR)/* $(INSTALLDIR)
  ...

C.2  Browser configuration

By default, HEVEA does not anymore use the FACE=symbol attribute to the <FONT ...> tag. As a consequence, browser configuration is no longer needed.

HEVEA now extensively outputs Unicode entities. This first means that HEVEA targets modern browsers with decent unicode support, and only those.

In case your browser is recent and that you nevertheless experience display problems on HEVEA-generated pages, see the excellent Alan Wood’s Unicode Resources. It may help to understand display problems and even to solve them by configuring browsers or installing some fonts.

C.3  Availability

C.3.1  Internet stuff

HEVEA home page is http://hevea.inria.fr/. It contains links to the on-line manual and to the distribution.

The author can be contacted at Luc.Maranget@inria.fr.

C.3.2  Law

HEVEA can be freely used and redistributed without modifications. Modifying and redistributing HEVEA implies a few constraints. More precisely, HEVEA is distributed under the terms of the Q Public License, but HEVEA binaries include the Objective Caml runtime system, which is distributed under the Gnu Library General Public License (LGPL). See the LICENSE file for details.

The manual itself is distributed under the terms of the Free Document Dissemination Licence.

C.4  Installation

C.4.1  Requirements

The programs hevea and hacha are written in Objective Caml. 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 HEVEA home page.

HEVEA users may instruct the program not to process a part of the input (see section 6). Instead, this part is processed into a bitmap file and HEVEA outputs a link to the image file. LATEX source is changed into .png images by the imagen script, which basically calls, LATEX, dvips, ghostscript and the convert command from the image processing package ImageMagick.

To benefit from the full functionality of HEVEA, you need all this software. However, HEVEA runs without them, but then you will have to produce images by yourself.

C.4.2  Principles

The details are given in the README file from the distribution. Basically, HEVEA should be given a library directory. The installation procedure stores the hevea.hva and base style files in this directory. There are two compilation modes, the opt mode selects the native code OCaml compiler ocamlopt, while the byte mode selects the bytecode OCaml compiler ocamlc. In HEVEA case, ocamlopt produces code that is up to three times as fast as the one produced by ocamlc. Thus, default compilation mode is opt, however it may be the case on some systems that only ocamlc is available.

Note that, when installing HEVEA from the source distribution, the hevea.sty file is simply copied to HEVEA library directory. It remains users responsibility to make it accessible to LATEX.

C.5  Other LATEX to html translators

This short section gives pointers to a few other translators. I performed not extensive testing and make no thorough comparison.

LaTeX2html
LaTeX2html is a full system. It is written in perl and calls LATEX when in trouble. As a consequence, LaTeX2html is powerful but it may fail on large documents, for speed and memory reasons. More information on LaTeX2html can be found at
TTH
The principle behind TTH is the same as the one of HEVEA: write a fast translator as a lexer, use symbol fonts and tables. However, there are differences, TTH accepts both TEX and LATEX source, TTH is written in C and the full source is not available (only lex output is available). Additionally, TTH insist on not using any kind of LATEX generated information and will show proper cross-reference labels, even when no .aux file is present. TTH output is a single document, whereas HACHA can cut the output of HEVEA into several files. (however there exists a commercial version of TTH that provides this extra functionality). TTH can be found at
htmlgen
The htmlgen translator is specialized for producing the Caml manuals. This is HEVEA direct ancestor and I owe much to its author, X. Leroy. See [htmlgen] for a description of htmlgen and a (bit outdated) discussion on LATEX to html translation.

C.6  Acknowledgements

The following people contributed to HEVEA development:

  • Philip A.Viton, maintains a Windows (win32) port of HEVEA.
  • Tibault Suzanne authored the HTML 5 generator that now is the default generator of HEVEA.
  • Abhishek Thakur implemented most of the new features of version 1.08, including, translations of symbols to Unicode entities, the babel package, and style sheet support.
  • Christian Queinnec wrote an extra lexer to translate code snippets produced by its tool VideoC for writing pedagogical documents on programming. The very principle he introduced for interfacing the videoc lexer with HEVEA main lexer is now used extensively throughout HEVEA source code.
  • Andrew Seagar is at the origin of support for the Thai language. He is the author of the document “How to Use HEVEA with the Thai Character Set”.
  • Pierre Boulet, by using HEVEA as a stage in his tool MlDoc for documenting Objective Caml source code, forced me into debugging HEVEA implementation of the alltt environment.
  • Nicolas Tessaud implemented the -text and -info output modes (see section 11).
  • Georges Mariano asked for many feature, and argued a lot to have them implemented.
  • Many users contributed by sending bug reports.

References

[LATEX-bis]
M. Gooseens, F. Mittelbach, A. Samarin. The LATEX Companion Addison-Websley, 1994.
[LATEX]
L. Lamport. A Document Preparation System System, LATEX, User’s Guide and Reference Manual. Addison-Websley, 1994.
[htmlgen]
X. Leroy. Lessons learned from the translation of documentation from LATEX to html. ERCIM/W4G Int. Workshop on WWW Authoring and Integration Tools, 1995. Available on the web at http://cristal.inria.fr/~xleroy/w4g.html
[HTML-4.0]
D. Ragget, A. Le Hors and I. Jacobs. HTML 4.0 Reference Specification. Available on the web at http://www.w3.org/TR/REC-html40, 1997.
[HTML-5a]
W3C HTML Working groups. HTML5 A vocabulary and associated APIs for HTML and XHTML http://dev.w3.org/html5/spec/spec.html, 2012.
[HTML-5b]
HTML Living Standard http://www.whatwg.org/specs/web-apps/current-work/multipage/, 2012.
[CSS-2]
Bert Bos, Tantek Çelik, Ian Hickson and Håkon Wium Lie. Cascading Style Sheets, Level 2 Revision 2 Specification. Available on the web at http://www.w3.org/TR/REC-CSS2/, 2011.

Index


*
Inria Rocquencourt – BP 105, 78153 Le Chesnay Cedex. Luc.Maranget@inria.fr

This document was translated from LATEX by HEVEA.
hevea-2.09-manual/manual033.html0000644004317100512160000003740712204704202016432 0ustar marangetcristal Moving Information Around Previous Up Next

B.11  Moving Information Around

B.11.1  Files

In some situations, HEVEA uses some of the ancillary files generated by LATEX. More precisely, while processing file doc.tex, the following files may be read:

.aux
The file doc.aux contains cross-referencing information, such as figure or section numbers. If this file is present, HEVEA reads it and put such numbers (or labels) inside the links generated by the \ref command. If the .aux file is not present, or if the hevea command is given the -fix option, HEVEA will instead use .haux files.
.haux
Such files are HEVEA equivalents of .aux files. Indeed, they are .aux files tailored to HEVEA needs. Two runs of HEVEA might be needed to get cross references right.
.htoc
This file contains a formatted table of contents. It is produced while reading the .haux file. As consequence a table of contents is available only when the .haux file is read.
.hbbl
The doc.hbbl file is generated by bibhva from doc.haux. When present, it is read by the \bibliography command.
.bbl
The doc.bbl file is generated by BibTEX from doc.aux. When present, and if no doc.hbbl exists, doc.bbl is read by the \bibliography command.
.hidx and .hind
HEVEA computes its own indexes, using .hidx files for storing index references and, using .hind files for storing formatted indexes. Index formatting significantly departs from the one of LATEX. Again, several runs of HEVEA might be needed to get indexes right.

HEVEA does not fail when it cannot find an auxiliary file. When another run of HEVEA is needed, a warning is issued, and it is user’s responsibility to rerun HEVEA. However, the convenient -fix command-line option instructs HEVEA to rerun itself, until it believes it has reached stable state.

B.11.2  Cross-References

The LATEX commands \label and \ref are changed by HEVEA into html anchors and local links, using the “a” element. Additionally, numerical references to sectional units, figures, tables, etc. are shown, as they would appear in the .dvi file. Numerical references to pages (such as generated by \pageref) are not shown; only an link is generated.

The anchor used is the label argument to \label{label}. More precisely, \label{label} translates to <a id="label"></a>; while \ref{label} translates to <a name="#label">nnn</a>, where nnn is the appropriate numerical reference to a section. As a consequence spaces are better avoided in label.

Starting with HEVEA version 2.04, the html anchors used by \label and \ref cannot differ from the arguments to these commands anymore. Moreover, when \label{label} occurs inside the argument of a sectioning command (i.e. in section title, as recommended by section B.4.1), then HEVEA and HACHA will use label as the “id” attribute of the corresponding section. For instance, the LATEX source of this very section is:

\subsection{Cross-References\label{cross-reference}}

It translates to html similar to

<h3 class="subsection" id="cross-reference">B.11.2&#XA0;&#XA0;Cross-References</h3>

Notice that no <a id="cross-reference"></a> appears above. Instead id="cross-reference" appears in the enclosing h3 header element.

While processing a document doc.tex, cross-referencing information can be computed in two different, mutually exclusive, ways, depending on whether LATEX has been previously run or not:

  • If there exists a file doc.aux and that hevea has not been given the command-line option -fix, then cross-referencing information is extracted from that file. Of course, the doc.aux file has to be up-to-date, that is, it should be generated by running LATEX as many times as necessary. (For HEVEA needs, one run is probably sufficient).
  • If no doc.aux file exists or if hevea has been given the -fix command-line option, then HEVEA expect to find cross-referencing information in the file doc.haux.

The second option is recommended.

When using its own doc.haux file, HEVEA will output a new doc.haux file at the end of its processing. This new doc.haux file contains actualised cross referencing information. Hence, in that case, HEVEA may need to run twice to get cross-references right. Note that, just like LATEX, HEVEA issues a warning then the cross-referencing information it generates differs from what it has read at start-up, and that it does not fail if doc.haux does not exist.

Observe that if a non-correct doc.aux file is present, then cross-references will apparently be wrong. However the links are correct.

B.11.3  Bibliography and Citations

The \cite macro is supported. Its optional argument is correctly handled. Citation labels are extracted from the .aux file if present, from the .haux file otherwise. Note that these labels are put there by LATEX in the first case, and by HEVEA in the second case, when they process the \bibitem command.

Using BibTEX

All BibTEX related commands exist and echo the appropriate information into the .haux file.

In particular, the \bibliography command exists and attempts to load the formatted bibliography, i.e. to load the .hbbl file. The .hbbl file is produced from the .haux file by the companion program bibhva (see C.1.4). To include the bibliographic references extracted from .bib databases, it should normally suffice to do:

# hevea doc.tex
# bibhva doc
# hevea doc.tex

In case no .hbbl file exists, the \bibliography command attempts to load the .bbl file normally used while combining LATEX and BibTEX. Thus, another way to extract bibliographic references from .bib databases is:

# latex doc.tex
# bibtex doc
# hevea doc.tex

In case both files exist, notice that loading the .hbbl file has priority over loading the .bbl file.

B.11.4  Splitting the Input

The \input and \include commands exist and they perform exactly the same operation of searching (and then processing) a file, whose name is given as an argument. See section C.1.1.1 on how HEVEA searches files. However, in the case of the \include command, the file is searched only when previously given as an argument to the \includeonly command.

Note the following features:

  • TEX syntax for \input is not supported. That is, one should write \input{filename}.
  • If filename is excluded with the -e command-line option (see section C.1.1.4), then HEVEA does not attempt to load filename. Instead, it echoes \input{filename} and \include{filename} commands into the image file. This sounds complicated, but this is what you want!
  • HEVEA does not fail when it cannot find a file, it just issues a warning.

The \listfiles command is a null command.

B.11.5  Index and Glossary

Glossaries are not handled (who uses them ?).

While processing a document doc.tex, index entries go into the file doc.hidx, while the formatted index gets written into the file doc.hind. As with LATEX, two runs of HEVEA are normally needed to format the index. However, if all index producing commands (normally \index) occur before the index formatting command (normally \printindex), then only one run is needed.

As in LATEX, index processing is not enabled by default and some package has to be loaded explicitly in the document preamble. To that aim, HEVEA provides the standard package makeidx, and two extended packages that allow the production of several indexes (see section B.17.7).

Formatting of indexes in HEVEA departs from LATEX behaviour. More precisely the theindex environment does not exist. Instead, indexes are formatted using special indexenv environments. Those details do not normally concern users. However, the number of columns in the presentation of the index can be controlled by setting the value of the indexcols counter (default value is two).

B.11.6  Terminal Input and Output

The \typeout command echos its argument on the terminal, macro parameter #i are replaced by their values. The \typein command is not supported.


Previous Up Next hevea-2.09-manual/manual020.html0000644004317100512160000003070012204704202016413 0ustar marangetcristal Customising HEVEA Previous Up Next

10  Customising HEVEA

HEVEA can be controlled by writing LATEX code. In this section, we examine how users can change HEVEA default behaviour or add functionalities. In all this section we assume that a document doc.tex is processed, using a private command file macros.hva. That is, HEVEA is invoked as:

# hevea macros.hva doc.tex

The general idea is as follows: one redefines LATEX constructs in macros.hva, using internal commands. This requires a good working knowledge of both LATEX and html. Usually, one can avoid internal commands, but then, all command redefinitions interact, sometimes in very nasty ways.

10.1  Simple changes

Users can easily change the rendering of some constructs. For instance, assume that all quotations in a text should be emphasised. Then, it suffices to put the following re-declaration in macros.hva:

\renewenvironment{quote}
  {\@open{blockquote}{}\@style{em}}
  {\@close{blockquote}}

The same effect can be achieved without using any of the internal commands:

\let\oldquote\quote
\let\oldendquote\endquote
\renewenvironment{quote}{\oldquote\em}{\oldendquote}

In some sense, this second solution is easier, when one already knows how to customise LATEX. However, this is less safe, since the definition of \em can be changed elsewhere.

There is yet another solution that takes advantage of style sheets. One can also add this line to the macros.hva file:

\newstyle{.quote}{font-style:oblique;}

This works because the environment quote is styled through style class quote (see Section 9.2). Notice that this solution has very little to do with “emphasising” in the proper sense, since here we short-circuit the implicit path from \em to oblique fonts.

10.2  Changing defaults for type-styles

HEVEA default rendering of type style changes is described in section B.15.1. For instance, the following example shows the default rendering for the font shapes:

\itshape italic shape \slshape slanted shape
\scshape small caps shape \upshape upright shape

By default, \itshape is italics, \slshape is oblique italics, \scshape is small-caps (thanks to style sheets) and \upshape is no style at all. All shapes are mutually exclusive, this means that each shape declaration cancels the effect of other active shape declarations. For instance, in the example, small caps shapes is small caps (no italics here).

italic shape slanted shape small caps shape upright shape

If one wishes to change the rendering of some of the shapes (say slanted caps), then one should redefine the old-style \sl declaration. For instance, to render slanted as Helvetica (why so?), one should redefine \sl by \renewcommand{\sl}{\@span{style="font-family:Helvetica"}} in macros.hva.

And now, the shape example above gets rendered as follows:

italic shape slanted shape small caps shape upright shape

Redefining the old-style \sl is compatible with the cancellation mechanism, redefining \slshape is not. Thus, redefining directly LATEX 2є \slshape with \renewcommand{\slshape}{} would yield:

italic shape slanted shape small caps shape upright shape

Hence, redefining old-style declarations using internal commands should yield satisfactory output. However, since cancellation is done at the html level, a declaration belonging to one component may sometimes cancel the effect of another that belongs to another component. Anyway, you might have not noticed it if I had not told you.

10.3  Changing the interface of a command

Assume for instance that the base style of doc.tex is jsc (the Journal of Symbolic Computation style for articles). For running HEVEA, the jsc style can be replaced by article style, but for a few commands whose calling interface is changed. In particular, the \title command takes an extra optional argument (which HEVEA should ignore anyway). However, HEVEA can process the document as it stands. One solution to insert the following lines into macros.hva:

\input{article.hva}% Force document class 'article'
\let\oldtitle=\title
\renewcommand{\title}[2][]{\oldtitle{#2}}

The effect is to replace \title by a new command which calls HEVEA \title with the appropriate argument.

10.4  Checking the optional argument within a command

HEVEA fully implements LATEX 2є \newcommand. That is, users can define commands with an optional argument. Such a feature permits to write a \epsfbox command that has the same interface as the LATEX command and echoes itself as it is invoked to the image file. To do this, the HEVEA \epsfbox command has to check whether it is invoked with an optional argument or not. This can be achieved as follows:

\newcommand{\epsfbox}[2][!*!]{%
\ifthenelse{\equal{#1}{!*!}}
{\begin{toimage}\epsfbox{#2}\end{toimage}}%No optional argument
{\begin{toimage}\epsfbox[#1]{#2}\end{toimage}}}%With optional argument
\imageflush}

10.5  Changing the format of images

Semi-automatic generation of included images is described in section 6. Links to included images are generated by the \imageflush command, which calls the \imgsrc command:

\newcommand{\imageflush}[1][]
{\@imageflush\stepcounter{image}\imgsrc[#1]{\hevaimagedir\jobname\theimage\heveaimageext}}

That is, you may supply a html-style attribute to the included image, as an optional argument to the \imageflush command.

By default, images are PNG images stored in .png files. HEVEA provides support for the alternative GIF image file format. It suffices to invoke hevea as:

# hevea gif.hva doc.tex

Then imagen must be run with option -gif:

# imagen -gif doc

A convenient alternative is to invoke hevea as:

# hevea -fix gif.hva doc.tex

Then hevea will invoke imagen with the appropriate option when it thinks images need to be rebuild.

10.6  Storing images in a separate directory

By redefining the \heveaimagedir command, users can specify a directory for images. More precisely, if the following redefinition occurs in the document preamble.

\renewcommand{\heveaimagedir}{dir}

Then, all links to images in the produced html file will be as “dir/…”. Then imagen must be invoked with option - todir:

# imagen -todir dir doc

As usual, hevea will invoke imagen with the appropriate option, provided it is passed the -fix option.

10.7  Controlling imagen from document source

The internal command \@addimagenopt{option} add the text option to imagen command-line options, when launched automatically by hevea (i.e. when hevea is given the -fix command-line option).

For instance, to instruct hevea/imagen to reduce all images by a factor of √2, it suffices to state:

%HEVEA\@addimagenopt{-mag 707}

See section C.1.5 for the list of command-line options accepted by imagen.


Previous Up Next hevea-2.09-manual/manual005.html0000644004317100512160000006452612204704202016433 0ustar marangetcristal A note on style Previous Up Next

3  A note on style

3.1  Spacing, Paragraphs

Sequence of spaces normally are translated into one single space. Newlines in the input document undergo a special treatement. A newline triggers a special scanning mode that reads all following spaces and newlines. In case at least one additional newline character is read, then HEVEA executes the \par command. Otherwise, HEVEA outputs a single newline character. This process approximates TEX process for introducting paragraph breaks and, as a result, empty lines produce paragraph breaks.

Space after commands with no argument is skipped (as in LATEX) — however this is not true in math mode, as explained in section 3.2.1.

The following two subsections describe management of paragraphs and spaces after command sequences in greater detail. They can be skipped in first reading.

3.1.1  Spurious Paragraphs

Paragraphs are rendered by the means of p elements. HEVEA is a bit simplistic in breaking paragraphs and spurious paragraphs may be present in the final html document. Normally, as HEVEA never outputs p elements whose contents is made of spaces only, this should not happen very often. Unfortunately, some commands do not produce any output in LATEX, while they do produce output in HEVEA: those commands are \label, \index etc. HEVEA translates \label{name} into the anchor <a id="name"></a>. As a result, the following source fragment will introduce a spurious paragraph.

This a first paragraph.

\label{label}

This is another paragraph.

Indeed, whe have the following translation:

<p>This a first paragraph.</p>
<p><a id="label"></a></p>
<p>This is another paragraph.</p>

Which your browser renders as follows — with additional borders emphasizing p elements.

This a first paragraph.

This is another paragraph.

Most of the time, such extra paragraphs remain unnoticed. Of course, they can be supressed by erasing one of the empty lines. For instance:

This a first paragraph.

\label{label}
This is another paragraph.

A similar situation occurs when a sectioning command is followed by \label and a paragraph break:

\section*{A section}\label{section:label}

First paragraph. 

Produced html is, after a few cosmetic simplifications:

<h2 class="section">A section</h2>
<p><a id="section:label"></a></p>
<p>First paragraph.</p>

Output is so, because closing the element h2 implies re-opening a new paragraph. Your browser renders the above html fragment as follows:

A section

First paragraph.

Here, two possible re-writing of source are:

\section*{A\label{section:label} section}

First paragraph.
\section*{A section}

\label{section:label}First paragraph.

In all cases, this amounts to avoiding a paragraph whose contents consists in a sole \label command.

Spurious paragraphs are more easily seen by running hevea with the command-line option -dv, which instructs hevea to add border on some of the elements it produces, including p elements.

3.1.2  Spaces after Commands

Space after commands with no argument is skipped. Consider the following example:

\newcommand{\open}{(}
\newcommand{\close}{)}
\open text opened by ``\verb+\open+''
and closed by ``\verb+\close+''\close.

We get:

(text opened by “\open” and closed by “\close”).

In the output above, the space after \open does not find its way to the output.

More generally, HEVEA tries to emulate LATEX behaviour in all situations, but discrepancies probably exist. Thus, users are invited to make explicit what they want. This is good practice anyway, because LATEX is mysterious here. Consider the following example, where the \tryspace macro is first applied and then expansed by hand:

\newcommand{\bfsymbol}{\textbf{symbol}}
\newcommand{\tryspace}[1]{#1 XXX}

Some space: \tryspace{\bfsymbol}\\
No space: \bfsymbol XXX

Spacing is a bit chaotic here, the space after symbol remains when #1 is substituted for it by LATEX (or HEVEA).

Some space : symbol XXX
No space : symbolXXX

Note that, if a space before “XXX” is wanted, then one should probably write:

\newcommand{\tryspace}[1]{#1{} XXX}

Finally, whether the tabulation character is a space or not is random, so avoid tabs in your source document.

3.2  Math mode

HEVEA math mode is not very far from normal text mode, except that all letters are shown in italics and that space after macros is echoed.

However, typesetting math formulas in html rises two difficulties. First, formulas contain symbols, such as Greek letters; second, even simple formulas do not follow the simple basic typesetting model of html.

3.2.1  Spacing in math mode

By contrast with LATEX, spaces from the input are significant in math mode, this feature allows users to instruct HEVEA on how to put space in their formulas. For instance, \alpha\rightarrow\beta is typeset without spaces between symbols, whereas \alpha \rightarrow \beta produces these spaces.

\alpha\rightarrow\beta : α→β
\alpha \rightarrow \beta : α → β

Note that LATEX ignores spaces in math mode, so that users can freely adjust HEVEA output without changing anything to LATEX output.

3.2.2  Symbols


Figure 1: Some symbols
\in:      \notin:  
\int:      \prod:  
\preceq:      \prec:  
\leq:      \geq:  
\cup:      \cap:  
\supset:      \subset:  
\supseteq:      \subseteq:  

With respect to previous versions of HEVEA since the begining, the treatment of symbols has significantly evolved. Outputting symbols is now performed by using Unicode character references, an option that much more complies whith standards than the previous option of selecting a “symbol” font. Observe that this choice is now possible, because more and more browsers correctly display such references. See Figure 1 for a few such symbols.

However, this means that ancient or purposely limited browsers (such as text-oriented browsers) cannot display maths, as translated by HEVEA. For authors that insist on avoiding symbols that cannot be shown by any browser, HEVEA offers a degraded mode that outputs text in place of symbols. HEVEA operates in this mode when given the -textsymbols command-line option. Replacement text is in English. For instance. the “∈” symbol is replace by “in”. This is far from being satisfactory, but degraded mode may be appropriate for documents than contain few symbols.

3.2.3  Displays

Apart from containing symbols, formulas specify strong typesetting constraints: sub-elements must be combined together following patterns that departs from normal text typesetting. For instance, fractions numerators and denominators must be placed one above the other. HEVEA handles such constraints in display mode only.

The main two operating modes of HEVEA are text mode and display mode. Text mode is the mode for typesetting normal text, when in this mode, text items are echoed one following the other and paragraph breaks are just blank lines, both in input and output. The so called displayed-paragraph environments of LATEX (such as center or quote) are rendered by html block-level elements (such as div or blockquote). Rendering is correct becauses both LATEX displayed environments and html block-level elements start a new line. Conversly, since opening a html block-level elements means starting a new line, any text that sould appear inside a paragraph must be translated using only html text-level elements. HEVEA chooses to translate in-text formulas that way.

HEVEA display mode allows more control on text placement, since entering display mode means opening a html table element and that tables allow to control the relative position of their sub-elements. Displays come in two flavor, horizontal displays and vertical displays. An horizontal display is a one-row table, while a vertical display is a one-column table. These tables holds display sub-elements, displays sub-elements being centered vertically in horizontal display mode and horizontally in vertical display mode.

Display mode is first opened by opening a displaymath environment (e.g. by $$ or \[). Then, sub-displays are opened by LATEX constructs which require them. For instance, a displayed fraction (\frac) opens a vertical display.

The distinction between text and display modes clearly appears while typesetting math formulas. An in-text formula such as $\int_1^2 xdx = \frac{3}{2}$ appears as: ∫12 xdx =3/2, while the same formula has a better aspect in display mode:

2


1
xdx = 
3
2

As a consequence, HEVEA is more powerful in display mode and formulas should be displayed as soon as they get a bit complicated. This rule is also true in LATEX but it is more strict in HEVEA, since html capabilities to typeset formulas inside text are quite poor. In particular, it is not possible to get in-text “real” fractions or in-text limit-like subscripts.

Users should remember that HEVEA is not TEX or LATEX and that HEVEA author neither is D. E. Knuth nor L. Lamport. Thus, some formulas may be rendered poorly. For instance, two fractions with different denominator and numerator height look strange.

1
N
i=0
Ui
 = 
N
i=0
Ui
1

The reason is that vertical displays in an horizontal display are html tables that always get centered in the vertical direction. Such a crude model cannot faithfully emulate any TEX box placement.

Users can get an idea on how HEVEA combines elements in display mode by giving the -dv command-line option, which instructs HEVEA to add borders to the table elements introduced by displays.

3.2.4  Arrays and display mode

By contrast with formulas, which HEVEA attempts to render with text-level elements only when they appear inside paragraphs, LATEX arrays always translate to the block-level element table, thereby introducing non-desired line breaks before and after in-text arrays. As a consequence, in-text arrays yield an acceptable output, only while alone in a paragraph.

Consider the following source:

This is a small array:
\begin{tabular}{|cc|}
\hline item-1 & item-2 \\
\hline\end{tabular}. Next sentence.

We get:

This is a small array:
item-1item-2
. Next sentence.

However, since in some sense, all html tables are displayed, the array and tabular environments implicitly open display mode, thus allowing a satisfactory typesetting of formulas in arrays. More precisely, array elements whose column format specification is l, c or r are typeset in display mode (see section B.10.2).

3.3  Warnings

When HEVEA thinks it cannot translate a symbol or construct properly, it issues a warning. This draws user attention onto a potential problem. However, rendering may be correct.

In the following (silly) example, HEVEA gets nervous because of the complicated length given as argument to \hspace:

\newlength{\mylength}\setlength{\mylength}{5pt}
\begin{tabular}{c@{\hspace{\mylength}}c}
Before & After
\end{tabular}

Running HEVEA on this input produces a warning:

# hevea manual.tex
...
manual.tex:507: Warning: \hspace with arg '\mylength'
...

However the final rendering is correct:

BeforeAfter

Note that all warnings can be suppressed with the -s (silent) option. When a warning reveals a real problem, it can often be cured by writing a specific macro. The next two sections introduce HEVEA macros, then section 4 describes how to proceed with greater detail.

3.4  Commands

Just like LATEX, HEVEA can be seen as a macro language, macros are rewritten until no more expansion is possible. Then, either some characters (such as letters, integers…) are outputed or some internal operation (such as changing font attributes, or arranging text items in a certain manner) are performed.

This scheme favors easy extension of program capabilities by users. However, predicting program behaviour and correcting errors may prove difficult, since final output or errors may occur after several levels of macro expansion. As a consequence, users can tailor HEVEA to their needs, but it remains a subtle task. Nevertheless, happy LATEX users should enjoy customizing HEVEA, since this is done by writing LATEX code.

3.5  Style choices

LATEX and html differ in many aspects. For instance, LATEX allows fine control over text placement, whereas html does not. More symbols and font attributes are available in LATEX than in html. Conversely, html has font attributes, such as color, which standard LATEX has not.

Therefore, there are many situations where HEVEA just cannot render the visual effect of LATEX constructions. Here some choices have to be made. For instance, calligraphic letters (\mathcal) are rendered in red.

If you are not satisfied with HEVEA rendering of text style declarations, then you can choose your own, by redefining the \cal macros, using \renewcommand, the macro redefinition operator of LATEX. The key point is that you need not worry about HEVEA internals: just redefine the old-LATEX style text-style declarations (i.e. \it, \sc, etc.) and everything should get fine:

\renewcommand{\sc}{\Huge}
\renewcommand{\cal}{\em}

(See sections 4 and 5 on how to make such changes while leaving your file processable by LATEX, and section 10.2 for a more thorough descripton of customizing type styles).

With such redefinitions, we get:

This is small caps and this is CALLIGRAPHIC LETTERS

Note that many of LATEX commands and environments are defined in the hevea.hva file that HEVEA loads before processing any input. These constructs are written using LATEX source code, in the end they invoke HEVEA internal commands.

Other LATEX constructs, such as LATEX key constructs or HEVEA internal commands (see section 8.3), that require special processing are defined in HEVEA source code. However, the vast majority of these definitions can be overridden by a redefinition. This may prove useless, since there is little point in redefining core constructs such as \newcommand for instance.


Previous Up Next