Re: [docbook-apps] Changing the printed area of a book title page

From
Bob Stayton <>
Date
2008-11-11T19:15:37+00:00
ID
009001c94431$c5c55520$6a00a8c0@pazu
Thread
Re: [docbook-apps] Changing the printed area of a book title page
Hi Diane,

The problem is the body region height in your 
current customization.  Although you set the page margins, you didn't 
change the body margins, which are by default 0.5in top and bottom.  See 
this diagram to see how both margins determine the area of the body 
region:

 

http://www.sagehill.net/docbookxsl/PrintOutput.html#TopBotMargins

 

This leaves your body-region with height 11 - 0.75 
- 0.5 - 0.5 - 0.5 = 8.75in which is the largest image you could fit. 

 

You could set the stylesheet params 
'body.margin.top' and 'body.margin.bottom' to 0pt, but that would apply to all 
page masters, which would eliminate the space for page headers and footers in 
your book.

 

So I think you need to create a custom titlepage 
page-master, creating a new first titlepage simple-page-master that sets the 
margin-bottom and margin-top to 0pt in the fo:region-body.  See this doc 
for more guidance:

 

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

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  Diane Larin 

  
To:  
  

  
Cc: Diane Larin 

  
Sent: Friday, November 07, 2008 3:19 
  PM

  
Subject: [docbook-apps] Changing the 
  printed area of a book title page

  

Hi,

I would like the first page of my 
  book to display an image that would cover as much of the page as 
  possible.

I customized fo/titlepage.templates.xml as 
  follows:
   
  <t:titlepage t:element="book" 
  t:wrapper="fo:block">
    <t:titlepage-content 
  t:side="recto">      
     
  <mediaobject/>
    
  </t:titlepage-content>
and I used the 
  following in the bookinfo section:
  
  <mediaobject>
    <imageobject 
  role="pdf">
    <imagedata  align="center" 
  format="SVG" fileref="cover-image.svg"/>
   
  </imageobject>  
  
  </mediaobject>

The parameters to specify the 
  page layout are:
 <xsl:param 
  name="page.height.portrait">11in</xsl:param>
 <xsl:param 
  name="page.width.portrait">8.5in</xsl:param>
 <xsl:param 
  name="page.margin.top">0.75in</xsl:param>
 <xsl:param 
  name="page.margin.bottom">0.50in</xsl:param>
 <xsl:param 
  name="page.margin.inner">1.00in</xsl:param>
 <xsl:param 
  name="page.margin.outer">1.00in</xsl:param>

When I try to generate the pdf file (using xep) I have 
  the following error message:
[error] no space for an element, 
  trying to recover
[error] no space for an element, trying to 
  recover

The size of my image is 6.4x9.7 inches, 
  which should fit. I tried to reduce the image, and the maximum size I can fit 
  is 5.56x8.375 inches. What am I missing?

Diane 
Larin
INRO