Hi,
Is your programlisting inside a formal object such as example or figure? If so, then the keep-together.within-page is being imposed there, overriding the one you might add for the programlisting inside it. If so, you could try adding the property to example.properties.

I would also suggest using "keep-together.within-column" rather than "keep-together" as the property name, which is a shorthand for keep-together.within-line, keep-together.within-column, and keep-together.within-page. The keep-together.within-line might cause some problems.

What version of the stylesheets are you using?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]


----- Original Message ----- From: "Hinrich Aue" <[EMAIL PROTECTED]>
To: "'Mads Ipsen'" <[EMAIL PROTECTED]>
Cc: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, July 10, 2007 1:39 AM
Subject: AW: [docbook-apps] font size of programlisting monospace text


Thanks,

that helped.
But it seems like I cannot change the keep-together.

I'm trying:

<xsl:attribute-set name="monospace.verbatim.properties"
use-attribute-sets="verbatim.properties">
<xsl:attribute name="font-size">8pt</xsl:attribute>
<xsl:attribute name="keep-together">auto</xsl:attribute>
</xsl:attribute-set>

But the programlisting is still overlapping and not breaking over several
pages.

I also tried to modify the line spacing, but fop gives an error.
(<xsl:attribute name="line-spacing">1pt</xsl:attribute> )

Is that the right attribute?

Thanks,

Hinrich
-----Ursprüngliche Nachricht-----
Von: Mads Ipsen [mailto:[EMAIL PROTECTED]
Gesendet: Friday, June 22, 2007 7:39 PM
An: Hinrich Aue
Cc: docbook-apps@lists.oasis-open.org
Betreff: Re: [docbook-apps] font size of programlisting monospace text

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

Hinrich Aue wrote:
Hi there,



I was trying to change the font size of programlisting text (formatting
objects).



I was trying:



<xsl:attribute-set name="monospace.verbatim.properties">

<xsl:attributes name="font-size">8pt</xsl:attributes>

</xsl:attribute-set>



But nothing changed.



What is the easiest was?



Thanks.

            Hinrich






You have a spelling error here:

<xsl:attributes name="font-size">8pt</xsl:attributes>


should be

<xsl:attribute name="font-size">8pt</xsl:attribute>


Best, Mads


- --
+---------------------------------+-------------------------+
| Mads Ipsen                      |                         |
| Product Support Specialist      | phone:     +45-35320630 |
| Atomistix A/S                   | fax:       +45-35320635 |
| Juliane Maries Vej 30           |                         |
| DK-2100 Copenhagen              | [EMAIL PROTECTED]       |
+---------------------------------+-------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGfAj7UiXEzEUa8LARAuq4AKDKuQykvUvTpb7Ky4WOA+dTaV1sBwCghSjc
BJKsTeXHLNoTs5wnGWar31I=
=Aj9A
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to