OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] landscape appendix


Yes, that is correct.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Ron Catterall" <ron@catterall.net>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: <docbook-apps@lists.oasis-open.org>; <chris@chiasson.name>
Sent: Thursday, February 01, 2007 12:45 PM
Subject: Re: [docbook-apps] landscape appendix


> Thanks Bob, that works perfectly for an <appendix> in a <book>.  It also 
> works for an <appendix> on its own.
>
> ***BUT*** it does not work for <appendix> in an <article>, or an 
> <appendix> in an <article> within a book.
>
> I presume that <article> must generate its own page-sequence which 
> includes any <appendix>.  Is this correct?
>
> For appendices in an article we seem to be stuck with a second pass PSMI.
>
> Ron
>
>>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
>>>
>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>>For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> -- 
> Ron Catterall, Phd, DSc        email: ron@catterall.net
> Prolongacion de Hidalgo 140 http://catterall.net/
> San Felipe del Agua tel: +52 951 520 1821
> Oaxaca      68020 Mexico fax: +1 530 348 8309
>
> 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]