diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-03-28 19:43:32 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-03-28 19:44:49 (GMT) |
commit | 3afa4f741c26360245dc313bc368f508b26a6b96 (patch) | |
tree | 4fc9fedac990a099010fed8a4ee09ddc51c21cc5 /3rdParty/DocBook/XSL/params/tex.math.in.alt.xml | |
parent | 7548dabae7d10e48816142e508be651ada9f7bc3 (diff) | |
download | swift-contrib-3afa4f741c26360245dc313bc368f508b26a6b96.zip swift-contrib-3afa4f741c26360245dc313bc368f508b26a6b96.tar.bz2 |
Added DocBook infrastructure.
Imported most of "DocBook kit".
Added placeholder for Swiften developers guide.
Diffstat (limited to '3rdParty/DocBook/XSL/params/tex.math.in.alt.xml')
-rw-r--r-- | 3rdParty/DocBook/XSL/params/tex.math.in.alt.xml | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/3rdParty/DocBook/XSL/params/tex.math.in.alt.xml b/3rdParty/DocBook/XSL/params/tex.math.in.alt.xml new file mode 100644 index 0000000..c2c1441 --- /dev/null +++ b/3rdParty/DocBook/XSL/params/tex.math.in.alt.xml @@ -0,0 +1,83 @@ +<refentry xmlns="http://docbook.org/ns/docbook" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="5.0" xml:id="tex.math.in.alt"> +<refmeta> +<refentrytitle>tex.math.in.alt</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">list</refmiscinfo> +<refmiscinfo class="other" otherclass="value">plain</refmiscinfo> +<refmiscinfo class="other" otherclass="value">latex</refmiscinfo> +</refmeta> +<refnamediv> +<refname>tex.math.in.alt</refname> +<refpurpose>TeX notation used for equations</refpurpose> +</refnamediv> + +<refsynopsisdiv> +<src:fragment xml:id="tex.math.in.alt.frag"> +<xsl:param name="tex.math.in.alt"></xsl:param> +</src:fragment> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>If you want type math directly in TeX notation in equations, +this parameter specifies notation used. Currently are supported two +values -- <literal>plain</literal> and <literal>latex</literal>. Empty +value means that you are not using TeX math at all.</para> + +<para>Preferred way for including TeX alternative of math is inside of +<tag>textobject</tag> element. Eg.:</para> + +<programlisting><inlineequation> +<inlinemediaobject> +<imageobject> +<imagedata fileref="eq1.gif"/> +</imageobject> +<textobject><phrase>E=mc squared</phrase></textobject> +<textobject role="tex"><phrase>E=mc^2</phrase></textobject> +</inlinemediaobject> +</inlineequation></programlisting> + +<para>If you are using <tag>graphic</tag> element, you can +store TeX inside <tag>alt</tag> element:</para> + +<programlisting><inlineequation> +<alt role="tex">a^2+b^2=c^2</alt> +<graphic fileref="a2b2c2.gif"/> +</inlineequation></programlisting> + +<para>If you want use this feature, you should process your FO with +PassiveTeX, which only supports TeX math notation. When calling +stylsheet, don't forget to specify also +passivetex.extensions=1.</para> + +<para>If you want equations in HTML, just process generated file +<filename>tex-math-equations.tex</filename> by TeX or LaTeX. Then run +dvi2bitmap program on result DVI file. You will get images for +equations in your document.</para> + +<warning> + <para>This feature is useful for print/PDF output only if you + use the obsolete and now unsupported PassiveTeX XSL-FO + engine.</para> +</warning> + +</refsection> + +<refsection><info><title>Related Parameters</title></info> + <para><parameter>tex.math.delims</parameter>, + <parameter>passivetex.extensions</parameter>, + <parameter>tex.math.file</parameter></para> +</refsection> +<refsection><info><title>More information</title></info> + <para>For how-to documentation on embedding TeX equations and + generating output from them, see + <link + role="tcg" + xlink:href="TexMath.html" + >DBTeXMath</link>.</para> +</refsection> +</refentry> |