Debian Codegraph @

texmf-dist/doc/latex/splitindex/install.txt

raw
1 SplitIndex Installation Guide
2
3 2016-02-18
4
5
6 INTRODUCTION
7 ============
8
9 If you know how to install LaTeX packages and how to install binary
10 programs, just do it. If you don't know, read the following. If you
11 are using a system which provides a bash and gnu tools, you may try
12 install.sh for installation. See
13
14 ./install.sh --help
15
16 for more information.
17
18 But you may also try the following step by step installation:
19
20 HOW TO INSTALL SplitIndex FROM A TDS-ARCHIVE
21 ============================================
22
23 Some distributors may use a SplitIndex TDS-archive for distributing
24 SplitIndex. SplitIndex TDS-archive may be installed very easily.
25 The SplitIndex TDS-archive has following contents:
26
27 +- doc/
28 | +- latex/
29 | | +- splitindex/
30 | | +- README
31 | | +- install.txt
32 | | +- manifest.txt
33 | | +- splitidx.pdf
34 | +- man/
35 | +- man1/
36 | +- splitindex.1
37 +- tex/
38 | +- generic/
39 | +- splitindex/
40 | +- splitindex.tex
41 | +- latex/
42 | +- splitindex/
43 | +- splitidx.sty
44 +- scripts/
45 | +- splitindex/
46 | +- splitindex.pl
47 | +- splitindex.tlu
48 | +- splitindex_main.tlu
49 +- source/
50 +- latex/
51 +- splitindex/
52 +- install.sh
53 +- splitidx.dtx
54 +- splitidx.ins
55 +- splitindex.c
56 +- splitindex.java
57
58 If you don't have such an archive, continue reading at 1st step of ``HOW TO
59 GENERATE THE splitidx PACKAGE''. If you have such an archive - we will use
60 the file name ``splitindex.tds.zip'' in the following - you may continue
61 with:
62
63 A) Have a look where your LaTeX Distribution searchs for files.
64 With TeX Live you can ask kpathsea for this, e.g. using a unix
65 shell:
66
67 kpsexpand \$TEXMFLOCAL
68
69 to use the local texmf tree or:
70
71 kpsexpand \$TEXMFHOME
72
73 to use your private texmf tree. Following uses ``<TEXMF>'' to
74 be a synonym for the texmf tree you want to use.
75
76 B) Extract splitindex.tds.zip at <TEXMF> with all the subdirectories of
77 the splitindex.tds.zip but without generating additional
78 subdirectories, e.g., using:
79
80 cd <TEXMF>
81 unzip splitindex.tds.zip
82
83 or any other zip extraction programm.
84
85 C) Continue with 5th or 6th step at ``HOW TO INSTALL THE EXECUTABLES''.
86
87 D) Call the program, which is used to update the filename data
88 base, e.g., texhash or mktexlsr if you are using teTeX/TeX Live.
89
90 E) Read ``HOW TO TEST YOUR INSTALLATION'' at the end of this
91 documentation.
92
93
94 HOW TO GENERATE THE splitidx PACKAGE
95 ====================================
96
97 You need this only, if you don't have a SplitIndex TDS-archive, but want
98 to install SplitIndex from a basic SplitIndex distribution. If you have
99 already done the SplitIndex TDS-archive installation discribed above, you
100 should skip this section.
101
102 1st) Process splitidx.ins with TeX or LaTeX, e.g. using the following
103 input at a command shell (e.g. bash or command.com):
104
105 latex splitidx.ins
106
107 Maybe you'll be asked, if you want to overwrite existing files.
108 Answer this question with yes.
109
110 2nd) Have a look where your LaTeX Distribution searchs for files.
111 With TeX Live you can ask kpathsea for this, e.g. using a unix
112 shell:
113
114 kpsexpand \$TEXMFLOCAL
115
116 to use the local texmf tree or:
117
118 kpsexpand \$TEXMFHOME
119
120 to use your private texmf tree. Following uses ``<TEXMF>'' to
121 be a synonym for the texmf tree you want to use.
122
123 3rd) Create folder <TEXMF>/tex/latex/splitindex (at Windows:
124 <TEXMF>\tex\latex\splitindex), if it doesn't exist. Copy
125 splitidx.sty to this folder.
126
127 4th) Create folder <TEXMF>/scripts/splitindex (at Windows:
128 <TEXMF>\scripts\latex\splitindex), if it doesn't exist. Copy
129 splitindex.pl, splitindex.tlu and splitindex_main.tlu to this folder.
130
131 5th) Call the program, which is used to update the filename data
132 base, e.g. texhash or mktexlsr if you are using teTeX/TeX Live.
133
134
135 HOW TO INSTALL THE EXECUTABLE
136 =============================
137
138 You need only one of the executables splitindex.pl or splitindex.tlu.
139 I recommend to use splitindex.pl, but if your system doesn't provide perl
140 but TeXLua, you may use splitindex.tlu instead.
141
142 To install splitindex.pl or splitindex.tlu on Windows:
143
144 5th) Rename a copy of runscript.exe into splitindex.exe and copy it
145 into the binary folder of your TeX installation. You may simply search
146 for runscript.exe itself to find the binary folder.
147
148 To install splitindex.pl or splitindex.tlu on Linux, OpenBSD, OS X,
149 OpenSolaris etc.:
150
151 6th) Copy splitindex.pl or splitindex.tlu to the binary folder of your TeX
152 installation and rename it into splitindex. You may simply do a
153 `which pdflatex' to find the binary folder. Make splitindex executable
154 for everybody using e.g. `chmod a+x splitindex'.
155
156
157 HOW TO GET A REAL BINARY
158 ========================
159
160 If you don't like scripts, you may make a real binary from the C source file
161 splitindex.c and install that instead of the script. If your getopt library
162 doesn't support long options, you may define NO_LONGOPT. In this case the code
163 for long options won't be compiled. I recommend to use either the perl or the
164 TeXLua script.
165
166
167 HOW TO GENERATE THE MANUAL
168 ==========================
169
170 7th) process splitidx.dtx with LaTeX to generate the user manual of
171 splitidx and SplitIndex, e.g. using the following input at a
172 command shell:
173
174 pdflatex splitidx.dtx
175 pdflatex splitidx.dtx
176 mkindex splitidx
177 pdflatex splitidx.dtx
178
179 or (if you do not have the mkindex script):
180
181 pdflatex splitidx.dtx
182 pdflatex splitidx.dtx
183 makeindex -s gind.ist splitidx
184 makeindex -s gglo.ist -o splitidx.gls splitidx.glo
185 pdflatex splitidx.dtx
186
187 You may print the resulting splitidx.pdf.
188
189 8th) read the manual you produced at 7th step.
190
191
192 HOW TO TEST YOUR INSTALLATION
193 =============================
194
195 Use the following LaTeX source to test the installation. See
196 splitidx.pdf to learn to know how to do this.
197
198 \documentclass{article} % We use \Class{article} class ...
199 \usepackage{splitidx} % ... and the \Package{splitidx} package
200 \makeindex % And we want index generation
201 \usepackage{hyperref}
202 % We define 4 indices:
203 \newindex[General Index]{idx} % Name and shortcut of the 1st index
204 \newindex[Index of Animals]{ani} % ... 2nd index
205 \newindex[Index of Fruits]{fru} % ... 3rd index
206 \newindex[Index of Vegetables]{veg} % ... \dots\ 4th index
207
208 \begin{document}
209 Apples\sindex[fru]{apple} % an entry to fru index
210 and oranges\sindex[fru]{orange} % an entry to fru index
211 are fruits\sindex{fruits}. % an implicite entry to idx index
212 Tomatos\sindex[veg]{tomato} % an entry to veg index
213 are vegetables\index{vegetables}. % an implicite entry to idx index
214 Cats\sindex[ani]{cat} % an entry to ani index
215 are animals\sindex[idx]{animals}. % an explicite entry to idx index
216
217 \twocolumn[%
218 \section*{Indices}%
219 \markboth{Indices}{Indices}%
220 ]
221 \printsubindex* % print all indices
222 \end{document}