summaryrefslogtreecommitdiff
path: root/dviware/beebe/utils/lptops.1l
blob: 4e8e508dcc84891a36ee61cd76ac5e07571b642f (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
.\".VA
.TH LPTOPS 1L "3 May 1988"
.ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2
.ds Ts T\s-2RAN\s+2S\s-2CRIPT\s+2
.SH NAME
lptops \-  convert an ascii text file into a printable
P\s-2OST\s+2S\s-2CRIPT\s+2 file
.SH SYNOPSIS
.B lptops
\fB[-a] [-b\fP\0\fI#\fP\fB] [-c\fP\0\fInum\fP\fB] [-f\fP\0\fIfont\fP\fB] [-h] [-i\fP \fI#\fP\fB] [-l\fP\0\fI#\fP\fB] [-m\fP\0\fInum\fP\fB] [-n\fP\0[\fItb\fP][\fIlcr\fP]\fInum\fP\fB] [-o\fP\0[\fI#\fP]\fB] [-p\fP\0\fI#\fP\fB] [-r\fP\0\fI#\fP\fB] [-s\fP\0\fI
num\fP\fB] [-t\fP\0\fI#\fP\fB] [-u]\fP < \fIinfile\fP > \fIoutfile\fP
.sp 0.5
.B lptops
\fB[-a] [-b\fP\0\fI#\fP\fB] [-c\fP\0\fInum\fP\fB] [-f\fP\0\fIfont\fP\fB] [-h] [-i\fP\0\fI#\fP\fB] [-l\fP\0\fI#\fP\fB] [-m\fP\0\fInum\fP\fB] [-n\fP\0[\fItb\fP][\fIlcr\fP]\fInum\fP\fB] [-o\fP\0[\fI#\fP]\fB] [-p\fP\0\fI#\fP\fB] [-r\fP\0\fI#\fP\fB] [-s\fP\0\f
Inum\fP\fB] [-t\fP\0\fI#\fP\fB] [-u]\fP \fIfile1\fP \fIfile2\fP ...  > \fIoutfile\fP
.SH DESCRIPTION
.I Lptops
converts normal text files into \*(Ps
for printing on the Apple LaserWriter, or any other
\*(Ps compatible printing  device.
It supports selection of a variety of fonts at arbitrary point sizes,
margin specification, portrait and landscape page orientation, automatic
page numbering, page outlining, and multi-column printing.  It can also
overstrike text (used by many text formatters for underlining).
.PP
This program is distributed with the <PLOT79> system.  The \*(Ts system
provides a program of similar intent, known as \fIenscript\fP(1L).
.SH OPTIONS
Letter case is ignored (except in the case of font codes).
.TP
.B \-a
Turn Scribe-like bold and italic requests (@b[...] and @i[...]) into
bold or italic text.
.TP
.B \-b #
Set bottom margin to # (default is 1.0in).
.TP
.BI \-c " num"
Print \fInum\fP copies of each page (default 1).
.TP
.BI \-f " font"
Set \*(Ps font.  The full name or an abbreviation for the
desired font type is given as \fIfont\fP.  Default is
Courier.  The following 13 fonts are available on all \*(Ps
printers.  The second column provides font abbreviations
used by this and earlier versions of \fIlptops\fP; the third
column contains \fIditroff\fP(1L) font abbreviations, and
the fourth column, Adobe \*(Ts font abbreviations.  Any of
these abbreviations may be used to specify \fIfont\fP.
.ta 0.25i 3.25i 4.25i 5.25i
.nf
	Courier	C	C	C
	Courier-Bold	CB	CB	CB
	Courier-BoldOblique	CBO	CD	CD
	Courier-Oblique	CO	CO	CO
	Helvetica	H	he	he
	Helvetica-Bold	HB	He	He
	Helvetica-BoldOblique	HBO	HE	HE
	Helvetica-Oblique	HO	hE	hE
	Symbol	S	S	S
	Times-Bold	TB	R	ti
	Times-BoldItalic	TBI	BI	TI
	Times-Italic	TI	I	tI
	Times-Roman	T	R	ti
.fi

The remaining fonts are available only on enhanced printers, such as the
Apple LaserWriter Plus.

.nf
	AvantGarde-Book	AGB	ag	ag
	AvantGarde-BookOblique	AGBO	aG	aG
	AvantGarde-Demi	AGD	Ag	Ag
	AvantGarde-DemiOblique	AGDO	AG	AG
	Bookman-Demi	BD	Bo	Bo
	Bookman-DemiItalic	BDI	BO	BO
	Bookman-Light	BL	bo	bo
	Bookman-LightItalic	BLI	bO	bO
	Helvetica-Narrow	HN	hn	hn
	Helvetica-Narrow-Bold	HNB	Hn	Hn
	Helvetica-Narrow-BoldOblique	HNBO	HN	HN
	Helvetica-Narrow-Oblique	HNO	hN	hN
	NewCenturySchlbk-Bold	NCSB	Nc	Nc
	NewCenturySchlbk-BoldItalic	NCSBI	NC	NC
	NewCenturySchlbk-Italic	NCSI	nC	nC
	NewCenturySchlbk-Roman	NCSR	nc	nc
	Palatino-Bold	PB	Pa	Pa
	Palatino-BoldItalic	PBI	PA	PA
	Palatino-Italic	PI	pA	pA
	Palatino-Roman	PR	pa	pa
.fi
.PP
Note that the \fIditroff\fP(1L) and \*(Ts abbreviations are identical
except for the Courier and Times fonts.  The \*(Ts abbreviations are
based on two-letter mnemonics, where upper-case in the first letter
indicates bold, and upper-case in the second letter indicates italic.
.PP
Only the Courier fonts are fixed-width fonts.  The others are
proportionally spaced and tabular material will not line up properly.
The Courier fonts have a width equal to 0.6 of their point size, so to
fill a line W inches wide with up to N characters, one must have point
size <= (W/(0.6 * N * 72)) = (W*120)/N pt.  Equivalently, with a point
size P pt, the output spacing is 120/P char/inch.
.TP
.B \-h
Use horizontal page orientation (landscape mode) instead of vertical
(portrait mode).
.TP
.BI \-i #
Set top margin to # for initial page (for use with letterhead)
If not specified, the value given for the top margin will be used
(see the \fB\-t\fP command).
.TP
.BI \-l #
Set left margin to # (default is 1.0in).
.TP
.BI \-m num
Produce multiple column output (\fInum\fP columns).  In multiple
column mode, formfeeds cause column breaks instead of page breaks.
Default value of \fInum\fP is 1.
.TP
.B \-n [\fItb\fP][\fIlcr\fP]\fInum\fP
Number output pages.  The margin in which the number is placed can be
selected by \fIt\fP (top) or \fIb\fP (bottom), and the position of the
number can be further specified by \fIl\fP (left), \fIc\fP (center),
or \fIr\fP (right).  The number is placed by default in the center of
the top margin, If \fInum\fP is given, start numbering with that
value, and otherwise with 1.  If an initial top margin value is given
with the \fB-i\fP option, numbering will be omitted on the first page
if it is at the top.  Pages are unnumbered if this option is not
specified.
.TP
.B \-o [\fI#\fP]
Outline pages (and columns) with a line which is # units wide.  A
narrow line of 0.4pt width is assumed if # is omitted; this particular
width is what TeX uses in typesetting.
.TP
.BI \-p #
Set font point size (default 10bp).  The baseline skip (spacing
between successive character baselines) is conventionally chosen to be
6/5 of this value, so that with 10bp type, we have 12bp between lines,
or 6 lines/inch, the same as standard printer output.
.TP
.BI \-r #
Set right margin to # (default is 1.0in).
.TP
.BI \-s num
Use manual feed tray (special handling) for the first \fInum\fP pages
of the output.  If \fIN\fP multiple copies are in effect (see option
\fB-c\fP), then \fIN*num\fP sheets must be fed manually.  If \fInum\fP
is omitted, then all pages are to be fed manually.  Default value of
\fInum\fP is 0.
.TP
.BI \-t #
Set top margin to # (default value is 1.0in).
.TP
.B \-u
Produce pages in unsorted (first to last) order instead of in sorted
(page reversed) order; some \*(Ps printers have
page handlers that stack the paper in this order.  The default is to
sort because this is appropriate for the most common
\*(Ps printer, the Apple LaserWriter.
.SH SPECIFICATION OF DIMENSIONAL VALUES
In the switch descriptions above, physical dimensions described as # may
be specified as a single number with an optional fractional part, and  a
required two-letter unit designator.  Possible forms are:
.LP
.ta 0.25i 1.0i 4.0i
.nf
#.##bp	big point (1in = 72bp)	[Courier: 120.000/Pbp cpi]
#.##cc	cicero (1cc = 12dd)	[Courier:   9.381/Pcc cpi]
#.##cm	centimeter	[Courier:   4.233/Pcm cpi]
#.##dd	didot point (1157dd = 1238pt)	[Courier: 112.569/Pdd cpi]
#.##in	inch	[Courier:   1.667/Pin cpi]
#.##mm	millimeter (10mm = 1cm)	[Courier:  42.333/Pmm cpi]
#.##pc	pica (1pc = 12pt)	[Courier:  10.038/Ppc cpi]
#.##pt	point (72.27pt = 1in)	[Courier: 120.450/Ppt cpi]
#.##sp	scaled point (65536sp = 1pt)	[Courier:   7.893/(Psp/1000000) cpi]
.fi
.LP
The bracketed values give the number of characters per inch (cpi) for  a
point size of P units with  the fixed-width Courier font.  For  example,
with point size  8bp, there are  120/8 = 15  characters per inch.   With
point size 1000000sp, there are 7.893 characters/inch.
.SH FILES
.TP 2.2i
/usr/local/plot79/tex/dvi/lptops.c
source code
.TP
/usr/local/plot79/lptops
executable
.TP
/usr/local/plot79/define
various environment definitions, an appropriate subset of which should
be placed in the user's \fI.cshrc\fP or \fI.profile\fP file
.SH "SEE ALSO"
document (1L), drawit(1L), grapht(1L), graph3t(1L), pfort(1L),
piechtt(1L), plot79-intro(1L), plot79(1L), pluto(1L), pretty(1L),
rdinfo(1L), sf3(1L), slides(1L), tekalw(1L), tkvecs(1L), tmacro(1L),
world(1L)
.SH AUTHOR
Nelson H.F. Beebe, Ph.D.
.br
Center for Scientific Computing
.br
South Physics Building
.br
University of Utah
.br
Salt Lake City, Utah 84112
.br
(Manual page by R. P. C. Rodgers, Computer Applications in Laboratory
Medicine Project, UCSF, San Francisco, CA 94143).