Changeset 15c7d39 for stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/math.xsl
- Timestamp:
- 10/08/2013 08:03:29 PM (11 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 58675ce
- Parents:
- 09a35dd
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/math.xsl
r09a35dd r15c7d39 7 7 8 8 <!-- ******************************************************************** 9 $Id $9 $Id: math.xsl 9647 2012-10-26 17:42:03Z bobstayton $ 10 10 ******************************************************************** 11 11 … … 17 17 18 18 <xsl:template match="inlineequation"> 19 <xsl:choose> 20 <xsl:when test="$passivetex.extensions != 0 and $tex.math.in.alt != ''"> 21 <xsl:apply-templates select="alt[@role='tex'] | inlinemediaobject/textobject[@role='tex']"> 22 <xsl:with-param name="output.delims"> 23 <xsl:call-template name="tex.math.output.delims"/> 24 </xsl:with-param> 25 </xsl:apply-templates> 26 </xsl:when> 27 <xsl:otherwise> 28 <xsl:apply-templates/> 29 </xsl:otherwise> 30 </xsl:choose> 19 <xsl:apply-templates/> 31 20 </xsl:template> 32 21 … … 59 48 60 49 <xsl:template match="equation/graphic | informalequation/graphic"> 61 <xsl:if test="$ passivetex.extensions = 0 or $tex.math.in.alt = ''">50 <xsl:if test="$tex.math.in.alt = ''"> 62 51 <fo:block> 63 52 <xsl:call-template name="process.image"/> … … 69 58 inlineequation/inlinemediaobject/textobject[@role='tex']" priority="1"> 70 59 <xsl:param name="output.delims" select="1"/> 71 <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">72 <xsl:processing-instruction name="xmltex">73 <xsl:if test="$output.delims != 0">74 <xsl:text>$</xsl:text>75 </xsl:if>76 <xsl:value-of select="."/>77 <xsl:if test="$output.delims != 0">78 <xsl:text>$</xsl:text>79 </xsl:if>80 </xsl:processing-instruction>81 </xsl:if>82 60 </xsl:template> 83 61 … … 88 66 <xsl:call-template name="tex.math.output.delims"/> 89 67 </xsl:variable> 90 <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">91 <xsl:processing-instruction name="xmltex">92 <xsl:if test="$output.delims != 0">93 <xsl:text>$$</xsl:text>94 </xsl:if>95 <xsl:value-of select="."/>96 <xsl:if test="$output.delims != 0">97 <xsl:text>$$</xsl:text>98 </xsl:if>99 </xsl:processing-instruction>100 </xsl:if>101 </xsl:template>102 103 <xsl:template match="alt[@role='tex']">104 <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">105 <xsl:message>106 Your equation is misplaced. It should be in inlineequation, equation or informalequation.107 </xsl:message>108 </xsl:if>109 68 </xsl:template> 110 69
Note:
See TracChangeset
for help on using the changeset viewer.