Debian Codegraph @

texmf-dist/doc/otherformats/texsis/base/TXSinstl.doc

raw
1 % file: TXSinstl.doc - Installation Instructions - TeXsis version 2.18
2 %% @(#) $Id: TXSinstl.doc,v 18.2 2000/05/17 00:19:46 myers Exp $
3 %======================================================================*
4 % Copyright (c) 1990, 1992, 1995, 1997 by Eric Myers and Frank Paige.
5 % This file is a part of TeXsis. Distribution and/or modifications
6 % are allowed under the terms of the LaTeX Project Public License (LPPL).
7 % See the file COPYING or ftp://ftp.texsis.org/texsis/LPPL
8 %======================================================================*
9 \ifx\undefined\meta \texsis\input TXSdocM.doc\input Manual.aux\draft\fi
10
11
12 \appendix{A}{Customization and Installation of \TeXsis \label{install}}
13
14 \centerline{(\TeX sis version \fmtversion, as of \revdate)}
15
16 \noindent
17 This appendix contains information about how to install \TeXsis\ on
18 several types of computer systems, and how to customize \TeXsis\ for a
19 particular installation. The discussion below on ``Local
20 Modifications'' may be of interest to any user, but the rest of this
21 Appendix is probably only of interest to someone who is responsible for
22 installing or maintaining \TeXsis.
23
24
25 \subsection{Customization}
26
27 There are three different mechanisms for making modifications to
28 the basic \TeXsis\ macro package. It is better to use one of these
29 mechanisms rather than modifying the original code.
30
31 \subsubsection{Local Modifications}
32
33 \TeXsis\ will read the file {\tt TXSmods.tex}, if it exists, from
34 the current directory or search path every time you run \TeXsis. This
35 lets you make your own \idx{custom modifications} or additions to
36 \TeXsis. For example, say you have a directory specifically for a
37 particular project you are working on and you are writing several
38 different papers or other documents related to this project. You could
39 add a file called {\tt TXSmods.tex} to this directory to contain extra
40 macro definitions that are used in all of these documents, and these
41 will be loaded automatically whenever you run \TeXsis\ in this
42 directory. If you run \TeXsis\ from another directory these macros will
43 not be loaded.
44
45 \subsubsection{Site Modifications}
46
47 If a file called {\tt TXSsite.tex} exits in the current directory
48 at the time the \TeXsis\ format file is created (see below) then it is
49 automatically read in at this time. The purpose of this file is to
50 allow you to add definitions and macros that are local to your computer
51 installation. For example, in this file you would define the control
52 word \cs{ORGANIZATION} to give the name of your organization or
53 institution. \cs{ORGANIZATION} is used at the top of memos and at the
54 top of the title page of a \cs{preprint}. You might also put a
55 customized \cs{letterhead} macro in this file, and you may well want to
56 change the definition of \CS{LandscapeSpecial}, which controls how your
57 laser printer is put into landscape mode. Note that the file {\tt
58 TXSsite.tex} is only read {\sl once}, when the \TeXsis\ format file is
59 created, not every time \TeXsis\ is run.
60 A prototype site file, called |TXSsite.000|, is included in the standard
61 distribution of \TeXsis.
62
63
64 \subsubsection{Patches}
65
66 \TeXsis\ will also automatically read in a file called
67 {\tt TXSpatch.tex} from the standard input path, if it exists,
68 every time \TeXsis\ is run.
69 This file should contain additions or corrections (``patches'') to
70 \TeXsis. This patch file lets you correct minor problems or make minor
71 changes to \TeXsis\ without having to rebuild the format file.
72
73 Whenever we find a problem with \TeXsis\ we try to correct it as soon
74 as possible.
75 To make the correction available to users before the next version of
76 \TeXsis\ is released we issue patch files containing the corrections.
77 The most current patch file should always be available at
78 \URL{ftp://ftp.texsis.org/texsis}, or in {\tt
79 macros/texsis} on any CTAN server.
80
81
82
83 %==================================================*
84
85 \subsection{Installation of \TeXsis}
86
87 To use \TeXsis\ or any large macro package effectively you should run
88 the |initex| program to create a pre-compiled format. The general method
89 of doing this is machine independent, but the specific commands depend
90 on the operating system on your computer. This appendix gives the
91 appropriate commands for running |initex| and installing \TeXsis\ on a
92 computer running UNIX, a VAX or Alpha running VMS, and for an IBM PC running
93 PC\TeX\ under \idx{MS-DOS}. We assume that you are familiar with the
94 operating system and that \TeX\ and the Plain format have already been
95 installed.
96 Notes on how to install \TeXsis\ on other kinds of machines (such as
97 Atari or Apple computers, or on Linux) are available on the \TeXsis\
98 ftp server (\URL{ftp://ftp.texsis.org/texsis}).
99
100 VMS users should note that \TeXsis\ is also available with the latest
101 release of DECUS \TeX, and much of the installation work has already
102 been done or can be done almost automatically. You may want to get this
103 version from CTAN rather than the ``raw'' distribution from the TeXsis
104 ftp site.
105 If you are installing from the DECUS distribution you should read the
106 file |INSTALL.VMS| with that distribution.
107
108
109 \subsubsection{Quick Install for Unix and \TeX~3.x}
110
111 The current version for \TeX\ as of 1997 is 3.14159. If you have
112 anything earlier than version 3.x then it is strongly recommended that
113 you first upgrade your \TeX\ installation. Assuming that you have a
114 current \TeX\ installation on a Unix computer, you can build and
115 install \TeXsis\ by simply doing the following:
116
117
118 \EnvRightskip=\parindent
119 \enumerate\enumpoints
120 \itm\llap{\square\qquad}%
121 Edit the file |Makefile| and change parameters and paths as
122 appropriate, following the directions given in the comments.
123 The TEXDIR variable should point to the top-level \TeX\ directory
124 on your system. The default directories under TEXDIR are those
125 recommended by the TeX Directory Structure (TDS) working group of the
126 \TeX\ Users Group.
127
128 \itm\llap{\square\qquad}%
129 (Optional) Copy the file |TXSsite.000| to |TXSsite.tex| and edit
130 this file to contain appropriate site dependent information, such as
131 definitions for the name of your |\ORGANIZATION|, or your
132 \cs{letterhead}, or change \cs{LandscapeSpecial}.
133 If you already have a |TXSsite.tex| file then copy it to the current
134 directory so that it will be included when building the format file.
135
136 \itm\llap{\square\qquad}%
137 Give the command `|make|' to build the format file and the manual.
138
139 \itm\llap{\square\qquad}%
140 Give the command `|make install|' to install the files on the system.
141 \endenumerate
142
143
144 \pagecheck{0.20\vsize}
145 \subsubsection{Detailed Installation}
146
147 To install \TeXsis\ follow the steps below or their equivalents for
148 your computer and operating system. If you are installing a system-wide
149 version of \TeXsis\ then you may want to review the appropriate
150 documentation on how \TeX\ itself is installed on your system.
151 \enumpoints
152 \enumerate
153 \itm\llap{\square\qquad}%
154 Create a separate directory to hold the \TeXsis\ files. This is not
155 strictly necessary, but it is strongly recommended, since there are
156 more than 70~files for the source code and
157 documentation. On a Unix machine we recommend using
158 |/usr/local/share/texmf/tex/texsis| or |/usr/local/lib/tex/texsis|, depending on
159 where your other \TeX\ files are kept. For a VMS system,
160 you should use a subdirectory of the main \TeX\ directory, whatever that
161 happens to be. On an IBM PC
162 it is best to use a top-level directory |C:\TEXSIS| on your hard disk,
163 rather than a subdirectory of |C:\PCTEX|, to simplify backing up your
164 files.
165
166 \itm\llap{\square\qquad}%
167 Copy all of the \TeXsis\ files into this directory. The \TeXsis\ source
168 files all have names of the form |TXS|$xxx$|.tex|, and
169 most of the documentation
170 files have names |TXS|$xxx$|.doc|. \TeXsis\ style files end with
171 the extension |.txs|. There will also be several other files in your
172 distribution of \TeXsis, such as |texsis.tex| and |Manual.tex|.
173 A complete list of the files can be found in a file called |MANIFEST|.
174
175
176 \itm\llap{\square\qquad}%
177 Make any necessary changes in the source code. You will probably want to
178 copy the file |TXSsite.000| to |TXSsite.tex| and edit this file,
179 changing the definition of \cs{ORGANIZATION}, \cs{LandscapeSpecial},
180 and the letterhead macros.
181
182 On VMS systems you may (or may not) want to define |\TeXsisLib| to be
183 the \TeXsis\ directory and |\TXSpatches| to be the patch file in that
184 directory.
185
186 If you have problems with missing fonts, look at the documentation
187 in the file |TXSfonts.tex|.
188
189
190 \itm\llap{\square\qquad}%
191 Create the format file |texsis.fmt| by running |initex|. \index{initex}
192 On a Unix machine the command is:
193 \example
194 |% initex \&plain texsis '\dump'|
195 \endexample
196 You must remember the ``|\|'' to escape the ``|&|.''
197
198 On a VMS system replace the |initex| command with |TEX/INIT|. You must
199 also tell \TeX\ where to find the input files for both \TeXsis\ and
200 Plain \TeX. The commands are:
201 \example\obeylines\advance\rightskip by -1cm
202 |$ DEFINE/USER TEXIN | \meta{texsis} \meta{plain}
203 |$ TEX/INIT/NOFORMAT/TEXINPUTS=TEXIN: "&plain texsis \dump"|
204 \endexample
205 where \meta{texsis} is the specification for the device, directory, and
206 subdirectories of \TeXsis, and \meta{plain} is the specifiation for
207 the standard files like |PLAIN.TEX|.
208
209 For an IBM PC with PC\TeX\ give the command,
210 \example
211 |TEX TEXSIS /I|
212 \endexample
213 and reply to the |*| prompt with ``\cs{dump}.'' (In some versions of
214 PC\TeX\ the |TEX| command is replaced with |TEX386| or |TEX386b|. Check
215 your manual to be sure.) \TeXsis\ will also work with |emtex| or any
216 other version of ``big'' \TeX\ for the PC, but you will have to check
217 the documentation for that particular implementation of \TeX\ for
218 specific instructions for creating a preloaded format.
219
220 In any case |initex| will load the Plain \TeX\ format and then the
221 various pieces of \TeXsis, displaying a message for each piece.
222 Finally it will spew out a list of fonts used and other information.
223 This should contain near the end the statement ``No pages of output
224 produced.'' (If it does not, something may be wrong with your distribution,
225 although it is probably a minor problem. Check your editing of the
226 |TXSsite.tex| file.) The preloaded format will be
227 written to the file |texsis.fmt|.
228
229 \itm\llap{\square\qquad}%
230 Copy or move various files to where they need to be:
231 \enumerate
232 \itm
233 Copy the format file to the place where your version of \TeX\ looks for
234 pre-loaded formats. On Unix systems this is usually
235 \example
236 |/usr/local/share/texmf/tex/formats|.
237 \endexample
238 or some variation of this.
239 For VMS machines make sure the file is in the directory named by
240 |$TEX_FORMATS|.
241 With PC-\TeX\ the file goes into |\PCTEX\TEXFMTS|.
242
243 \itm
244 Copy the \TeXsis\ style files (which end with the extension |.txs|) to
245 the place your version of \TeX\ usually looks for input. Under Unix
246 this should be
247 \example\obeylines
248 |/usr/local/lib/tex/inputs|
249 (or sometimes |/usr/local/lib/tex/macros|).
250 \endexample
251 For VMS machines make sure these files are in the directory included
252 in the path defined by the |TEX_INPUTS| logical. For PC-\TeX\ the
253 proper place is |\PCTEX\TEXINPUT|.
254
255 \itm
256 If you have any run-time patches to add to \TeXsis\ copy the
257 file |TXSpatch.tex| to the same \TeX\ inputs directory.
258 If there is a |TXSpatch.tex| from a previous release of \TeXsis\ you
259 should be sure to remove the old file if it is not being replaced.
260
261 \endenumerate
262
263 \itm\llap{\square\qquad}%
264 Having created the format file, you need to make a command |texsis| to
265 run \TeX\ using it. The way to do this is very dependent on the
266 operating system.
267
268 \enumerate
269
270 \itm
271 On a Unix system running \TeX~3.0 or higher you need only to make a link
272 to the executable |virtex|\index{virtex} with the same name as the
273 format you want to load. |Virtex| probably lives in |/usr/local/bin| or
274 some similar place. The command to make the link is something like:
275 \example
276 |ln /usr/local/bin/virtex /usr/local/bin/texsis|
277 \endexample
278
279 For \TeX\ versions 2.9x you can build an ``undumped'' version of
280 \TeXsis. You will have to see the \TeX\ distribution notes for a
281 description of |undump|. \index{undump} However, this is now a very old
282 version of \TeX\ (as of this writing \TeX\ is up to version~3.1415), so
283 you should seriously consider upgrading to a newer version of \TeX.
284
285
286 If you are going to create a ``private'' version of \TeXsis\ rather than
287 installing it for the whole system then you need to add your \TeXsis\
288 directory to the environment variables |TEXFORMATS| and |TEXINPUTS| and
289 define the command |texsis| as follows. For the C-shell, put in your
290 |.cshrc| file:
291 \example\obeylines
292 |alias texsis virtex \\\&texsis|
293 |setenv TEXSIS_LIB $HOME/texsis/|
294 |setenv TEXFORMATS ".:$TEXSIS_LIB:$TEXFORMATS"|
295 |setenv TEXINPUTS ".:$TEXSIS_LIB:$TEXINPUTS"|
296 \endexample
297 (This assumes that |TEXFORMATS| and |TEXINPUTS| are already properly
298 defined. If not, insert the proper directories.)
299
300 \itm
301 Under VMS, place in your |login.com| file the commands
302 \example\obeylines
303 |$ DEFINE TEXSIS_LIB| \meta{disk}|:[|\meta{directory}|]|
304 |$ TEXSIS :== $TEX$:TEX.EXE &TEXSIS_LIB:TEXSIS|
305 \endexample
306 where |TEX$| is the logical name for the main \TeX\ directory. You can
307 also put these commands in a \TeX\ initialization |.COM| file.
308
309
310
311 \itm
312 For PC\TeX\index{PCTeX@{PC\TeX}} you should find in the distribution a file
313 |TEXSIS.BAT|. If you don't, you can create it. The file should contain:
314 \example\obeylines
315 |ECHO OFF|
316 |\PCTEX\TEX &TEXSIS %1 /F 25000|
317 \endexample
318 (Replace the |TEX| command with |TEX386| or |TEX386b| if appropriate for
319 your machine. For PC-\TeX\ versions 3.14 and greater the |/F 25000| is
320 no longer needed.)
321 Either put this file
322 in a directory in your command path or add the directory it is in
323 to your |PATH| statement.
324 If you want to be able to load a patch file then you should also
325 include a line such as
326 \example
327 |\def\TXSpatches{C:/TEXSIS/TXSpatch}|
328 \endexample
329 in the |TXSsite.tex| file. Because \TeX\ and MS-DOS both use
330 backslashes for their own purposes the path is specified with {\sl
331 forward} slashes;
332 DOS understands them to be the same as a backslash.
333
334 \endenumerate
335 \endenumerate
336
337 \bigskip\goodbreak
338
339 After these steps have been carried out, \TeXsis\ should be
340 installed and available to you, and to other users if installed
341 system-wide. The command
342 \example
343 |texsis| {\sl name}
344 \endexample
345 should run \TeXsis\ on the file {\sl name}|.tex| and produce the file
346 {\sl name}|.dvi|, which can be printed like any |.dvi| file.
347 A good test is to go to the \TeXsis\ source directory (or the
348 documentation directory, if the documentation files |TXS|$xxx$|.doc|
349 have been put in a separate directory) and say
350 \example
351 |texsis Manual|
352 \endexample
353 On the first try this will produce several warning messages coming from
354 undefined tags for forward references. These will be defined later in
355 the document and saved in the file |Manual.aux|; Running \TeXsis\ a
356 second time should produce the \TeXsis\ manual with no errors.
357
358 %>>> EOF TXSinstl.doc <<<