Suggestions |
---|
Search:
|
Next:
Verbatim verbatim.mod.xsl |
Previous:
latex[@fileref] tex[@fileref] Up: LaTeX only Commands texmath.mod.xsl |
inlineequation — Process inlineequation [2.0.9] elements
<xsl:template match="inlineequation"> <xsl:variable name="tex" select="alt[@role='tex' or @role='latex']|inlinemediaobject/textobject[@role='tex' or @role='latex']|inlinemediaobject/textobject/phrase[@role='tex' or @role='latex']"/> ... </xsl:template>
This template can accommodate raw LaTeX mathematics. If the element has a role with a value of “latex” or “tex”, or contains an inlinemediaobject [2.0.9]/textobject [2.0.9] or an inlinemediaobject [2.0.9]/textobject [2.0.9]/phrase [2.0.9] with such as attribute, then it will typeset then in preference to all other content.
If such elements were not found, the template will search for generic inlinemediaobject [2.0.9] or alt [2.0.9] children. If latex.alt.is.preferred is set, alts will be preferred over inlinemediaobjects. If none of these elements was found, the template will format any graphic [2.0.9] children.