4 Text, math, and the export directive.
In general, both HTML and RTF are inferior to TEX in terms of typesetting flexibility. For example, neither one will render mathematical formulas correctly. For this reason, the TeXpider divides the output into two piles:
Output that will be formatted by the target language (HTML, e.g.) is saved into the target language files (.htm)
Output that cannot be well-formatted by the target language is saved into pre-built graphics files (.gif for HTML).
The default assigment is as follows:
Normal text, including headers, accents, footnotes, and tables is given to the target language.
Math is converted into graphics files.
There are some pitfalls here.
Firstly, notice that in L
ATEX tables are actually always done in math mode. However, HTML is capable of tables, albeit not with the same sophistication as TEX. Since majority of simpler tables will work fine with HTML, the TeXpider treats tables as text.
Secondly, there are some (usually) table-related situations where the TeXpider's intercept of tables is not sufficient. For example, some people use the math mode in order to center a table on a page. In a case like this, the table will be built as a bitmap. If this is not desirable, modify your L
ATEX source to use \begin{center}..\end{center} or some other centering mechanism.
Finally, there will be situations where you would prefer to let TEX do the formatting on a fragment of document. The new directive
\export{...} converts its argument to graphics. Some of the cases where this directive should be used are
invironments similar to the picture environment [the picture is trapped by the export.sty].
paragraphs formatted with \parshape
more complicated tables
In reverse, if you would like a fragment of text which normally be converted to the graphics, to be formatted by the target language, set the \MathBSuppress counter to a non-zero value before the box. For example, you can type
\MathBSuppress=1 $a+b$
____or
\MathBSuppress=1 $a \over b$
Notice that in the first case, you will get ``a+b'' in text mode; in the second the rendering will be wrong since neither HTML nor RTF supports fractions. Notice also that
\MathBSuppress affects only one next formula.
This technique is used in export.sty to modify the default behaviour of the tabular environment.