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: [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:

doc/fo/header.column.widths.html

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- 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
flow



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:

8<------------------------------------------8<
<!-- 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>
8<------------------------------------------8<

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
fop-0.20.5

Thankyou for reading.


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




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


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