This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Centering an equation


On Mon, Jan 13, 2003 at 11:28:29AM -0800, Bob Stayton wrote:

> Ah, yes, it turns out that a mediaobject inside an equation element
> is handled in a separate template in fo/math.xsl.  That template
> needs to be updated as well to put the align attribute on the
> fo:block.

Thanks for the answer.  Is this the template:

<xsl:template match="equation/mediaobject |
informalequation/mediaobject">

I had hoped to be helpful and supply you with a patch, but this
doesn't seem to work:

<xsl:template match="equation/mediaobject | informalequation/mediaobject">
  <xsl:if test="$passivetex.extensions = 0 or $tex.math.in.alt = ''">
    <fo:block>
      <xsl:if test="@align">
        <xsl:attribute name="text-align">
          <xsl:value-of select="@align"/>
        </xsl:attribute>
      </xsl:if>
      <xsl:call-template name="select.mediaobject"/>
      <xsl:apply-templates select="caption"/>
    </fo:block>
  </xsl:if>
</xsl:template>

No doubt I am just displaying my XSLT naivete.  Is this something you
are going to patch in the XSL source at some stage?  If not, can you
show me how to customise the template on the list here?

Thanks again.


-- 
Paul.

mailto:paulh@logicsquad.net
mailto:paul.hoadley@student.adelaide.edu.au


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]