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] | [List Home]

Subject: Re: [docbook-apps] sub equations

Hi Chris,
You didn't mention whether you wanted to change the
structure of the equation element to support sub
equations, something like nesting equation elements.
If that isn't necessary, and if the sub equations are
separate, you could just create a stylesheet
customization to respond to a role attribute on an
equation that designates it as a sub equation.   In
other words, if it is just a labeling issue then the
stylesheet could do it.  Perhaps using role something
like this:

<equation id="main-one">
<equation id="sub1" role="subequation main-one">

The first word in the role attribute identifies the
second equation as a sub equation, and the second word
provides the id of the main equation.  Then the
stylesheet could form a number label based on that

The number label would come from a customization of the
template in common/labels.xsl that starts with:

   <xsl:template match="equation" mode="label.markup">

Copy that to a customization layer, and change the
match to:

   <xsl:template match="equation[starts-with(@role,
'subequation')]" mode="label.markup">

and then change the template could parse the role value
to get the id of the main equation, and form the number

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Chris Chiasson" <chris.chiasson@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, February 09, 2006 6:51 PM
Subject: [docbook-apps] sub equations

Dear Docbook Apps,
Wanting several similar equations to share a title and
number, I
decided I would like to have support for sub-equations
(ex, Equation
2.1-a). I have never extended the docbook dtd or
stylesheets, and know
it would be a large undertaking for myself. I was
wondering if anyone
has already implemented this modification - have you?
please speak up

It is probably a modification that an engineer would
make, rather than
a mathematician... we're always coming up with sub
equations that are
actually not so important...


To unsubscribe, e-mail:
For additional commands, e-mail:

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