This is the mail archive of the mailing list for the DocBook project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook] how to make composite figures

On Mon, Apr 14, 2003 at 10:19:02AM -0400, Stefan Seefeld wrote:
> Bob Stayton wrote:
> > I haven't tested this with the stylesheets, but a
> > figure can contain a literallayout, which can contain
> > any number of inlinemediaobjects.
> thanks, that seems to work. Doing this I discovered some
> other related problems: I'd like to align the images vertically,
> but this seems quite difficult. First of all, both, the template
> for mediaobject and the one for inlinemediaobject both ignore
> the 'valign' attribute. As I wanted to submit a patch with the
> bug-report, I'm trying to figure out what the valign attribute
> should map to.
> The html specs deprecate the 'align' attribute, and don't even
> provide a 'valign' attribute neither for the <img> element, nor
> for <span>. So it seems I have to use (possibly inlined) css.
> But resorting to the 'style' attribute implies that there isn't
> a one-to-one mapping between docbook attributes and html attributes,
> but rather, that the html 'style' attribute is a function of
> docbook attributes set at different places. Oh well, quite messy...
> And I didn't even look into fo generation yet.
> Any ideas ?

As someone else suggested, a table might work better
if you need control over alignment.  A figure element
can take an informaltable element, and you can try
to use cell alignment attributes in it to control the

You will find that the HTML stylesheets already use a table
wrapper around a mediaobject anyway if you are using
a viewport for the graphic.  See Norm's explanation
of viewport in the Definitive Guide:


Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs at sco dot com

To unsubscribe, e-mail: docbook-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-help at lists dot oasis-open dot org

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]