Debian Codegraph @

texk/dvipsk/vmcms/README.VMCMS

raw
1 README.VMCMS: Remarks and history of the VM/CMS port of DVIPS.
2
3 Appropos DVIPS version 5.495, 5.55.
4
5 Written by Jim Hafner ([email protected]).
6 Last revised 10 Nov. 1992.
7
8 Version 5.55 checked and slightly modified on 2 May 1994.
9
10 NOTE: This port was not done by Tom Rokicki and he has no responsibility
11 for it. You can direct questions to the name and address above.
12
13 The current set of changes and enhancements to the VM/CMS port over
14 the previous release should be fairly complete. Lots of things have
15 changed and been enhanced.
16
17 Here are some of the features of the port and VM/CMS package:
18
19 1) We have completely revised the MKDVIPS EXEC so that it behaves
20 a bit more like the Unix 'make' facility. In particular, it
21 now allows for command line options to do any or all of the
22 package building for the DVIPS program, the AFM2TFM program,
23 the HEADERS files and to clean up the TEXT and LOAD MAP files
24 after completion. This has only been tested with C/370, not,
25 in particular with Waterloo C.
26
27 Furthermore, it also does a rudimentary time stamp check of
28 existing TEXT files against that for the corresponding C file
29 and ALL H files so that the compiler will not be called unless
30 it seems necessary.
31
32 Note that it checks ALL H files in all ACCESSED disks. This can
33 be fixed by simply editing the MKDVIPS EXEC. See the file itself
34 for more detailed information.
35
36 2) We have completed the port of AFM2TFM. If should now produce
37 identical files on VM/CMS as on Unix (it certainly does as far as
38 we could test it). There is a small front-end EXEC included that
39 sets up the necessary run-time environment. The current version is
40 extensively revised from the original port due to Alessio Guglielmi
41 and Marco Prevedelli of Pisa. The syntax for the EXEC is the same
42 as described in the DVIPS manual and the manpage is available as
43 AFM2TFM.DOC.
44
45 3) The DVIPS front-end EXEC has been extensively remodeled. It now
46 supports automatic font generation at the EXEC level (and the
47 MODULE level with the appropriate command line options).
48 More on this feature later.
49
50 The EXEC assumes that the first command line argument is the
51 dvifilename. The online documentation indicates this as well,
52 though DVIPS.DOC does not. This is NOT required by the MODULE,
53 just the EXEC, and only to make parsing the arguments easier.
54
55 The current version of this exec handles the LOADLIB and TXTLIB
56 save/reset/restore processes much better, so users with very
57 large libraries accessed will not have them lost along the way.
58
59 This version does not access any font disks since that is surely
60 site dependent. So, it assumes that the required fonts are
61 available. It also assumes that MF is somewhere to be found.
62
63 Local installers might want to modify this exec in the following
64 way. Parse the command line options for a -P PRINTER specification.
65 If found, then either use PRINTER to determine which font disk
66 to access OR read the corresponding CONFIG.PRINTER file and use
67 the 'M' option to get the Metafont mode for that PRINTER. Then
68 use that mfmode to access the right font disk.
69
70 4) AUTOMATIC FONT GENERATION:
71 This can be handled in two ways, at the installers or users
72 discretion.
73
74 First, we have included a MakeTeXP EXEC which we think is pretty
75 generic and should need little modifications. (See below for
76 a few additional comments.)
77
78 This MakeTeXP EXEC can be called in two different ways. The default
79 (based on DVIPS EXEC) is to have DVIPS run completely and create
80 a MISSFONT LOG file for any missing fonts. If there are any found,
81 then the DVIPS EXEC prompts the user, asking to attempt to generate
82 the fonts. If requested, then MakeTeXP EXEC is called by processing
83 each line of MISSFONT LOG. If this process completes, then the
84 user is again prompted. This time, the user can specify an exit
85 from the EXEC or to RE-invoke DVIPS (the module not the exec)
86 on the file. In this way, all the font generation can be handled
87 entirely OUTSIDE of the module, using no special system calls
88 (which have been known to cause memory clashes).
89
90 To make sure that DVIPS doesn't try to make the system call,
91 a '-M' flag is prepended to the options list. Consequently,
92 if the installer is sure that system calls will be safe, then
93 this option can be removed. Conversely, if a user wants to
94 risk it, putting '-M0' in the command line options will override
95 this default.
96
97 We mention explicitly that, contrary to the earlier VM/CMS port,
98 we have NOT disabled the system call within DVIPS itself.
99
100 5) MakeTeXP EXEC: This exec is similar to the Unix version in that
101 if no Metafont mode is specified on the command line, then it
102 tries to 'guess' a mode from the base dpi. This part of the
103 exec is very site dependent and will need to be modified for your
104 location.
105
106 You might want to modify this exec to read some configuration
107 file like CONFIG.MODES or DVIPS.MODES and use this to set the
108 mfmode from the base dpi.
109
110 Furthermore, we have written this to not invoke MF EXEC but to
111 call MF MODULE directly. We hope that this will be more generic
112 since we structure the parameters as MF MODULE wants them and not
113 as some fancy execs might.
114
115 We have set up a special default for passing arguments to the
116 module. Namely,
117 &plain modes; \mode=mfmode; ...
118 where 'modes' is the name of your local .MF file that contains
119 the mode definitions. Because of this, each output file of MF
120 will have a filename of MODES. Later in the exec, these output
121 files are renamed with the font input filename. If you have a
122 mode def file of a different name, you will need to change the
123 defining variable (localModeFile) accordingly. If you don't have
124 such a file, then you will probably have to modify this EXEC
125 somewhat to compensate.
126
127 All (we hope) site dependent parts of the code are tagged boldly
128 with 'SITE DEPENDENCIES'. Look at these locations for places that
129 might require modifications.
130
131 5) As before, the .dvipsrc file referred to in the manuals has the new
132 name DVIPS.PROFILE on VM/CMS.
133
134 6) Online documentation is available by invoking DVIPS with no
135 arguments or filename. You can also browse the file dvips.doc for
136 some additional comments (this was converted from the Unix manpage
137 via, on Unix, "nroff -man dvips.1 | col -b > vmcms/dvips.doc"
138 and so some comments may not be appropriate for VM/CMS, e.g.,
139 the order of the filename in the command line arguments.
140
141 8) Since there are no pipes on VM/CMS, the option -f is meaningless.
142 Also, the output is always written to a file, with the same filename
143 as the dvi file and filetype "PS". You can always override this with
144 the -o option.
145
146 9) Since there are no PATHs in VM/CMS, the H, P, S and T configuration
147 file options are meaningless. The DVIPS.EXEC file should make sure
148 that all the necessary disks are linked (we have all .tfm, .pro,
149 config. and other files on our main TeX disk, with the EXECs and
150 MODULES -- only our fonts (the pk files) are on separate disks.)
151
152
153 To compile the programs, run the program MKDVIPS.EXEC program. Be
154 sure you edit this file first to make sure that your C/370 programs
155 disks and libraries are all correctly link. See the comments at the
156 beginning of that file for more information. When complete, all the
157 necessary modules and files should be built, on your primary
158 write-accessed disk. You may need to move them to their destination
159 manually.
160
161
162 THANKS:
163 Some of this port was provided courtesy of Alessio Guglielmi
164 ([email protected]) and Marco Prevedelli
165 ([email protected]) with help from via Michel Goossens
166 ([email protected]) and Ronald Kappert ([email protected]).
167 Acknowledgements to Shashi Sathaye for fix to 5.55 and other
168 helpful hints for the original port of 5.495.