<!-- ==================================================================== -->
<xsl:template match="graphic">
- <fo:block>
- <xsl:call-template name="process.image"/>
- </fo:block>
+ <xsl:choose>
+ <xsl:when test="../inlineequation">
+ <xsl:call-template name="process.image"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:block>
+ <xsl:call-template name="process.image"/>
+ </fo:block>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="inlinegraphic">
<!-- ==================================================================== -->
<xsl:template match="graphic">
- <p>
- <xsl:call-template name="anchor"/>
- <xsl:call-template name="process.image"/>
- </p>
+ <xsl:choose>
+ <xsl:when test="../inlineequation">
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="process.image"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <p>
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="process.image"/>
+ </p>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="inlinegraphic">