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] Re: customizing content.header to make static text flow

You are in luck.  The latest version of the XSL stylesheets has a new
parameter 'header.column.widths' that lets you set the width of the columns
in the headers and footers.  You need to download version 1.65.0 of the XSL
stylesheets, and then read this reference doc in the distribution:


Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Guy Worthington" <guyw@multiline.com.au>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, March 11, 2004 6:34 PM
Subject: [docbook-apps] Re: customizing content.header to make static text

XSL:FO is far beyond comprehension, so please
dumb down your language as you would for any
other cut and paste baby.

I'm setting up a two sided book on 6in by 9in
paper with a narrow text area (26pc by 42pc).
Just for background information my page layout
is attached below:

<!-- specifies the finished page size -->
<xsl:param name="page.height">9in</xsl:param>
<xsl:param name="page.width">6in</xsl:param>
<xsl:param name="page.margin.inner">0.5in</xsl:param>
<xsl:param name="page.margin.outer">1in</xsl:param>

<xsl:param name="page.margin.top">0.5in</xsl:param>
<xsl:param name="region.before.extent">1pc</xsl:param>
<xsl:param name="body.margin.top">3pc</xsl:param>
<xsl:param name="region.after.extent">1pc</xsl:param>
<xsl:param name="page.margin.bottom">0.5in</xsl:param>
<xsl:param name="body.margin.bottom">3pc</xsl:param>

<xsl:param name="double-sided">1</xsl:param>

I'm using adobe goudy (go______.pfb) as the
header font with font-size/line-height of 10/12pt.
This isn't a condensed font (infact with a text
width of 26pc I expect 70 characters per line).
Now here's the rub: one of my section headings is
61 characters wide so I want the full line width
to typeset my header.

More specifically:

On an even page I'd like the chapter title to be
right aligned from the right and flowing from
right to left along the full header width.
I'd also like the page number at the leftmost
extremity of the header.

On an odd page I'd like the section number, then
a gap of 1pc, followed by the section title.  This
static text to be left aligned from the left and
flowing from left to right for the full text width.
I'd like the page number at the right most extremity
of the header.

Before being dismissed as a time wasting
good-for-nothing,  I would like to add they I've
used my one tool (google) to find a solution .

Google found an almost solution -- Example 11.11
at the following URL:

http://www.sagehill.net/docbookxsl/PrintHeaders .html

This customization constrains the text to left,
center and right compartments, whereas I'd like the
text to flow along the full header width.

My workflow uses saxon 6.51 for a transformer, and

Thankyou for reading.

To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit

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