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] Scaling text size for programlisting in PDF output


Hi Dave,

sorry for the long delay in my answer, but I took me forever to find out how to set an attribute of attribute-set.

Thanks a lot works perfectly. 

For reference for others, here is the customization which I used to reduced the font-size of programmlistings in my PDF output:


<xsl:attribute-set name="monospace.verbatim.properties">
<xsl:attribute name="font-size">
    <xsl:value-of select="$body.font.master * 0.8" />
    <xsl:text>pt</xsl:text>
  </xsl:attribute>
</xsl:attribute-set>

Best regards, Lars


2011/12/7 David Cramer <david@thingbag.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Actually, here's an even more appropriate section in Bob's book:

http://www.sagehill.net/docbookxsl/FittingText.html#ReduceFontSize

David

On 12/07/2011 07:03 AM, David Cramer wrote:
> Hi Lars, You can use a relative value (like .9em) to adjust the
> font-size in the monospace.verbatim.properties attribute-set:
>
> http://www.sagehill.net/docbookxsl/ProgramListings.html#FormatListings
>
>
http://www.sagehill.net/docbookxsl/PrintOutput.html
>
> David
>
> On 12/07/2011 05:25 AM, Lars Vogel wrote:
>> Hi,
>
>> is it possible to scale the text size for all programlistings in
>> the PDF output? My PDF output looks "a.most" perfect, the
>> programming listing fit almost into the output.
>
>> I think if I would be able to set the text size to 90%
>> everything would fit. It would be great to do this with a
>> parameter as the HTML output looks perfect.
>
>> Best regards, Larrs
>
>> <programlisting language="xml"> <xi:include
>> xmlns:xi="http://www.w3.org/2001/XInclude" parse="text"
>> href="" /> </programlisting>
>
>> -- Lars http://www.vogella.de - Eclipse, Android and Java
>> Tutorials http://www.twitter.com/vogella - Lars on Twitter
>
>
> ---------------------------------------------------------------------
>
>
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-help@lists.oasis-open.org
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO33RgAAoJEMHeSXG7afUh2GEH/3xCDVd6wCmSRSsI2u0/Xj6o
9gOLVFiw++8VVxyYrA6dF/8sleACEeasUeLRjWgQpc4sR8/pn5GzbvMmRdQAPAv4
iwNUJjZc+14Ky/X++4UaNQP/kGLF2aF4vhZU5YB6sQspMeRuyUe7JyO9nJUV3c8a
099xOlaR5ea5Kxs6BbP9ObrM1WdJOUFbpvk+kuakWW/7XtzyNSPk5WeCy+avhRzh
/iB+I5HVLyF4zRJsNTz/jf7pQk52lnT4BdQRlaORLGx9RS+W/EtP5CbisylAWXwu
JiNgtS2gA8y4+tV+mLrGKZbJuXQjKhKGeZ6kGxtGbikw30QtEJiTZT1eD1AXcgI=
=5FE4
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




--
Lars
http://www.vogella.de - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter


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