Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > fe880a8a8b91ae0b29da8fb72f3c41de > files > 37

hevea-2.32-2.mga7.i586.rpm

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="generator" content="hevea 2.32">
<meta name="Author" content="Luc Maranget">
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script><link rel="stylesheet" type="text/css" href="manual.css">
<title>A note on style</title>
</head>
<body>
<a href="manual004.html"><img src="previous_motif.svg" alt="Previous"></a>
<a href="manual002.html"><img src="contents_motif.svg" alt="Up"></a>
<a href="manual006.html"><img src="next_motif.svg" alt="Next"></a>
<hr>
<h2 class="section" id="sec10">3&#XA0;&#XA0;A note on style</h2>
<ul>
<li><a href="manual005.html#sec11">Spacing, Paragraphs</a>
</li><li><a href="manual005.html#sec14">Math mode</a>
</li><li><a href="manual005.html#sec19">Warnings</a>
</li><li><a href="manual005.html#sec20">Commands</a>
</li><li><a href="manual005.html#sec21">Style choices</a>
</li></ul>
<h3 class="subsection" id="sec11">3.1&#XA0;&#XA0;Spacing, Paragraphs</h3>
<p>
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 H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A executes the <code>\par</code> command.
Otherwise, H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A outputs a single newline character.
This process approximates T<sub>E</sub>X process for introducting paragraph
breaks and, as a result, empty lines produce paragraph breaks.</p><p>Space after commands with no argument is skipped (as in L<sup>A</sup>T<sub>E</sub>X) &#X2014;
however this is not true in math mode, as explained in
section&#XA0;<a href="#spacemath">3.2.1</a>.</p><p>The following two subsections describe management of paragraphs and
spaces after command sequences in greater detail.
They can be skipped in first reading.</p>
<h4 class="subsubsection" id="spurious:par">3.1.1&#XA0;&#XA0;Spurious Paragraphs</h4>
<p>
Paragraphs are rendered by the means of <code>p</code> elements.
H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A is a bit simplistic in breaking paragraphs and spurious paragraphs
may be present in the final html document.
Normally, as H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A never outputs <code>p</code> elements whose contents is
made of spaces only, this should not happen very often.
Unfortunately, some commands do not produce any output in L<sup>A</sup>T<sub>E</sub>X,
while they do produce output in H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A: those commands
are <code>\label</code>, <code>\index</code> etc.
H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A translates
<code>\label{</code><span class="c019">name</span><code>}</code> into the anchor
<code>&lt;a id="</code><span class="c019">name</span><code>"&gt;&lt;/a&gt;</code>. As a result, the following
source fragment will introduce a spurious paragraph.
</p><pre class="verbatim">This a first paragraph.

\label{label}

This is another paragraph.
</pre><p>
Indeed, whe have the following translation:
</p><pre class="verbatim">&lt;p&gt;This a first paragraph.&lt;/p&gt;
&lt;p&gt;&lt;a id="label"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is another paragraph.&lt;/p&gt;
</pre><p>
Which your browser renders as follows &#X2014; with additional borders
emphasizing <code>p</code> elements.
</p><blockquote class="quote">
<p class="c005">This a first paragraph.</p>
<p class="c005"><a id="label"></a></p>
<p class="c005">This is another paragraph.</p>
</blockquote><p>Most of the time, such extra paragraphs remain unnoticed.
Of course, they can be supressed by erasing one of the empty
lines. For instance:
</p><pre class="verbatim">This a first paragraph.

\label{label}
This is another paragraph.
</pre><p>A similar situation occurs when a sectioning command is followed by
<code>\label</code> and a paragraph break:
</p><pre class="verbatim">\section*{A section}\label{section:label}

First paragraph. 
</pre><p>
Produced html is, after a few cosmetic simplifications:
</p><pre class="verbatim">&lt;h2 class="section"&gt;A section&lt;/h2&gt;
&lt;p&gt;&lt;a id="section:label"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First paragraph.&lt;/p&gt;
</pre><p>
Output is so, because closing the element <code>h2</code> implies re-opening
a new paragraph.
Your browser renders the above html fragment as follows:
</p><blockquote class="quote">
<h2 class="section">A section</h2>
<p class="c005"><a id="section:label"></a></p>
<p class="c005">First paragraph.</p>
</blockquote><p>Here, two possible re-writing of source are:
</p><div class="center">
<table class="c002 cellpading0"><tr><td class="c040"><pre class="verbatim">\section*{A\label{section:label} section}

First paragraph.
</pre></td><td class="c040"><pre class="verbatim">\section*{A section}

\label{section:label}First paragraph.
</pre>
</td></tr>
</table>
</div><p>
In all cases, this amounts to avoiding a paragraph whose contents
consists in a sole <code>\label</code>&#XA0;command.</p><p>Spurious paragraphs are more easily seen by running <span class="c013">hevea</span>
with the command-line option&#XA0;<a id="hevea_default1"></a><span class="c013">-dv</span>, which instructs
<span class="c013">hevea</span> to add border on some of the elements it produces,
including <code>p</code> elements.</p>
<h4 class="subsubsection" id="sec13">3.1.2&#XA0;&#XA0;Spaces after Commands</h4>
<p>
<a id="hevea_default2"></a>
Space after commands with no argument is skipped.
Consider the following example:
</p><pre class="verbatim">\newcommand{\open}{(}
\newcommand{\close}{)}
\open text opened by ``\verb+\open+''
and closed by ``\verb+\close+''\close.
</pre><p>
We get:
</p><blockquote class="quote">


(text opened by &#X201C;<code>\open</code>&#X201D; and closed by
&#X201C;<code>\close</code>&#X201D;).
</blockquote><p>
In the output above, the space after <code>\open</code> does not
find its way to the output.</p><p>More generally,
H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A tries to emulate L<sup>A</sup>T<sub>E</sub>X behaviour in all situations, but
discrepancies probably exist.
Thus, users are invited to make explicit what they want.
This is good practice anyway, because L<sup>A</sup>T<sub>E</sub>X is mysterious
here. Consider the following example, where the <code>\tryspace</code>
macro is first applied and then expansed by hand:
</p><pre class="verbatim">\newcommand{\bfsymbol}{\textbf{symbol}}
\newcommand{\tryspace}[1]{#1 XXX}

Some space: \tryspace{\bfsymbol}\\
No space: \bfsymbol XXX
</pre><p>
Spacing is a bit chaotic here,
the space after <span class="c023">symbol</span> remains when <code>#1</code> is substituted for it
by L<sup>A</sup>T<sub>E</sub>X (or H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A).</p><blockquote class="quote">


<table class="c002 cellpading0"><tr><td class="c033">Some space</td><td class="c030">&#XA0;:&#XA0;</td><td class="c033"><span class="c023">symbol</span> XXX</td></tr>
<tr><td class="c033">No space</td><td class="c030">&#XA0;:&#XA0;</td><td class="c033"><span class="c023">symbol</span>XXX
</td></tr>
</table></blockquote><p>
Note that, if a space before &#X201C;XXX&#X201D; is wanted, then
one should probably write:
</p><pre class="verbatim">\newcommand{\tryspace}[1]{#1{} XXX}
</pre><p>Finally, <a id="hevea_default3"></a>whether the tabulation character is a space or not 
is random, so avoid tabs in your source document.</p>
<h3 class="subsection" id="sec14">3.2&#XA0;&#XA0;Math mode</h3>
<p>
H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A 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.</p><p>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&#XA0;html.</p>
<h4 class="subsubsection" id="spacemath">3.2.1&#XA0;&#XA0;Spacing in math mode</h4>
<p>
<a id="hevea_default4"></a>
By contrast with L<sup>A</sup>T<sub>E</sub>X, spaces from the input are significant in
math mode, this
feature allows users to instruct H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A
on how to put space in their formulas.
For instance, <code>\alpha\rightarrow\beta</code> is typeset without spaces between
symbols, whereas <code>\alpha \rightarrow \beta</code> produces these spaces.

</p><table class="display dcenter"><tr class="c036"><td class="dcell"><table class="c002 cellpading0"><tr><td class="c033"><code>\alpha\rightarrow\beta</code></td><td class="c030"> : </td><td class="c033">&#X3B1;&#X2192;&#X3B2;</td></tr>
<tr><td class="c033"><code>\alpha \rightarrow \beta</code></td><td class="c030"> : </td><td class="c033">&#X3B1;&#XA0;&#X2192;&#XA0;&#X3B2;</td></tr>
</table></td></tr>
</table><p>

Note that L<sup>A</sup>T<sub>E</sub>X ignores spaces in math mode, so that users can
freely adjust H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A output without changing anything to L<sup>A</sup>T<sub>E</sub>X
output.</p>
<h4 class="subsubsection" id="sec16">3.2.2&#XA0;&#XA0;Symbols</h4>
<p><a id="symbols"></a>
</p><blockquote class="figure"><div class="center"><hr class="c050"></div>
<div class="caption"><table class="c002 cellpading0"><tr><td class="c040">Figure 1: <a id="symbol:fig"></a>Some symbols</td></tr>
</table></div>

<div class="center">
<table class="c002 cellpading0"><tr><td class="c034"><span class="c013">\in</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X2208;</span></td><td class="c030">&#XA0;&#XA0;&#XA0;&#XA0;</td><td class="c034"><span class="c013">\notin</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X2209;</span></td></tr>
<tr><td class="c034"><span class="c013">\int</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X222B;</span></td><td class="c030">&#XA0;&#XA0;&#XA0;&#XA0;</td><td class="c034"><span class="c013">\prod</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X220F;</span></td></tr>
<tr><td class="c034"><span class="c013">\preceq</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X227C;</span></td><td class="c030">&#XA0;&#XA0;&#XA0;&#XA0;</td><td class="c034"><span class="c013">\prec</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X227A;</span></td></tr>
<tr><td class="c034"><span class="c013">\leq</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X2264;</span></td><td class="c030">&#XA0;&#XA0;&#XA0;&#XA0;</td><td class="c034"><span class="c013">\geq</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X2265;</span></td></tr>
<tr><td class="c034"><span class="c013">\cup</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X222A;</span></td><td class="c030">&#XA0;&#XA0;&#XA0;&#XA0;</td><td class="c034"><span class="c013">\cap</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X2229;</span></td></tr>
<tr><td class="c034"><span class="c013">\supset</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X2283;</span></td><td class="c030">&#XA0;&#XA0;&#XA0;&#XA0;</td><td class="c034"><span class="c013">\subset</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X2282;</span></td></tr>
<tr><td class="c034"><span class="c013">\supseteq</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X2287;</span></td><td class="c030">&#XA0;&#XA0;&#XA0;&#XA0;</td><td class="c034"><span class="c013">\subseteq</span>:&#XA0;&#XA0;</td><td class="c033"><span class="c017">&#X2286;</span></td></tr>
</table>
</div>
<div class="center"><hr class="c050"></div></blockquote><p>
With respect to previous versions of&#XA0;H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A 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 &#X201C;symbol&#X201D; font. Observe that this choice is now
possible, because more and more browsers correctly display such
references. See&#XA0;Figure&#XA0;<a href="#symbol%3Afig">1</a> for a few such symbols.</p><p>However, this means that ancient or purposely limited browsers (such as
text-oriented browsers) cannot display maths, as translated by H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A.
For authors that insist on avoiding symbols that cannot be shown
by any browser, H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A offers a degraded mode that outputs text
in place of symbols.
H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A operates in this mode when given the <a id="hevea_default5"></a><span class="c013">-textsymbols</span>
command-line option. Replacement text is in English.
For instance. the &#X201C;&#X2208;&#X201D; symbol is replace by &#X201C;in&#X201D;.
This is far from being satisfactory, but degraded mode may be
appropriate for documents than contain few symbols.</p>
<h4 class="subsubsection" id="sec17">3.2.3&#XA0;&#XA0;Displays</h4>
<p>
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.
H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A handles such constraints in display mode only.</p><p>The main two operating modes of H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A are <em>text</em> mode and
<em>display</em> 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 <em>displayed-paragraph environments</em> of L<sup>A</sup>T<sub>E</sub>X (such as
<span class="c013">center</span> or <span class="c013">quote</span>) are rendered by html block-level
elements (such as <span class="c013">div</span> or <span class="c013">blockquote</span>).
Rendering is correct becauses both L<sup>A</sup>T<sub>E</sub>X 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.
H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A chooses to translate in-text formulas that way.</p><p>H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A display mode allows more control on text placement, since
entering display mode means opening
a html <code>table</code> 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.</p><p>Display mode is first opened by opening a <code>displaymath</code> environment
(e.g. by <code>$$</code>
or <code>\[</code>).
Then, sub-displays are opened by L<sup>A</sup>T<sub>E</sub>X constructs which require
them.
For instance, a displayed fraction (<code>\frac</code>) opens a vertical display.</p><p>The distinction between text and display modes clearly appears while
typesetting math formulas.
An in-text formula such as
<code>$\int_1^2 xdx = \frac{3}{2}$</code> appears as:
&#X222B;<sub>1</sub><sup>2</sup> <span class="c019">xdx</span> =3/2,
while the same formula has a better aspect in display mode:
</p><table class="display dcenter"><tr class="c036"><td class="dcell"><span class="c018">&#X222B;</span></td><td class="dcell"><table class="display"><tr><td class="dcell c031">2</td></tr>
<tr><td class="dcell c031"><br>
<br>
</td></tr>
<tr><td class="dcell c031">1</td></tr>
</table></td><td class="dcell"><span class="c019">xdx</span>&#XA0;=&#XA0;</td><td class="dcell"><table class="display"><tr><td class="dcell c028">3</td></tr>
<tr><td class="hbar"></td></tr>
<tr><td class="dcell c028">2</td></tr>
</table></td></tr>
</table><p>
As a consequence, H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A 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 L<sup>A</sup>T<sub>E</sub>X but it is more strict in H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A,
since html capabilities to typeset formulas inside text are quite
poor.
In particular, it is not possible to get in-text &#X201C;real&#X201D; fractions or
in-text limit-like subscripts.</p><p>Users should remember that H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A is not T<sub>E</sub>X or L<sup>A</sup>T<sub>E</sub>X and that
H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A author neither is D.&#XA0;E.&#XA0;Knuth nor L.&#XA0;Lamport.
Thus, some formulas may be rendered poorly.
For instance, two fractions with different denominator and numerator
height look strange.

</p><table class="display dcenter"><tr class="c036"><td class="dcell"><table class="display"><tr><td class="dcell c028">1</td></tr>
<tr><td class="hbar"></td></tr>
<tr><td class="dcell c028"><table class="display"><tr class="c036"><td class="dcell"><table class="display"><tr><td class="dcell c028"><span class="c019">N</span></td></tr>
<tr><td class="dcell c028"><span class="c018">&#X2211;</span></td></tr>
<tr><td class="dcell c028"><span class="c019">i</span>=0</td></tr>
</table></td><td class="dcell"><span class="c019">U</span><sub><span class="c019">i</span></sub></td></tr>
</table></td></tr>
</table></td><td class="dcell">&#XA0;=&#XA0;</td><td class="dcell"><table class="display"><tr><td class="dcell c028"><table class="display"><tr class="c036"><td class="dcell"><table class="display"><tr><td class="dcell c028"><span class="c019">N</span></td></tr>
<tr><td class="dcell c028"><span class="c018">&#X2211;</span></td></tr>
<tr><td class="dcell c028"><span class="c019">i</span>=0</td></tr>
</table></td><td class="dcell"><span class="c019">U</span><sub><span class="c019">i</span></sub></td></tr>
</table></td></tr>
<tr><td class="hbar"></td></tr>
<tr><td class="dcell c028">1</td></tr>
</table></td></tr>
</table><p>

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 T<sub>E</sub>X box placement.</p><p>Users can get an idea on how H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A combines elements in display mode
by giving the <a id="hevea_default6"></a><span class="c013">-dv</span> command-line option, which
instructs H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A to add
borders to the <code>table</code> elements introduced by displays.</p>
<h4 class="subsubsection" id="sec18">3.2.4&#XA0;&#XA0;Arrays and display mode</h4>
<p>By contrast with formulas, which H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A attempts to render with
text-level elements only when they appear inside paragraphs, L<sup>A</sup>T<sub>E</sub>X arrays
always translate to the
block-level element <code>table</code>, 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.</p><p>
Consider the following source:
</p><pre class="verbatim">This is a small array:
\begin{tabular}{|cc|}
\hline item-1 &amp; item-2 \\
\hline\end{tabular}. Next sentence.
</pre><p>
We get:
</p><blockquote class="quote">
This is a small array:
<table class="c001 cellpadding1" border=1><tr><td class="c029">item-1</td><td class="c029">item-2
</td></tr>
</table>. Next sentence.
</blockquote><p>However, since in some sense, all html tables are displayed, the
<code>array</code> and <code>tabular</code> environments implicitly open display
mode, thus allowing a satisfactory typesetting of formulas in
arrays. More precisely, array elements whose column format
specification is <code>l</code>, <code>c</code> or <code>r</code> are typeset in display
mode (see section&#XA0;<a href="manual032.html#arraydef">B.10.2</a>).</p>
<h3 class="subsection" id="sec19">3.3&#XA0;&#XA0;Warnings</h3>
<p>
When H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A 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.</p><p>
In the following (silly) example, H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A gets nervous because of
the complicated length given as argument to <code>\hspace</code>:
</p><pre class="verbatim">\newlength{\mylength}\setlength{\mylength}{5pt}
\begin{tabular}{c@{\hspace{\mylength}}c}
Before &amp; After
\end{tabular}
</pre><p>
Running H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A on this input produces a warning:
</p><pre class="verbatim"># hevea manual.tex
...
manual.tex:507: Warning: \hspace with arg '\mylength'
...
</pre><p>
However the final rendering is correct:
</p><blockquote class="quote">
<table class="c002 cellpading0"><tr><td class="c030">Before</td><td class="c030"></td><td class="c030">After
</td></tr>
</table>
</blockquote><p>Note that all warnings can be suppressed with the <code>-s</code> (silent)
option.
When a warning reveals a real problem, it can often be cured by
writing a specific macro. The next two sections introduce H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A
macros, then section&#XA0;<a href="manual006.html#trouble">4</a> describes how to proceed with
greater detail.</p>
<h3 class="subsection" id="sec20">3.4&#XA0;&#XA0;Commands</h3>
<p>
Just like L<sup>A</sup>T<sub>E</sub>X, H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A can be seen as a macro language, macros
are rewritten until no more expansion is possible. Then, either some
characters (such as letters, integers&#X2026;) are outputed or some
internal operation (such as changing font attributes, or arranging
text items in a certain manner) are performed.</p><p>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 H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A to their needs, but it
remains a subtle task.
Nevertheless, happy L<sup>A</sup>T<sub>E</sub>X users should enjoy customizing
H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A, since this is done by writing L<sup>A</sup>T<sub>E</sub>X code.</p>
<h3 class="subsection" id="sec21">3.5&#XA0;&#XA0;Style choices</h3>
<p><a id="stylechoice"></a>
L<sup>A</sup>T<sub>E</sub>X and html differ in many aspects. For instance, L<sup>A</sup>T<sub>E</sub>X allows
fine control over text placement, whereas
html does not.
More symbols and font attributes are available in L<sup>A</sup>T<sub>E</sub>X than in
html. Conversely, html has font attributes, such as color, which
standard L<sup>A</sup>T<sub>E</sub>X has not.</p><p>Therefore, there are many situations where H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A just cannot
render the visual effect of L<sup>A</sup>T<sub>E</sub>X constructions. Here some choices
have to be made. For instance, calligraphic letters (<code>\mathcal</code>)
are rendered in red.</p><p>If you are not satisfied with H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A rendering of text style
declarations, then you
can choose your own, by redefining the <code>\cal</code>
macros, using <code>\renewcommand</code>, the macro redefinition operator of
L<sup>A</sup>T<sub>E</sub>X. The key point is that you need not worry about H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A
internals: just redefine the old-L<sup>A</sup>T<sub>E</sub>X style text-style
declarations (<em>i.e.</em> <code>\it</code>, <code>\sc</code>, etc.) and everything should
get fine:
</p><pre class="verbatim">\renewcommand{\sc}{\Huge}
\renewcommand{\cal}{\em}
</pre><p>
(See sections&#XA0;<a href="manual006.html#trouble">4</a> and&#XA0;<a href="manual007.html#both">5</a> on how to make such
changes while leaving your file processable by L<sup>A</sup>T<sub>E</sub>X, and
section&#XA0;<a href="manual020.html#customize-style">10.2</a> for a more thorough descripton of
customizing type styles).</p><p>
With such redefinitions, we get:


</p><blockquote class="quote">
This is <span class="c018"><span style="font-size:150%">small caps</span></span> and this is  <span class="c019"><em>CALLIGRAPHIC LETTERS</em></span>
</blockquote><p>Note that many of L<sup>A</sup>T<sub>E</sub>X commands and environments are defined in the 
<span class="c013">hevea.hva</span> file that H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A loads before processing any
input.
These constructs are written using L<sup>A</sup>T<sub>E</sub>X source code, in the end they
invoke H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A internal commands.</p><p>Other L<sup>A</sup>T<sub>E</sub>X constructs, such as
L<sup>A</sup>T<sub>E</sub>X key constructs or H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A internal commands (see section&#XA0;<a href="manual018.html#internal">8.3</a>),
that require special processing are defined
in H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A 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 <code>\newcommand</code> for instance.</p>
<hr>
<a href="manual004.html"><img src="previous_motif.svg" alt="Previous"></a>
<a href="manual002.html"><img src="contents_motif.svg" alt="Up"></a>
<a href="manual006.html"><img src="next_motif.svg" alt="Next"></a>
</body>
</html>