[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] landscape appendix
Actually, you don't need to resort to PSMI if you are landscaping and
entire chapter, appendix, or any other element that generates its own
page-sequence. Each page sequence has a page-master that can be defined
with landscape dimensions if you choose. You can use the
'user.pagemasters' template to define a landscape page-master, and
'select.user.pagemaster' to select it. See this reference for more
information:
http://www.sagehill.net/docbookxsl/PageDesign.html
For example, if you define a page-sequence-master with
master-name="body-landscape", then you can use @role to select it:
<xsl:template name="select.user.pagemaster">
<xsl:param name="element"/>
<xsl:param name="pageclass"/>
<xsl:param name="default-pagemaster"/>
<xsl:choose>
<xsl:when test="@role = 'land'">
<xsl:value-of select="concat($default-pagemaster, '-landscape')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$default-pagemaster"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
The PSMI is needed when you want to landscape only part of a page-sequence,
typically for long tables. PSMI breaks one page-sequence into several in a
post-processing step.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Chris Chiasson" <chris@chiasson.name>
To: "DocBook Apps Mailing List" <docbook-apps@lists.oasis-open.org>
Sent: Saturday, January 20, 2007 5:10 AM
Subject: [docbook-apps] landscape appendix
>I see
>
> http://sourceware.org/ml/docbook-apps/2003-q4/msg00727.html
>
> plus
>
> http://www.cranesoftwrights.com/resources/psmi/index.htm
>
> give a method to landscape appendices. However, I am wondering if the
> main stylesheets have yet gained an ability to do this directly.
>
> Is there any other/easier way to create landscaped appendix pages in a
> mixed portrait & landscape document?
>
> --
> http://chris.chiasson.name/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]