summaryrefslogtreecommitdiff
path: root/dviware/crudetype/version3/vmshpgf.tex
blob: f3ddde68b02394127e3e1968ad8cab39679af397 (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
% ARTICLE for Newsletter. Here are what I think are the useful N-L macros



\font\big = cmbx10 at 14.4 truept
\font\bold  = cmb10  scaled \magstephalf
\font\rm  = cmr10  scaled \magstephalf
\font\commandfont = cmtt10 scaled \magstephalf
\def\titlefont{\big}
\rm

\def\title#1{\message{ Title: #1}\centerline {\titlefont#1}}

\def\space#1{{\hglue 0.0 em plus #1 fill}}
\def\author#1{\vskip\parskip\line{\space3 #1\space2}}
\def\sign#1{\author{#1}}

\hsize 170 true mm \vsize 257 true mm


\parindent = 0.0 em
\parskip = 8mm plus 35mm minus 4mm

\def\address{\parskip=0mm\obeylines}




% and here are my own macros


% These macros for verbatim scanning are copied from MANMAC.TEX. But we cant
% use the vertical bar for a temporary escape character as WEAVE catches it.
% So we will use ! instead and hope for the best
\chardef\other=12
\def\ttverbatim{\begingroup
  \catcode`\\=\other  \catcode`\{=\other  \catcode`\}=\other  \catcode`\$=\other
  \catcode`\&=\other  \catcode`\#=\other  \catcode`\%=\other  \catcode`\~=\other
  \catcode`\_=\other  \catcode`\^=\other
  \obeyspaces \obeylines \tt}

\def\begintt{$$\let\par=\endgraf \ttverbatim \parskip=0pt
  \catcode`\!=0 \rightskip-5pc \ttfinish}
{\catcode`\!=0 !catcode`!\=\other   % ! is temporary escape character
  !obeylines !obeyspaces    % end of line is active
  !gdef!ttfinish#1^^M#2\endtt{#1!vbox{#2}!endgroup$$}}

% \font\ninett=cmtt9
% that is the normal WEB practice, but in view of the definition of
% commandfont above, it seemed inadvisable...

\font\ninett = cmtt10 scaled \magstephalf

\let\mc=\ninett 

\def\C{{Crudetype}}
\def\D{{\mc DVI}}


\title{H-P Laserjet Plus output from \TeX.}

HPGF is the H-P version of the \C\ program described in my other note. Note
that this version only runs on the VAX, the Sun program is a version of
Beebe's printer driver (and I think it is better than mine).


To use HPGF, you
must first issue the following commands:\begintt
$USE TEX
$HOP  :== $SYS$USERDISK2:[UHAH208.CRUDE]HPGF
$HMP  :== PRINT/QUEUE=MATHSA4  \endtt
These commands only need to be given once per login, so you can insert them
into your {\tt LOGIN.COM} file. The first command tells HPGF  where to look for
the fonts. The second defines {\tt HOP} as what VMS calls a ``foreign''
command. Then you can run the program by this command: \begintt
$HOP (qualifiers) DVI_FILE \endtt
The {\tt DVI\_FILE} must be specified. If you do not specify a directory or an
extension \C\ will look in your current default directory and assume the
default extension {\tt .DVI}.  The qualifiers are all optional; they will
not work unless {\tt HOP} is defined as above.
Note this is different from any previous definition that might be
in your {\tt LOGIN.COM} file.
The permitted qualifiers are:



/c,/f,/m,/p,/q \quad  All exactly as in the Lineprinter version of Crudetype.
(See its document).
In fact the  /r  and /s  qualifiers are also there, but I advise you not to
use them.

/e, /o \quad  Print only even (respectively, odd) numbered pages. Page numbers are
determined by the {\tt count0} parameter in the {\tt BOP} commands of the {\tt
DVI} file. In principle this would allow double sided printing. In practice
this will probably be very difficult.

/l \quad Print in Landscape mode. Note that for this to work you will have to pass
suitable {\tt hsize} and  {\tt vsize} parameters to \TeX.

Eventually you should get a message ``Output on (filename)''. The default output
file name is   (your current default directory)({\tt DVI} file name)({\tt .HPL}).
Print it by \begintt
$HMP (filename).HPL
\endtt

\sign{R.M.Damerell, Mathematics Dept.}


\bye