This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [docbook-apps] How to vary point size in an Appendix


Hi Bob,

Thanks very much for the suggestion.  I think this may do
what we need, since the main objective is to cut page count.
Therefore, unless the result looks out of whack, we may be
able to get away with just reducing the body text.

We're going to use your suggestion, run some samples, and
see if that does the trick.

Thanks very much for your quick response.

Dick

> -----Original Message-----
> From: Bob Stayton [mailto:bobs@sagehill.net] 
> Sent: Tuesday, November 09, 2004 3:55 PM
> To: Hamilton, Dick L; docbook-apps@lists.oasis-open.org
> Cc: Rowland, Larry
> Subject: Re: [docbook-apps] How to vary point size in an Appendix
> 
> 
> Hi Dick,
> When you say reduce the base point size, do you mean just the 
> size of the
> body text, or do you mean all text whose size is based on the 
> body text
> size, or do you mean all text in the appendix including 
> section titles,
> running heads, etc.?  I ask that because footnotes are taken as 0.8 *
> $body.font.master, formal.object.headings are 1.2 * 
> $body.font.master, etc.
> Section title sizes are determined by the 
> titlepage.templates.xml spec file.
> 
> If you just want to change the body text font size, then you 
> can do that
> pretty easily by a small customization of the 
> match="appendix" template from
> fo/component.xsl:
> 
> Replace:
>          <xsl:apply-templates/>
> with:
>      <fo:wrapper font-size="90%">
>       </xsl:apply-templates/>
>     </fo:wrapper>
> 
> This will set the font-size for the appendix text to 90% of what is
> specified in $root.properties, but only for text that does not have a
> font-size property. Footnotes won't change, because they still have a
> font-size property that is still computed as 0.8 * 
> $body.font.master, which
> does not change.  It also won't affect titles, running 
> headers/footers, etc.
> So if you only want to change the body font size, that will work.
> 
> But if you want to scale everything down, it is harder.
> 
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
> 
> 
> ----- Original Message ----- 
> From: "Hamilton, Dick L" <dick.hamilton@hp.com>
> To: <docbook-apps@lists.oasis-open.org>
> Cc: "Rowland, Larry" <larry.rowland@hp.com>
> Sent: Tuesday, November 09, 2004 1:57 PM
> Subject: [docbook-apps] How to vary point size in an Appendix
> 
> 
> We have a situation where we would like to have
> a different base point size for the text in an
> appendix than in the chapters of a pdf document.
> 
> Using the docbook stylesheets, we can easily change
> the base point size for the entire document, but we
> are having trouble figuring out the best way to do
> it for the appendices only without making some pretty
> major changes to the stylesheets, which we'd like to
> avoid if at all possible.
> 
> Has anyone done this or have any suggestions on
> the cleanest way to handle this situation in the
> docbook stylesheets?  BTW, it would be fine if we
> could define this in relative terms (e.g., the point
> size of the appendix is the base +/- X).
> 
> Any suggestions would be greatly appreciated.
> 
> Thanks,
> Dick Hamilton
> dick.hamilton@hp.com
> 
> 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]