docbook message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: RE: [docbook] Titlepage in PDF urgent please help
- From: Mita Majumdar <mita.majumdar@ideafarms.com>
- To: "Miller, Ray (Centech)" <Ray.Miller@va.gov>
- Date: Tue, 10 Jan 2006 10:40:32 +0530
Hi Ray,
Actually I am using docbook-xsl-1.65.1 version and in this
you have a fo\Titlepage.templates.xml
first you have to make a copy of this file so that you can
customize according to your self. Suppose we name it My
titlepages.templates.xml
Now it this xml file you will find a template for processing the book
template like the following
<t:titlepage t:element="book"
t:wrapper="fo:block">
///This following is the template for the first page .
<t:titlepage-content
t:side="recto" >
<title
t:named-template="division.title"
param:node="ancestor-or-self::book[1]"
text-align="center"
font-size="&hsize5;"
space-before="&hsize5space;"
font-weight="bold"
font-family="{$title.fontset}"/>
<subtitle
text-align="center"
font-size="&hsize4;"
space-before="&hsize4space;"
font-family="{$title.fontset}"/>
<corpauthor
font-size="&hsize3;"
keep-with-next="always"
space-before="2in"/>
<authorgroup
space-before="2in"/>
<author
font-size="&hsize3;"
space-before="&hsize2space;"
keep-with-next="always"/>
</t:titlepage-content>
/// in case you have two sided out put you get extra pages
that are due to the call of the following templates. Now if
you dont want them then just comment the code that is written
in side the <t:titlepage> tag Now suppose you want to have a table
in your title page or some other component that is not listed in the
<t:titlepage> tag then just include the tag for that
component and you will get that component in the title page of
course if you wish you can also add processing info like fonts and
weight etc
<t:titlepage-content
t:side="verso">
<title
t:named-template="book.verso.title"
font-size="&hsize2;"
font-weight="bold"
font-family="{$title.fontset}"/>
<corpauthor/>
<authorgroup
t:named-template="verso.authorgroup"/>
<author/>
<othercredit/>
<pubdate
space-before="1em"/>
<copyright/>
<abstract/>
<legalnotice
font-size="8pt"/>
</t:titlepage-content>
////Same applies for these too. that is the separator page a
blank page after ending the title pages and starting the table of
content.
<t:titlepage-separator>
<fo:block
break-after="page"/>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
<fo:block
break-after="page"/>
</t:titlepage-before>
</t:titlepage>
After making these changes you have to process the
Mytitlepages.template.xml file using the xsltproc processor
and the template\titlepage.xsl file you will get an xsl file
suppose we name it mytitlepage.xsl
you have to include this file in your customization layer
<xsl:include href=""mytitlepage.xsl"/>
Haaaaaa! that is all you need to do. If you are confused then
I can explain in more detail. Belive me you need a lot of patience
to find out how to do things. I am new to this, some times its fun but
sometimes it really frustrating.
Regards
Mita
At 01:54 AM 1/10/2006, you wrote:
>> ... after a couple of
hours of brain storming I did figure out how to
turn off the extra pages. <<
How did you accomplish this ?
Ray
----------------------------------
Mita Majumdar
Developer - IT Solutions
mita.majumdar@ideafarms.com
Confidign Solutions P. Ltd.
IdeaFarms
B 25, Okhla Phase - 1,
New Delhi - 110 020.
INDIA
Tel : +91 11 2681 8255
Fax : +91 11 2681 5124
http://www.ideafarms.com
----------------------------------
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]