Re: [docbook-apps] Reducing the top-margin and botton margin in programlisting

From
Lars Vogel <>
Date
2012-06-25T22:12:54+00:00
ID
CAOeJ3wtSVs+oN63Ee+4fF+27sXzXEoGw_oXC=
Thread
Re: [docbook-apps] Reducing the top-margin and botton margin in programlisting
Hello Bob,

thanks a lot for the reply. I think this controls the outer border
(text to program code).

Is it also possible to control the "inner" border of the program test?

I'm sure I'm describing it incorrectly therefore a screenshot
attached. I would like to reduce the gray area at the beginning of my
program code. I highlighted the area in the screenshot.

Best regards, Lars

2012/6/18 Bob Stayton <>:
> That spacing is set with these attributes in the 'verbatim.properties'
> attribute-set, which is used by the 'monospace.verbatim.properties'
> attribute-set:
>
>  <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
>  <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
>  <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
>  <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
>  <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
>  <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
>
> If you want to override these just for programlisting, not literallayout,
> then set new attributes in 'monospace.verbatim.properties' in your
> customization layer.
>
> Bob Stayton
> Sagehill Enterprises
> 
>
>
> ----- Original Message ----- From: "Lars Vogel" <>
> To: "DocBook Apps" <>
> Sent: Friday, June 15, 2012 2:00 AM
> Subject: [docbook-apps] Reducing the top-margin and botton margin in
> programlisting
>
>
>
> Hello,
>
> I my PDF output I would like to reduce the top and botton margin which
> is added to a programlisting section. Attached a screenshot of the
> current output, the highlighted area is included in the output.
>
> Any suggestions how to do this?
>
> Best regards, Lars
> --
> Lars
> http://www.vogella.com - Eclipse, Android and Java Tutorials
> http://www.twitter.com/vogella - Lars on Twitter
>
>
>
> --------------------------------------------------------------------------------
>
>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 
>> For additional commands, e-mail: 
>
>



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