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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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="../examples/first/strings.xml" /> </programlisting>
> 
> -- Lars http://www.vogella.de - Eclipse, Android and Java
> Tutorials http://www.twitter.com/vogella - Lars on Twitter

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

iQEbBAEBAgAGBQJO32QPAAoJEMHeSXG7afUhEkEH+L/e53S0ppiMhTQuhd6MG1Fi
u2fIXMfnb+5cJB4QSoCbEVSXR4HLiiH5/r2mn4met6IVoc/Cbndpu35XUds3qiF0
EsJWiRz/NcpA4vCuJ9iMEAA0Fwh4LwSXZFTIy8jyxES5am1GEnfIsGTkxxqr186T
aModUaJ/rVzestGh/PPNquZ/70/b+yTM0pzuiEW0zdTgqsWicz3EocXAkoWgXkf+
HaE8sXfq0ca+nTbsxpGI/q8Xjvbd1gbkqoMr0xEjVz4Oas657fGucPK7aD/e9y+b
4pMfKiZyNBoddzNLnDvspReGiirOZJ3ARkmlZeRalVJw+3AS3R711Ro+lxSWVQ==
=jiAs
-----END PGP SIGNATURE-----


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