This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] Equation numbering
- From: Aidan Lister <aidanis at gmail dot com>
- To: Chantelle James <cjames at maplesoft dot com>, docbook at lists dot oasis-open dot org
- Date: Sat, 25 Dec 2004 22:55:10 +1100
- Subject: Re: [docbook] Equation numbering
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=OfbL9aFOdS2me8IeKDMmfSAh5TLeowZ+F8+bhOjKwLrGqKYwXE/gJO3GjvhUSvVnjoqF8dBr6Tju8E24xEJaNwf4lDL0KZNvGfcTqnY1s6ooSWbrQNfaSrJ9e8Fc3PtzNbqm7uhjJehCXz+A1u8NR0bEg3nVwvPPhmXxkqXRtNc=
- References: <97A477EB7CA581408A44B2D7E8B725FF9805B7@postoffice.maplesoft.com>
- Reply-to: Aidan Lister <aidanis at gmail dot com>
Hi Chantelle,
Not that I'm aware of - Hopefully the docbook guys will add this
functionality in via a parameter one day.
- Aidan
On Wed, 22 Dec 2004 08:29:35 -0500, Chantelle James
<cjames@maplesoft.com> wrote:
> Hi Aidan,
>
> Thanks very much - this customization will work well for html output. Is there a similar one for pdf output?
>
> Thanks,
> Chantelle James
>
>
> -----Original Message-----
> From: Aidan Lister [mailto:aidanis@gmail.com]
> Sent: Tue 12/21/2004 11:24 PM
> To: Chantelle James
> Cc:
> Subject: Re: [docbook] Equation numbering
> Hi Chantelle,
>
> I also needed to do exactly this, here's the customisation:
>
> <!-- Display label for informal equations -->
> <xsl:template name="informal.object">
> <xsl:param name="class" select="local-name(.)"/>
> <div class="{$class}">
> <xsl:call-template name="anchor"/>
>
> <!-- this is added -->
> <xsl:if test="local-name(.) = 'informalequation' and @condition">
> <span class="label">
> (<xsl:value-of select="@condition"/>)
> </span>
> </xsl:if>
>
> <xsl:apply-templates/>
>
> <!-- HACK: This doesn't belong inside formal.object; it should be
> done by -->
> <!-- the table template, but I want the link to be inside the DIV, so... -->
> <xsl:if test="local-name(.) = 'informaltable'">
> <xsl:call-template name="table.longdesc"/>
> </xsl:if>
> </div>
> </xsl:template>
>
> I make use of the "condition" attribute, ie <informalequation
> condition="1"> as informalequation does not support "label". I use CSS
> to position the label (float: right).
>
> Hope that helps, any better suggestions appreciated.
>
> On Mon, 20 Dec 2004 13:41:48 -0500, Chantelle James
> <cjames@maplesoft.com> wrote:
> > [previously posted to xep-support]
> >
> > Hi,
> >
> > I'm using the docbook xsl stylesheets v 1.67.2 and xep 3.8.
> >
> > I know that if I use formal equations, they will be auto-numbered.
> > However, I need the number to be placed to the right of the equation and
> > right-justified instead of above or below it. Is there a stylesheet
> > customization that will allow me to do this?
> >
> > Thanks for your help,
> >
> > Chantelle James
> >
> >
>
>
>