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] Two column body - Span one figure over the whole page ?

Fop 0.92 beta can span a figure across two columns, but the DocBook 
stylesheets don't do that by default for pgwide="1".  That's because the 
span="all" property is supported differently in the different processors, 
and in too many situations it generates errors.  You can add the span="all" 
property onto pgwide figures using an attribute set defined for that 

<xsl:attribute-set name="pgwide.properties">
  <xsl:attribute name="span">all</xsl:attribute>

However, fo:blocks with that property must be direct children of fo:flow. 
Since Docbook nests fo:blocks freely, that's a problem to be worked around. 
See this email for more info and a link to a customization for two-column 
articles that you might be able adapt:


Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Fredrik Svensson" <fred@ludd.ltu.se>
To: "apps docbook" <docbook-apps@lists.oasis-open.org>
Sent: Thursday, November 16, 2006 9:32 AM
Subject: [docbook-apps] Two column body - Span one figure over the whole 
page ?

> Hi,
> I have a document using the two column style.
>  <xsl:param name="column.count.titlepage" select="1"/>
>  <xsl:param name="column.count.lot" select="1"/>
>  <xsl:param name="column.count.front" select="1"/>
>  <xsl:param name="column.count.body" select="2"/>
>  <xsl:param name="column.count.back" select="1"/>
>  <xsl:param name="column.count.index" select="1"/>
> (everything including title spans 2 columns)
> I am using latest fop (SVN trunk) and trying to make a figure span both
> columns. The picture is about 18 cm wide (on A4) and it also becomes so 
> wide,
> but the other column is written over it...
> I have tired pgwide="1" but it did not help...
>    <figure pgwide="1"><title>Image</title>
>    <mediaobject>
>      <imageobject>
> <imagedata fileref="img/image.png" width="18cm"/>
>      </imageobject>
>    </mediaobject>
>    </figure>
> Is it possible to do something ? do I have to dig deeper into the .fo ?
> Also have some *minor* trouble scaling some tables,
>    <colspec colname="c1" colwidth="4cm"/>
>    <colspec colname="c2" colwidth="3cm"/>
>    <colspec colname="c3" colwidth="1cm"/>
> become all the same.. but I guess that is fop too..
> /Fred
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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