Debian Codegraph @

texmf-dist/doc/latex/glossaries/INSTALL

raw
1 INSTALLATION
2
3 The best (and recommended) method of installing is through your TeX package
4 manager (for example, `tlmgr install glossaries`), but if you need to use
5 the manual method for some reason, follow the instructions below.
6
7 If you have downloaded the glossaries package using the TeX
8 Directory Structure (TDS), that is you have downloaded the archive
9 glossaries.tds.zip containing doc, tex, scripts and source
10 directories, you need to follow the "Installing from TDS"
11 instructions below.
12
13 If you have downloaded the following files:
14
15 glossaries.dtx
16 glossaries.ins
17 makeglossaries
18 makeglossaries.bat
19
20 You need to follow the "Installing from DTX and INS" instructions
21 below.
22
23 For further information on installing LaTeX packages see:
24
25 http://www.tex.ac.uk/cgi-bin/texfaq2html?label=installthings
26
27 INSTALLING FROM TDS
28 ===================
29
30 Files in tex and doc directories should go in the corresponding
31 TEXMF directories (for example, ~/texmf or /usr/share/texmf-local/ or
32 C:\localtexmf\). The scripts/glossaries/ directory contains the Perl
33 script makeglossaries and the batch file makeglossaries.bat which
34 should go somewhere on your operating system's PATH. (Both files are
35 required for Windows, but only the Perl script is required for other
36 operating systems.) Similarly for makeglossaries-lite.lua, which is
37 a Lua alternative.
38
39 Example (on UNIX like systems):
40
41 unzip glossaries.tds.zip -d ~/texmf/
42
43 A minimal example file called minimalgls.tex is provided for testing
44 and debugging purposes and can be found in the package documentation
45 samples directory (doc/latex/glossaries/samples/). To test your
46 installation do:
47
48 latex minimalgls
49 makeglossaries minimalgls
50 latex minimalgls
51
52 The LaTeX2HTML style file, glossaries.perl, is located in
53 source/latex/glossaries and should go in the LaTeX2HTML styles
54 directory, if required.
55
56 INSTALLING FROM DTX AND INS
57 ===========================
58
59 Run LaTeX on glossaries.ins to generate the package style files,
60 sample files and LaTeX2HTML style file:
61
62 latex glossaries.ins
63
64 To create the package documentation (glossaries-code.pdf):
65
66 pdflatex -jobname glossaries-code glossaries.dtx
67 makeindex -s gind.ist glossaries.idx
68 makeindex -s gglo.ist -o glossaries.gls glossaries.glo
69 makeglossaries glossaries
70 pdflatex -jobname glossaries-code glossaries.dtx
71 pdflatex -jobname glossaries-code glossaries.dtx
72
73 If TEXMF denotes the base directory of your local TeX installation (e.g.
74 /usr/share/texmf-local/ or C:\localtexmf\) then create the following
75 directories (if they don't already exist):
76
77 TEXMF/doc/latex/glossaries
78 TEXMF/doc/latex/glossaries/samples
79 TEXMF/tex/latex/glossaries
80 TEXMF/tex/latex/glossaries/base
81 TEXMF/tex/latex/glossaries/expl
82 TEXMF/tex/latex/glossaries/styles
83 TEXMF/tex/latex/glossaries/test-entries
84
85 Move the example-glossaries-*.tex files to
86 TEXMF/tex/latex/glossaries/test-entries/
87
88 Move the sample files (*.tex) to TEXMF/doc/latex/glossaries/sample/
89
90 Move the documentation (*.pdf) to TEXMF/doc/latex/glossaries/
91
92 Move glossaries.sty, glossaries-babel.sty,
93 glossaries-polyglossia.sty, glossaries-compatible-207.sty,
94 glossaries-compatible-307.sty,
95 mfirstuc.sty and mfirstuc-english.sty to
96 TEXMF/tex/latex/glossaries/base/
97
98 Move glossaries-accsupp.sty to
99 TEXMF/tex/latex/glossaries/expl/
100
101 Move the other style files (glossary-*.sty) to
102 TEXMF/tex/latex/glossaries/styles/
103
104 Move makeglossaries to somewhere on your path, e.g. /usr/bin/.
105
106 If you are a Windows user, you will also need to move
107 makeglossaries.bat to the same location as makeglossaries, but you
108 will need to have Perl installed to be able to use makeglossaries.
109 (It is possible to use makeindex or xindy directly if you don't have
110 Perl installed. See the manual, glossaries.pdf, for details.)
111
112 A minimal example file called minimalgls.tex is provided for testing
113 and debugging purposes. This file is created along with all the other
114 sample files when you run glossaries.ins through LaTeX. To test your
115 installation do:
116
117 latex minimalgls
118 makeglossaries minimalgls
119 latex minimalgls
120
121 If you want to use the glossaries package with LaTeX2HTML:
122 move glossaries.perl to the LaTeX2HTML styles directory.