|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Programlisting without page break but with borderHello
I want to see all my "programlisting"-parts with a border. In advance every programlisting must be on the same page (in other words: ever listing must not be broken by PDF-Page breaks). I use apache sytlesheets to process fo to pdf. I could use an "informaltable"; but this is not the docbook-style: I don't like to use another tag just for a foramtting issue. Any experience? Can this be customized with a simple XSLT-Elment? Thanks in advance |
|
|
Re: Programlisting without page break but with borderHi,
I used: <xsl:param name="shade.verbatim" select="1" /> <xsl:attribute-set name="shade.verbatim.style"> <xsl:attribute name="padding-top">3pt</xsl:attribute> <xsl:attribute name="padding-bottom">3pt</xsl:attribute> <xsl:attribute name="background-color">#FFFFCC</xsl:attribute> </xsl:attribute-set> to set a light yellow background for program listings. But I work with docbook 1.71.1. No time to update. I think this should work also for border attributes. Stefan fips schrieb: > Hello > > I want to see all my "programlisting"-parts with a border. > In advance every programlisting must be on the same page (in other words: > ever listing must not be broken by PDF-Page breaks). > > I use apache sytlesheets to process fo to pdf. > > I could use an "informaltable"; but this is not the docbook-style: I don't > like to use another tag just for a foramtting issue. > > Any experience? Can this be customized with a simple XSLT-Elment? > > Thanks in advance --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Programlisting without page break but with borderHello
Thanks very much : It works great for the . I changed your code to: <xsl:param name="shade.verbatim" select="1" /> <xsl:attribute-set name="shade.verbatim.style"> <xsl:attribute name="padding">2pt</xsl:attribute> <xsl:attribute name="background-color">#C8d3FF</xsl:attribute> <xsl:attribute name="border-style">solid</xsl:attribute> <xsl:attribute name="border-color">#000266</xsl:attribute> <xsl:attribute name="page-break-inside">avoid</xsl:attribute> </xsl:attribute-set> You gave me the idea to search for css pages on the internet. the "page-break-inside" tag does the job for the second question. fips
|
| Free embeddable forum powered by Nabble | Forum Help |