OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC