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]

[docbook-apps] excessive space before/after screen and programlisting


  i'm using xsltproc and FOP to turn docbook into PDF, and i seem
to be getting excessive space both before and after my verbatim
environments like <screen> and <programlisting>.  here's my 
stylesheet fragment to mess with verbatim elements:

---------------------------------
<xsl:param name="shade.verbatim" select="1"/>

<xsl:attribute-set name="verbatim.properties">
 <xsl:attribute name="space-before.minimum">0.0em</xsl:attribute>
 <xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>
 <xsl:attribute name="space-before.maximum">0.1em</xsl:attribute>
 <xsl:attribute name="space-after.minimum">0.0em</xsl:attribute>
 <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
 <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>

 <xsl:attribute name="line-height">160%</xsl:attribute>
</xsl:attribute-set>
---------------------------------

  now, the shading works, and adjusting the line height also
works, but i still seem to get excessive space both before the
entire <screen> or <programlisting>.  i added the shading to 
verify that that space wasn't part of, say, the paragraph above
or below.  so i shaded and, sure enough, at the start and
end of each verbatim, there's enough space to almost put in
another entire line of text.

  note that i cranked down the space-{before,after} to almost
nothing, but that doesn't seem to help.  

  am i not adjusting the correct attributes here?

rday


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


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