[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] titelpage, title spec file, subtitle
Hi Bob! First: I am using article as rootelement, maybe this is the reason why it does not work! Second: I still not sure where I must put the entities of the titlepage and the titlepage stylesheet itself. <!--I tried this for subtitle:--> <xsl:attribute-set name="component.properties"> <xsl:attribute name="font-size">12pt</xsl:attribute> <xsl:attribute name="font-family">Share-Regular</xsl:attribute> <xsl:attribute name="hyphenate">false</xsl:attribute> <xsl:attribute name="keep-with-next.within-column">auto</xsl:attribute> <xsl:attribute name="space-before.minimum">5em</xsl:attribute> <xsl:attribute name="space-before.optimum">5em</xsl:attribute> <xsl:attribute name="space-before.maximum">5em</xsl:attribute> <xsl:attribute name="space-after.minimum">5em</xsl:attribute> <xsl:attribute name="space-after.optimum">5em</xsl:attribute> <xsl:attribute name="space-after.maximum">5em</xsl:attribute> </xsl:attribute-set> <!--I tried this for the title of the article--> <xsl:attribute-set name="article.appendix.title.properties"> <xsl:attribute name="font-size">16pt</xsl:attribute> <xsl:attribute name="font-family">Share-Regular</xsl:attribute> <xsl:attribute name="hyphenate">false</xsl:attribute> <xsl:attribute name="keep-with-next.within-column">auto</xsl:attribute> <xsl:attribute name="space-before.minimum">5em</xsl:attribute> <xsl:attribute name="space-before.optimum">5em</xsl:attribute> <xsl:attribute name="space-before.maximum">5em</xsl:attribute> <xsl:attribute name="space-after.minimum">3em</xsl:attribute> <xsl:attribute name="space-after.optimum">2em</xsl:attribute> <xsl:attribute name="space-after.maximum">3em</xsl:attribute> <xsl:attribute name="color">#AE002F</xsl:attribute> </xsl:attribute-set> <!--this for my titlepage--> <!DOCTYPE t:templates [ <!ENTITY hsize0 "10pt"> <!ENTITY hsize1 "12pt"> <!ENTITY hsize2 "14.4pt"> <!ENTITY hsize3 "17.28pt"> <!ENTITY hsize4 "20.736pt"> <!ENTITY hsize5 "24.8832pt"> <!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 --> <!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 --> <!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 --> <!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 --> <!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 --> <!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 --> ]> <t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0" xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- ******************************************************************** $Id: titlepage.templates.xml 8341 2009-03-16 03:00:56Z bobstayton $ ******************************************************************** This file is part of the DocBook XSL Stylesheet distribution. See ../README or http://docbook.sf.net/ for copyright copyright and other information. ******************************************************************** --> <!-- ==================================================================== --> <t:titlepage t:element="article" t:wrapper="fo:block" font-family="{$title.fontset}"> <t:titlepage-content t:side="recto" start-indent="0pt" text-align="center"> <title t:named-template="component.title" param:node="ancestor-or-self::article[1]" keep-with-next.within-column="always" font-size="&hsize5;" font-weight="bold"/> <subtitle t:named-template="component.title" param:node="ancestor-or-self::article[1]" font-weight="bold" space-before="2em" font-size="&hsize2;"/> <corpauthor space-before="0.5em" font-size="&hsize2;"/> <authorgroup space-before="0.5em" font-size="&hsize2;"/> <author space-before="0.5em" font-size="&hsize2;"/> <!-- and this is the xml for it--> <?xml version='1.0' encoding='UTF-8'?> <article xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:svg="http://www.w3.org/2000/svg" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns/docbook" version="5.0" xml:lang="de"> <title>CAS</title> <subtitle>Dokumentation für Administratoren</subtitle> <info/> <xi:include href="Sections/UeberDiesesDokument_01.xml" encoding="UTF-8"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Sections/VorwortAdmin.xml" encoding="UTF-8"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Sections/RekursivesKopierenLoeschen_01.xml" encoding="UTF-8"/> </article> Best regards, Lwam Am 07.12.2010 18:42, schrieb Bob Stayton: > Hi Lwam, > If you use the titlepage spec mechanism, you will get a title page that > has no footer and page number, as it uses the page master named > 'titlepage' in FO output. That mechanism is suitable for creating a > simple title page. I'm not clear why it didn't work for you. Perhaps if > you described what you tried, we could get it to work for you. > > Or you could customize the titlepage layout yourself, as described here: > > http://www.sagehill.net/docbookxsl/TitlePagePrint.html#TitlepageTableLayout > > When you customize the template named "book.titlepage.recto" for FO > output, the stylesheet will still create a page-sequence using the > 'titlepage' page-master, and then insert the content you provide in that > template. That example uses an fo:table for layout, but you can just use > fo:blocks as well. > > Bob Stayton > Sagehill Enterprises > bobs@sagehill.net > > > ----- Original Message ----- From: "Lwam Berhane" <berhane@punkt.de> > To: <docbook-apps@lists.oasis-open.org> > Sent: Tuesday, December 07, 2010 1:54 AM > Subject: [docbook-apps] titelpage, title spec file, subtitle > > > Hey everybody! > > I tried to get the titlepage customazing for both the html and fo > output, but i > don't.(http://www.sagehill.net/docbookxsl/HTMLTitlePage.html#TitlePageElems) > > > Can I overwrite the default titlepage? Or should I create an external > titlepage.xml and include this titlepage.xml into my entire document? > > On top of that I need to customize the subtitle in my document! > > My aim: To get a simple titlepage with title, subtitle and a logo below > them.A titlepage without footer and pagenumber! > > > Best regards, Lwam -- Gruß Lwam Berhane punkt.de GmbH TYPO3-Internet-Dienstleistungen-Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de/ AG Mannheim 108285 Gf: Jürgen Egeling
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]