RE: [docbook-apps] Monospaced digits

From
Dick Hamilton <>
Date
2008-10-21T14:57:57+00:00
ID
DDF73075A00B41B9A4B0CA90D15D3E46@MILES
Thread
RE: [docbook-apps] Monospaced digits
Title: Message

Lillian,

 

The only way I can think of to do this would be use a 
monospaced

font for the toc numbering. Character spacing is a property 
of

the font itself.

 

This section in Bob Stayton's XSL book describes how to 
customize

lines in the TOC:

 

http://www.sagehill.net/docbookxsl/PrintToc.html#PrintTocEntries

 

Looks to me like you could either set the font in 
toc.line.properties,

which would give you the same font for the entire toc, or 
modify

the toc.line template if you want a monospace font for the 
numbers,

but a different font for the rest of the toc.

 

Hope that helps.

 

Dick Hamilton

http://managingwriters.com

 

 

-----Original Message-----
From: Lillian 
Sullam [mailto:] 
Sent: Friday, October 17, 2008 
10:30 AM
To: 
Subject: 
[docbook-apps] Monospaced digits

  
Hi,

When dealing with numbers in tables is there a way to 
  set the type in DocBook so that the numbers are displayed "monospaced" instead 
  of "proportional spaced"? More specifically, the numerical label in the table 
  of contents.

Lillian