1 <refentry xmlns="http://docbook.org/ns/docbook"
\r
2 xmlns:xlink="http://www.w3.org/1999/xlink"
\r
3 xmlns:xi="http://www.w3.org/2001/XInclude"
\r
4 xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
\r
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
\r
6 version="5.0" xml:id="tex.math.in.alt">
\r
8 <refentrytitle>tex.math.in.alt</refentrytitle>
\r
9 <refmiscinfo class="other" otherclass="datatype">list</refmiscinfo>
\r
10 <refmiscinfo class="other" otherclass="value">plain</refmiscinfo>
\r
11 <refmiscinfo class="other" otherclass="value">latex</refmiscinfo>
\r
14 <refname>tex.math.in.alt</refname>
\r
15 <refpurpose>TeX notation used for equations</refpurpose>
\r
19 <src:fragment xml:id="tex.math.in.alt.frag">
\r
20 <xsl:param name="tex.math.in.alt"></xsl:param>
\r
24 <refsection><info><title>Description</title></info>
\r
26 <para>If you want type math directly in TeX notation in equations,
\r
27 this parameter specifies notation used. Currently are supported two
\r
28 values -- <literal>plain</literal> and <literal>latex</literal>. Empty
\r
29 value means that you are not using TeX math at all.</para>
\r
31 <para>Preferred way for including TeX alternative of math is inside of
\r
32 <tag>textobject</tag> element. Eg.:</para>
\r
34 <programlisting><inlineequation>
\r
35 <inlinemediaobject>
\r
37 <imagedata fileref="eq1.gif"/>
\r
38 </imageobject>
\r
39 <textobject><phrase>E=mc squared</phrase></textobject>
\r
40 <textobject role="tex"><phrase>E=mc^2</phrase></textobject>
\r
41 </inlinemediaobject>
\r
42 </inlineequation></programlisting>
\r
44 <para>If you are using <tag>graphic</tag> element, you can
\r
45 store TeX inside <tag>alt</tag> element:</para>
\r
47 <programlisting><inlineequation>
\r
48 <alt role="tex">a^2+b^2=c^2</alt>
\r
49 <graphic fileref="a2b2c2.gif"/>
\r
50 </inlineequation></programlisting>
\r
52 <para>If you want use this feature, you should process your FO with
\r
53 PassiveTeX, which only supports TeX math notation. When calling
\r
54 stylsheet, don't forget to specify also
\r
55 passivetex.extensions=1.</para>
\r
57 <para>If you want equations in HTML, just process generated file
\r
58 <filename>tex-math-equations.tex</filename> by TeX or LaTeX. Then run
\r
59 dvi2bitmap program on result DVI file. You will get images for
\r
60 equations in your document.</para>
\r
63 <para>This feature is useful for print/PDF output only if you
\r
64 use the obsolete and now unsupported PassiveTeX XSL-FO
\r
70 <refsection><info><title>Related Parameters</title></info>
\r
71 <para><parameter>tex.math.delims</parameter>,
\r
72 <parameter>passivetex.extensions</parameter>,
\r
73 <parameter>tex.math.file</parameter></para>
\r
75 <refsection><info><title>More information</title></info>
\r
76 <para>For how-to documentation on embedding TeX equations and
\r
77 generating output from them, see
\r
80 xlink:href="TexMath.html"
\r
81 >DBTeXMath</link>.</para>
\r