1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html
><head><!--mn27.html from mn.tex (TeX4ht, 1999-03-31 04:46:00)-->
<title>run</title><link
rel="stylesheet" type="text/css" href="mn.css"></head><body
>
<a
href="mn.html#mn27.html" >exit run</a>
<h3 class="SubSectionHead"><a
name="QQ1-27-22"></a>The Translation Process</h3>
<!--4557--><p class="noindent">The system can be activated with a sequence of commands of the following form.
<pre class="Verbatim"><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">latex</SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">x</SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">(or</SPAN><SPAN CLASS="cmtt-10">`tex</SPAN><SPAN CLASS="cmtt-10">x')</SPAN><SPAN CLASS="cmtt-10"></SPAN>
<SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">latex</SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">x</SPAN><SPAN CLASS="cmtt-10"></SPAN>
<SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">latex</SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">x</SPAN><SPAN CLASS="cmtt-10"></SPAN>
<SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">tex4ht</SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">x</SPAN><SPAN CLASS="cmtt-10"></SPAN>
<SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">t4ht</SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">x</SPAN><SPAN CLASS="cmtt-10"></SPAN>
</pre>
<!--4569--><p class="indent"> The three compilations with La(TeX) are needed to ensure proper links. The approach is illustrated in the
following picture.
<!--4573--><p class="indent">
<img
src="mn3x.gif"alt=" --html
| files
----| ------| | -----|
| | | | | | | gif
x.tex----TeX |----x.dvi----|tex4ht|--|-x.idv ---|t4ht ----files
----- ------- | -----
|
--x.lg" >
<!--4589--><p class="indent">
<DL > <DT>x.tex
<DD>This is a source TeX/LaTeX/OtherTeX file that imports the style file tex4ht.sty. The style file consists of
commands for requesting hypertext features.
<!--4596--><p class="indent"> <DT>tex4ht
<DD>The output of TeX is a standard dvi file interleaved with special instructions for the postprocessor <code><SPAN CLASS="cmtt-10">tex4ht</SPAN></code> to
use. The special instructions come from implicit and explicit requests made in the source file through commands of
TeX4ht.
<!--4603--><p class="indent"> The utility <code><SPAN CLASS="cmtt-10">tex4ht</SPAN></code> translates the dvi code into standard text, while obeying the requests it gets from the
special instructions. The special instructions may request the creation of files, insertion of html code, filtering of
pictures, and so forth.
<!--4608--><p class="indent"> In the extreme case that the source code contains no commands of TeX4ht, tex4ht gets pure dvi code and it
outputs (almost) plain text with no html commands in it.
<!--4613--><p class="indent"> <DT>x.idv
<DD>This is a dvi file extracted from x.dvi, and it contains the pictures needed in the html files.
<!--4618--><p class="indent"> <DT>x.lg
<DD>This is a log file listing the pictures of x.idv, the gif files that should be created, CSS information, and user
directives introduced through the `<code><SPAN CLASS="cmtt-10">\Needs{...}</SPAN></code>' command.
<!--4624--><p class="indent"> <DT>t4ht
<DD>This is an interpreter for executing the requests made in the `<code><SPAN CLASS="cmtt-10">x.lg</SPAN></code>' script.
</DL>
</body>
</html>
|