This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


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: Head of Pages (PDF)


On Čt, 2002-10-24 at 09:05, stephan@stephan-wiesner.de wrote:
> Hi list, I have quite long chapter titles and they get line-wrapped in 
> the headline of the pages. Therefore I tried to change the table that
> displays
> them, but could not make it work. 
> Below is the corresponding code snippet.
> The table gets it's black border and the left cell has a red one, so I
> am sure
> that my code is used. The left cell still has a width of about a third
> pages, 
> though.
> I use the 1.56.1 style, Saxon and FOP.
> 
> 
> <xsl:template name="header.table">
>   <xsl:param name="pageclass" select="''"/>
>   <xsl:param name="sequence" select="''"/>
>   <xsl:param name="gentext-key" select="''"/>
> 
>   <!-- default is a single table style for all headers -->
>   <!-- Customize it for different page classes or sequence location -->
> 
>   <xsl:variable name="candidate">
>     <fo:table table-layout="fixed" width="100%" border="2.0pt solid
> black">
>       <xsl:call-template name="head.sep.rule"/>
>       <fo:table-column column-number="1" column-width="10%"/>
>       <fo:table-column column-number="2" column-width="60%"/>
>       <fo:table-column column-number="3" column-width="30%"/>
>       <fo:table-body>
>         <fo:table-row height="14pt">
>           <fo:table-cell text-align="left"
>                          relative-align="baseline"
>                          display-align="before"
>                          border="1.0pt solid red">
>             <fo:block>*
>             </fo:block>
>           </fo:table-cell>
> 

Don't use % in column-widths for FOP, it doesn't understand it.
Try this:

<fo:table-column column-number="1"   
                 column-width="proportional-column-width(1)"/>
<fo:table-column column-number="2" 
                 column-width="proportional-column-width(6)"/>
<fo:table-column column-number="3" 
                 column-width="proportional-column-width(3)"/>


 
Martin Perina




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