tex.math.in.alt.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <refentry xmlns="http://docbook.org/ns/docbook"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. xmlns:xi="http://www.w3.org/2001/XInclude"
  4. xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. version="5.0" xml:id="tex.math.in.alt">
  7. <refmeta>
  8. <refentrytitle>tex.math.in.alt</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">list</refmiscinfo>
  10. <refmiscinfo class="other" otherclass="value">plain</refmiscinfo>
  11. <refmiscinfo class="other" otherclass="value">latex</refmiscinfo>
  12. </refmeta>
  13. <refnamediv>
  14. <refname>tex.math.in.alt</refname>
  15. <refpurpose>TeX notation used for equations</refpurpose>
  16. </refnamediv>
  17. <refsynopsisdiv>
  18. <src:fragment xml:id="tex.math.in.alt.frag">
  19. <xsl:param name="tex.math.in.alt"></xsl:param>
  20. </src:fragment>
  21. </refsynopsisdiv>
  22. <refsection><info><title>Description</title></info>
  23. <para>If you want type math directly in TeX notation in equations,
  24. this parameter specifies notation used. Currently are supported two
  25. values -- <literal>plain</literal> and <literal>latex</literal>. Empty
  26. value means that you are not using TeX math at all.</para>
  27. <para>Preferred way for including TeX alternative of math is inside of
  28. <tag>textobject</tag> element. Eg.:</para>
  29. <programlisting>&lt;inlineequation&gt;
  30. &lt;inlinemediaobject&gt;
  31. &lt;imageobject&gt;
  32. &lt;imagedata fileref="eq1.gif"/&gt;
  33. &lt;/imageobject&gt;
  34. &lt;textobject&gt;&lt;phrase&gt;E=mc squared&lt;/phrase&gt;&lt;/textobject&gt;
  35. &lt;textobject role="tex"&gt;&lt;phrase&gt;E=mc^2&lt;/phrase&gt;&lt;/textobject&gt;
  36. &lt;/inlinemediaobject&gt;
  37. &lt;/inlineequation&gt;</programlisting>
  38. <para>If you are using <tag>graphic</tag> element, you can
  39. store TeX inside <tag>alt</tag> element:</para>
  40. <programlisting>&lt;inlineequation&gt;
  41. &lt;alt role="tex"&gt;a^2+b^2=c^2&lt;/alt&gt;
  42. &lt;graphic fileref="a2b2c2.gif"/&gt;
  43. &lt;/inlineequation&gt;</programlisting>
  44. <para>If you want use this feature, you should process your FO with
  45. PassiveTeX, which only supports TeX math notation. When calling
  46. stylsheet, don't forget to specify also
  47. passivetex.extensions=1.</para>
  48. <para>If you want equations in HTML, just process generated file
  49. <filename>tex-math-equations.tex</filename> by TeX or LaTeX. Then run
  50. dvi2bitmap program on result DVI file. You will get images for
  51. equations in your document.</para>
  52. <warning>
  53. <para>This feature is useful for print/PDF output only if you
  54. use the obsolete and now unsupported PassiveTeX XSL-FO
  55. engine.</para>
  56. </warning>
  57. </refsection>
  58. <refsection><info><title>Related Parameters</title></info>
  59. <para><parameter>tex.math.delims</parameter>,
  60. <parameter>passivetex.extensions</parameter>,
  61. <parameter>tex.math.file</parameter></para>
  62. </refsection>
  63. </refentry>