summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/base/web2ctex.txt
blob: f92b4165bb7abbaac8975de0eda2cfef4c5549dd (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

          LaTeX installation instructions for web2c Unix TeX
 
                              3 June 97
 
 
SUMMARY
=======
 
This file contains instructions on how to install LaTeX for web2c Unix 
TeX.  Before reading this file, you should read install.txt, which 
will explain how the LaTeX installation works.
 
This file describes:
 
 * Preliminary actions that ease the installation process.

 * How to save any old version of LaTeX.
 
 * How to unpack the LaTeX distribution.
 
 * How to create the LaTeX format.
 
 * How to install the LaTeX files.


ESTABLISH DIRECTORY PATHS
=========================
 
It helps to set some environment variables to the paths needed by
LaTeX prior to the installation procedure.  Also it helps to write the
assignments into a file, which can be saved and used any number of
times.  Here is a sample .profile file (for the Bourne sh or a
derivative, see later for csh format), and the command that would use
it.

# Paths file for installing LaTeX2e.  See web2ctex.txt
# 2 June 97

LATEXINPUTS=/usr/lib/texmf/texmf/tex/latex/base  ; export LATEXINPUTS
LATEXFORMATS=/usr/lib/texmf/texmf/web2c          ; export LATEXFORMATS
LATEXBIN=/usr/lib/texmf/bin/i586-linux           ; export LATEXBIN
LATEXDIST=/home/Current-Install/latex2e/base     ; export LATEXDIST
INDEXSTYLE=/usr/lib/texmf/texmf/makeindex        ; export INDEXSTYLE

   source ./.profile


You can identify each of these paths by using the find command to look
for one of the files specified in each section below.  For example,
LATEXINPUTS can be identified with the following commands.

   cd /usr
   find  .  -name article.sty  -print

 
The $LATEXINPUTS directory is where the LaTeX packages and classes are
kept.  This is on the TEXINPUTS path.  This directory contains the
files: article.sty, report.cls, lablst.tex and ltxguide.cls.

For csh or a derivative use the command form below, otherwise use the
form shown above in the sample file content above.

   setenv LATEXINPUTS /usr/local/lib/tex/inputs/latex
 

The $LATEXFORMATS directory is where the LaTeX format is kept.  This
is on the TEXFORMATS path.  This directory contains the files:
latex.fmt, tex.fmt and mf.base.
 

The $LATEXBIN directory is where the LaTeX binary is kept.  This is on
the PATH path.  This directory contains the files: virtex, kpsetool
and dvips.  Note that the required directory is the one actually
containing these files, not one with soft links (i.e., ffff -> gggg)
to these files; look in the directories to be sure.  The command 
   which latex
will give the wrong directory if a soft link is in use.
 

The $LATEXDIST directory is where the LaTeX distribution is kept.
This is normally NOT on a path.  This directory contains the files
that you have just acquired and wish to install.


The $INDEXSTYLE directory is where the makeindex program looks for its
style files.  This directory contains the files with suffix .ist which
can be found with 
   find  .  -name *.ist  -print

 
SAVING ANY OLD VERSION OF LATEX
===============================
 
If you have a copy of LaTeX 2.09, you may wish to save it before 
installing LaTeX2e.  
 
To begin with, you should save the LaTeX format.
 
   cd $LATEXFORMATS
   mv latex.fmt latex209.fmt
   
Then you should save the LaTeX inputs.  This will depend on whether 
your LaTeX inputs are kept in the same directory as all the other 
inputs.  If they are, then:
 
   cd $LATEXINPUTS
   mkdir ../latex209
   cp *.sty ../latex209
 
If they are not, and are kept in a separate directory, or if you are
not sure, then:
 
   cd $LATEXINPUTS
   mkdir ../latex209
   cp * ../latex209
 
Finally, you can create a shell script to run the old latex, for 
example:
 
   #!/bin/sh
   TEXINPUTS=${LATEX209INPUTS:- \
      .:/usr/local/lib/tex/inputs/latex209:$TEXINPUTS}
   export TEXINPUTS
   virtex \&latex209 $*
 
 
UNPACKING THE DISTRIBUTION
==========================
 
To unpack the LaTeX distribution, you should:
 
   cd $LATEXDIST
   initex unpack.ins
   
This may take 5 or 10 minutes to unpack.
 
 
CREATING THE LATEX FORMAT
=========================
 
To create the LaTeX format, you should:
 
   initex latex.ltx
   
This will create a file latex.fmt.  You should install this with:
 
   mv latex.fmt $LATEXFORMATS
   
If you had a latex binary before, it will now pick up the new 
format.  Otherwise, you should say:
 
   cd $LATEXBIN
   ln virtex latex   
 
 
PUTTING THE FILES WHERE LATEX CAN READ THEM
===========================================
 
To install the LaTeX files, you should:
 
   cd $LATEXDIST
   mv latexbug.tex testpage.tex lablst.tex idx.tex nfssfont.tex \
      small2e.tex sample2e.tex docstrip.tex \
      *.cls *.clo *.sty *.fd *.def *.cfg \
      $LATEXINPUTS
   mv *.ist $INDEXSTYLE
      
You have now installed LaTeX!
 
 
CHECKING THAT THE INSTALLATION WORKED
=====================================
 
To check that the installation worked, you should:
 
   cd $LATEXDIST
   latex ltxcheck
   
This will perform a number of tests, which should all report `OK'.
 
 
--- Contributed by: David Outteridge <DOUTTERIDGE@bendata.com>
--- Copyright 1997 by David Outteridge and the LaTeX3 project. ---
---       All rights reserved.         ---