List Info

Thread: Re: font size of programlisting monospace text




Re: font size of programlisting monospace text
user name
2007-07-11 11:23:08
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
bobssagehill.net


----- Original Message ----- 
From: "Hinrich Aue" <hinrich.auelci-software.com>
To: "'Mads Ipsen'" <mpiatomistix.com>
Cc: <docbook-appslists.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:mpiatomistix.com]
Gesendet: Friday, June 22, 2007 7:39 PM
An: Hinrich Aue
Cc: docbook-appslists.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              | mpiatomistix.com       |
+---------------------------------+-------------------------
+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFGfAj7UiXEzEUa8LARAuq4AKDKuQykvUvTpb7Ky4WOA+dTaV1sBwCg
hSjc
BJKsTeXHLNoTs5wnGWar31I=
=Aj9A
-----END PGP SIGNATURE-----

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org





------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


AW: font size of programlisting monospace text
user name
2007-07-12 03:41:51
Thanks, modified keep-together.within-column to
example.properties. works.

But can I set the line spacing of the source code?
I changed the font size to 8pt, but the lines of the text
seem to have the
same distance -> no space gained.

Is there an attribute like line-spacing?

Hinrich

-----Ursprüngliche Nachricht-----
Von: Bob Stayton [mailto:bobssagehill.net] 
Gesendet: Wednesday, July 11, 2007 6:23 PM
An: Hinrich Aue; 'Mads Ipsen'
Cc: docbook-appslists.oasis-open.org
Betreff: Re: [docbook-apps] font size of programlisting
monospace text

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
bobssagehill.net


----- Original Message ----- 
From: "Hinrich Aue" <hinrich.auelci-software.com>
To: "'Mads Ipsen'" <mpiatomistix.com>
Cc: <docbook-appslists.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:mpiatomistix.com]
Gesendet: Friday, June 22, 2007 7:39 PM
An: Hinrich Aue
Cc: docbook-appslists.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              | mpiatomistix.com       |
+---------------------------------+-------------------------
+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFGfAj7UiXEzEUa8LARAuq4AKDKuQykvUvTpb7Ky4WOA+dTaV1sBwCg
hSjc
BJKsTeXHLNoTs5wnGWar31I=
=Aj9A
-----END PGP SIGNATURE-----

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org





------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


RE: font size of programlisting monospace text
user name
2007-07-12 08:06:41
> -----Original Message-----
> From: Hinrich Aue 

> But can I set the line spacing of the source code?
> I changed the font size to 8pt, but the lines of the
text 
> seem to have the
> same distance -> no space gained.
> 
> Is there an attribute like line-spacing?


http://www.w3.org/TR/2001/REC-xsl-20011015/sli
ce7.html#line-height

/MJ



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


RE: font size of programlisting monospace text
user name
2007-07-12 10:44:30
> -----Original Message-----
> From: Mauritz Jeanson 
> > 
> > Is there an attribute like line-spacing?
> 
> 
> http://www.w3.org/TR/2001/REC-xsl-20011015/sli
ce7.html#line-height


There is even a DocBook parameter for this property:

http://docbook.sourceforge.net/release
/xsl/current/doc/fo/line-height.html

/MJ



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )