[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: constant width output
From: |
Ted Harding |
Subject: |
RE: constant width output |
Date: |
Wed, 22 Aug 2001 19:20:21 +0100 (BST) |
Hi Michael,
On 22-Aug-01 Michael Lindenmeyer wrote:
> I am trying to print constant width characters for
> the following file:
> ----
> .B
> .DS L
> August 2001
> Su Mo Tu We Th Fr Sa
> 1 2 3 4
> 5 6 7 8 9 10 11
> 12 13 14 15 16 17 18
> 19 20 21 22 23 24 25
> 26 27 28 29 30 31
> .DE
> ----
> since '.CW' is not recognized under groff,
> I saw a reference to .B being like .CW. Although
> groff recognizes .B, I still do not get constant
> width character output.
The default font family for PostScript output is Times and
'.B' simply switches to the Bold version of this. This is
a variable-width font.
The only fixed-width fonts normally available are the
Courier family. You could use
.ft CR
in place of '.B', but then don't forget to switch back
('.ft' on its own, with no font given, will do) afterwards.
Alternatively you can encapsulate the calendar text in
'\f[CR]...\fP':
.DS L
\f[CR]August 2001
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31\fP
.DE
(You will also get constant-width with Courier Bold: \f[CR],
Courier Italic: \f[CI] and Courier Bold Italic: \f[CBI]).
I hope this helps!
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Fax-to-email: +44 (0)870 167 1972
Date: 22-Aug-01 Time: 19:20:21
------------------------------ XFMail ------------------------------