[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Equation numbering
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 > > > > > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]