Next in thread → Next in month →

RE: [docbook-apps] screen keep-together

From
Mauritz Jeanson <>
Date
2008-08-16T16:07:47+00:00
ID
000101c8ffba$371da9f0$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] screen keep-together
> -----Original Message-----
> From: Samuel Wright 
> 
> Is there a keep-together for the screen element, similar to tables,
> figures, etc?


You can add keep-together.within-column="always" to the
monospace.verbatim.properties attribute-set. 

See http://www.sagehill.net/docbookxsl/ProgramListings.html and 
http://docbook.sourceforge.net/release/xsl/current/doc/fo/monospace.verbatim
.properties.html.

The attribute-set applies to literallayout, programlisting, screen, and
synopsis. Use xsl:choose if you want the customization to apply to screen
only:

<xsl:attribute-set name="monospace.verbatim.properties">
 <xsl:attribute name="keep-together.within-column">
   <xsl:choose>
     <xsl:when test="self::screen">always</xsl:when>
     <xsl:otherwise>auto</xsl:otherwise>
   </xsl:choose>
 </xsl:attribute>
</xsl:attribute-set>

/MJ
Next in thread → Next in month →