</xsl:variable>
<xsl:choose>
- <xsl:when test="$passivetex.extensions != 0
- or $fop.extensions != 0
+ <xsl:when test="$fop.extensions != 0
or $arbortext.extensions != 0">
<xsl:value-of select="$filename"/>
</xsl:when>
</xsl:for-each>
</xsl:variable>
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != '0'">
- <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
- <xsl:copy-of select="$page-number-citations"/>
- </fotex:sort>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$page-number-citations"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:copy-of select="$page-number-citations"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:variable>
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != '0'">
- <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
- <xsl:copy-of select="$page-number-citations"/>
- </fotex:sort>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$page-number-citations"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:copy-of select="$page-number-citations"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:variable>
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != '0'">
- <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
- <xsl:copy-of select="$page-number-citations"/>
- </fotex:sort>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$page-number-citations"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:copy-of select="$page-number-citations"/>
</xsl:otherwise>
</xsl:choose>
<fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>
- <xsl:if test="$passivetex.extensions = '0'">
- <xsl:copy-of select="$number.separator"/>
- </xsl:if>
+ <xsl:copy-of select="$number.separator"/>
<xsl:call-template name="reference">
<xsl:with-param name="zones" select="substring-after($zones, ' ')"/>
<xsl:with-param name="scope" select="$scope"/>
</xsl:variable>
<xsl:choose>
- <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">
+ <xsl:when test="$fop.extensions != 0">
<xsl:value-of select="concat($depth*$toc.indent.width, 'pt')"/>
</xsl:when>
<xsl:otherwise>
width="{$callout.icon.size}">
<xsl:attribute name="src">
<xsl:choose>
- <xsl:when test="$passivetex.extensions != 0
- or $fop.extensions != 0
+ <xsl:when test="$fop.extensions != 0
or $arbortext.extensions != 0">
<xsl:value-of select="$filename"/>
</xsl:when>
</xsl:choose>
</xsl:variable>
- <xsl:if test="$passivetex.extensions != 0">
- <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
- fotex-bookmark-level="2"
- fotex-bookmark-label="{$id}">
- <xsl:value-of select="$titleabbrev"/>
- </fotex:bookmark>
- </xsl:if>
-
<fo:block xsl:use-attribute-sets="component.title.properties">
<xsl:if test="$pagewide != 0">
<!-- Doesn't work to use 'all' here since not a child of fo:flow -->
</xsl:attribute>
</xsl:if>
- <xsl:if test="$passivetex.extensions != 0">
- <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
- fotex-bookmark-level="{count(ancestor::*)+2}"
- fotex-bookmark-label="{$id}">
- <xsl:value-of select="$titleabbrev"/>
- </fotex:bookmark>
- </xsl:if>
-
<fo:block xsl:use-attribute-sets="article.appendix.title.properties">
<fo:marker marker-class-name="section.head.marker">
<xsl:choose>
</xsl:apply-templates>
</xsl:variable>
- <xsl:if test="$passivetex.extensions != 0">
- <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
- fotex-bookmark-level="1"
- fotex-bookmark-label="{$id}">
- <xsl:value-of select="$title"/>
- </fotex:bookmark>
- </xsl:if>
-
<fo:block keep-with-next.within-column="always"
hyphenate="false">
<xsl:if test="$axf.extensions != 0">
<xsl:include href="fop.xsl"/>
<xsl:include href="fop1.xsl"/>
-<xsl:include href="passivetex.xsl"/>
<xsl:include href="xep.xsl"/>
<xsl:include href="axf.xsl"/>
<xsl:include href="ptc.xsl"/>
<xsl:param name="graphic.notations">
<!-- n.b. exactly one leading space, one trailing space, and one inter-word space -->
<xsl:choose>
- <xsl:when test="$passivetex.extensions != 0">
- <xsl:text> PNG PDF JPG JPEG linespecific </xsl:text>
- </xsl:when>
<xsl:when test="$fop1.extensions != 0">
<xsl:text> BMP GIF TIFF SVG PNG EPS JPG JPEG linespecific </xsl:text>
</xsl:when>
<xsl:param name="graphic.extensions">
<!-- n.b. exactly one leading space, one trailing space, and one inter-word space -->
<xsl:choose>
- <xsl:when test="$passivetex.extensions != 0">
- <xsl:text> png pdf jpg jpeg </xsl:text>
- </xsl:when>
<xsl:when test="$fop1.extensions != 0">
<xsl:text> bmp gif tif tiff svg png pdf jpg jpeg eps </xsl:text>
</xsl:when>
<xsl:param name="filename"/>
<xsl:choose>
- <xsl:when test="$passivetex.extensions != 0
- or $fop.extensions != 0">
+ <xsl:when test="$fop.extensions != 0">
<xsl:value-of select="$filename"/>
</xsl:when>
<xsl:otherwise>
<fo:table xsl:use-attribute-sets="table.table.properties">
<xsl:choose>
<xsl:when test="$fop.extensions != 0 or
- $fop1.extensions != 0 or
- $passivetex.extensions != 0">
+ $fop1.extensions != 0">
<xsl:attribute name="table-layout">fixed</xsl:attribute>
</xsl:when>
</xsl:choose>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
- <xsl:choose>
- <!-- * work around broken passivetex list-item-body rendering -->
- <xsl:when test="$passivetex.extensions = '1'">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
- </xsl:otherwise>
- </xsl:choose>
+ <fo:block>
+ <xsl:apply-templates/>
+ </fo:block>
</fo:list-item-body>
</xsl:variable>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@termlength"/>
- <xsl:choose>
- <!-- workaround for passivetex lack of support for non-constant expressions -->
- <xsl:when test="$passivetex.extensions != 0">
- <xsl:text>em</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>em * 0.60</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:text>em * 0.60</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:with-param name="terms" select="varlistentry/term"/>
<xsl:with-param name="maxlength" select="$variablelist.max.termlength"/>
</xsl:call-template>
- <xsl:choose>
- <!-- workaround for passivetex lack of support for non-constant expressions -->
- <xsl:when test="$passivetex.extensions != 0">
- <xsl:text>em</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>em * 0.60</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:text>em * 0.60</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="label-separation">1em</xsl:variable>
<xsl:variable name="distance-between-starts">
- <xsl:choose>
- <!-- workaround for passivetex lack of support for non-constant expressions -->
- <xsl:when test="$passivetex.extensions != 0">
- <xsl:value-of select="$termlength"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$termlength"/>
- <xsl:text>+</xsl:text>
- <xsl:value-of select="$label-separation"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:value-of select="$termlength"/>
+ <xsl:text>+</xsl:text>
+ <xsl:value-of select="$label-separation"/>
</xsl:variable>
<xsl:if test="title">
******************************************************************** -->
<xsl:template match="inlineequation">
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
- <xsl:apply-templates select="alt[@role='tex'] | inlinemediaobject/textobject[@role='tex']">
- <xsl:with-param name="output.delims">
- <xsl:call-template name="tex.math.output.delims"/>
- </xsl:with-param>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="alt">
<!-- "Support" for MathML -->
<xsl:template match="mml:math" xmlns:mml="http://www.w3.org/1998/Math/MathML">
- <xsl:choose>
- <!-- * If user is using passivetex, we don't wrap the output in -->
- <!-- * fo:instream-foreign-object (which passivetex doesn't support). -->
- <xsl:when test="not($passivetex.extensions = 0)">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <fo:instream-foreign-object>
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </fo:instream-foreign-object>
- </xsl:otherwise>
- </xsl:choose>
+ <fo:instream-foreign-object>
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </fo:instream-foreign-object>
</xsl:template>
<xsl:template match="mml:*" xmlns:mml="http://www.w3.org/1998/Math/MathML">
<xsl:template match="inlineequation/alt[@role='tex'] |
inlineequation/inlinemediaobject/textobject[@role='tex']" priority="1">
<xsl:param name="output.delims" select="1"/>
- <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
- <xsl:processing-instruction name="xmltex">
- <xsl:if test="$output.delims != 0">
- <xsl:text>$</xsl:text>
- </xsl:if>
- <xsl:value-of select="."/>
- <xsl:if test="$output.delims != 0">
- <xsl:text>$</xsl:text>
- </xsl:if>
- </xsl:processing-instruction>
- </xsl:if>
</xsl:template>
<xsl:template match="equation/alt[@role='tex'] | informalequation/alt[@role='tex'] |
<xsl:variable name="output.delims">
<xsl:call-template name="tex.math.output.delims"/>
</xsl:variable>
- <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
- <xsl:processing-instruction name="xmltex">
- <xsl:if test="$output.delims != 0">
- <xsl:text>$$</xsl:text>
- </xsl:if>
- <xsl:value-of select="."/>
- <xsl:if test="$output.delims != 0">
- <xsl:text>$$</xsl:text>
- </xsl:if>
- </xsl:processing-instruction>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="alt[@role='tex']">
- <xsl:if test="$passivetex.extensions != 0 and $tex.math.in.alt != ''">
- <xsl:message>
- Your equation is misplaced. It should be in inlineequation, equation or informalequation.
- </xsl:message>
- </xsl:if>
</xsl:template>
<xsl:template name="tex.math.output.delims">
</xsl:variable>
<xsl:choose>
- <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">
+ <xsl:when test="$fop.extensions != 0">
<!-- body.start.indent does not work well with these processors -->
</xsl:when>
<xsl:when test="starts-with($pageclass, 'body') or
</xsl:choose>
</xsl:variable>
- <xsl:if test="$passivetex.extensions != 0">
- <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
- fotex-bookmark-level="{$level + 2 + $offset}"
- fotex-bookmark-label="{$id}">
- <xsl:value-of select="$title"/>
- </fotex:bookmark>
- </xsl:if>
-
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:outline-level">
<xsl:value-of select="count(ancestor::*)-1 + $offset"/>
</xsl:apply-templates>
</xsl:variable>
- <xsl:if test="$passivetex.extensions != 0">
- <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex"
- fotex-bookmark-level="{$level + 2}"
- fotex-bookmark-label="{$id}">
- <xsl:value-of select="$marker.title"/>
- </fotex:bookmark>
- </xsl:if>
-
<xsl:if test="$axf.extensions != 0">
<xsl:attribute name="axf:outline-level">
<xsl:value-of select="count(ancestor::*)-1"/>
******************************************************************** -->
<xsl:template match="text()[namespace-uri(..) = '' or
- namespace-uri(..) = 'http://docbook.org/ns/docbook']">
- <xsl:choose>
- <xsl:when test="$passivetex.extensions != 0">
- <xsl:call-template name="passivetex.dash.subst">
- <xsl:with-param name="string">
- <xsl:call-template name="space.2000.subst">
- <xsl:with-param name="string" select="."/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="space.2000.subst">
- <xsl:with-param name="string" select="."/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
+ namespace-uri(..) = 'http://docbook.org/ns/docbook']">
+ <xsl:call-template name="space.2000.subst">
+ <xsl:with-param name="string" select="."/>
+ </xsl:call-template>
</xsl:template>
<xsl:param name="space.enquad.width">0.5em</xsl:param> <!-- U+2000 -->
<xsl:param name="table.block"/>
<xsl:choose>
<xsl:when test="@orient='land' and
- $fop.extensions = 0 and
- $passivetex.extensions = 0" >
+ $fop.extensions = 0" >
<fo:block-container reference-orientation="90"
padding="6pt"
xsl:use-attribute-sets="list.block.spacing">