[oXygen-user] Subfigure numbering with docbook 5
bobs at sagehill.net
Sat Oct 27 00:39:44 CDT 2018
Actually, a figure does not have to be confined to one page. That is a
stylesheet feature, not a feature of DocBook XML.
In DocBook XSL, a figure element is processed to use the attribute-set
named 'figure.properties', which by default is defined in fo/param.xsl as:
In other words, it inherits the attributes set in
'formal.object.properties', and one of those attributes is:
It is this setting that tries to keep a figure to one page, which in
most cases is what users want. However, a customization can change that
behavior. For example:
<xsl:when test="count(d:mediaobject) > 1">inherit</xsl:when>
This is an example of overriding one xsl:attribute in an attribute-set.
It also shows how the attribute-set is applied separately to each
instance of figure, so you can count d:mediaobjects and relax the
keep-together for those instances. These two sections in my book
illustrate this method of customization:
bobs at sagehill.net
On 10/26/2018 8:32 PM, Bernhard Kleine wrote:
> Hi Bob,
> unfortunately, your suggestion did not work. Obviously a figure is
> glued to one page, it cannot be spread on more than one. Therefore,
> the only thing that comes to my mind would be to reset the figure
> number by -1. Is this possible?
> Am 26.10.2018 um 22:48 schrieb Bob Stayton:
>> Hi Bernhard,
>> This is more of a DocBook issue than an Oxygen XML issue.
>> Currently DocBook 5.1 does not support subfigures, but version 5.2
>> under development will support a new element named <formalgroup>
>> which can contain one or more "formal" elements (table, figure,
>> example, equation). That would allow for subfigures. However, there
>> is currently no release date for DocBook 5.2, nor do the stylesheets
>> support that element yet.
>> For the current releases, I can only suggest a workaround. Put two
>> mediaobjects in a figure element (they are allowed), and give each
>> mediaobject a <caption> element whose para includes "a." or "b." and
>> include subtitles there if needed. Maybe someone else has a better
>> Bob Stayton
>> Sagehill Enterprises
>> bobs at sagehill.net
>> On 10/26/2018 12:09 PM, Bernhard Kleine wrote:
>>> The Docbook definitive Guide does not mention subfigures.
>>> The Docbook xsl complete Guide does not either.
>>> I have a figure too large that the text can only be read by magnifying
>>> glass. So I wand two parts of it on two pages. But I cannot see how to
>>> number it correctly Fig. 1a and Fig. 1b. Can please point me in correct
>>> Many thanks
>>> oXygen-user mailing list
>>> oXygen-user at oxygenxml.com
>> oXygen-user mailing list
>> oXygen-user at oxygenxml.com
> D-79853 lenzkirch
> bernhard.kleine at gmx.net
> thunderbird mit enigmail
> GPG schlüssel: D5257409
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the oXygen-user