Debian Codegraph @

texmf-dist/doc/latex/minitoc/INSTALL

raw
1 Installation of the minitoc package.
2
3 This package contains a lot of files. The list of all files
4 is given in minitoc.l.
5
6 The files are sorted into ``classes'' below (a file can
7 appear in more than one class). Each class specifies
8 the function and the placement of its files.
9
10 (0) The files minitoc.ins and minitoc.dtx are the basic source files
11 of this package. The (derived) file minitoc-fr.dtx loads minitoc.dtx but
12 selects the french documentation. The language selection is done
13 by using \ifcase ... \or ... \fi constructs.
14
15 (1) The files minitoc.sty, mtcoff.sty, mtcmess.sty, and ALL *.mld and
16 *.mlo files are the package itself. They must be all installed
17 in a directory where LaTeX finds the .sty files.
18 mtcmempatch.sty is a temporary fix for compatibility with
19 the memoir class.
20
21 (2) INSTALL is a file describing the installation of the package.
22 You are reading it.
23 minitoc.l contains the list of all files of the minitoc distribution.
24 README is the usual file briefly describing the minitoc package.
25 TODO lists some suggested developments of the package.
26 Comments and suggestions are welcome.
27 (3) Example documents:
28 mtc-2c.tex, mtc-2nd.tex, mtc-3co.tex, mtc-add.tex,
29 mtc-ads.tex, mtc-amm.tex, mtc-apx.tex, mtc-art.tex,
30 mtc-bk.tex, mtc-bo.tex, mtc-ch0.tex, mtc-cri.tex,
31 mtc-fko.tex, mtc-fo1.tex, mtc-fo2.tex, mtc-gap.tex,
32 mtc-hi1.tex, mtc-hi2.tex, mtc-hia.tex, mtc-hir.tex,
33 mtc-hop.tex, mtc-liv.tex, mtc-mem.tex, mtc-mm1.tex,
34 mtc-mu.tex, mtc-nom.tex, mtc-ocf.tex, mtc-ofs.tex,
35 mtc-sbf.tex, mtc-scr.tex, mtc-syn.tex, mtc-tbi.tex,
36 mtc-tlc.tex, mtc-tlo.tex, mtc-tsf.tex, mtc-vti.tex,
37 are example files, to play with. The associated .pdf
38 files are provided.
39 Another (short) examples are welcome.
40 (4) minitoc.bug, minitoc.sum
41 are plain text documentation: list of problems (faq)
42 and summary of commands.
43 (5) minitoc.dtx, minitoc.ins, minitoc.bib, minitoc.ist, minitoc.lan,
44 en-mtc.bst, are the source of the documentation
45 in (non-perfect) english.
46 (6) The file lamed3.png
47 is an image to include.
48 (7) minitoc-fr.dtx, minitoc-fr.bib, minitoc-fr.ist, frbib.sty,
49 fr-mtc.bst, minitoc-fr.lan are the source (and tools)
50 of the documentation in french.
51 (8) minitoc.pdf
52 is the documentation in (non-perfect) english,
53 in PDF format.
54 (9) minitoc-fr.pdf
55 is the documentation in french, in PDF format.
56
57 (10) pmk is a shell script to prepare the package and its
58 documentation; the pmk script uses the /tmp/`whoami`.imk
59 and /tmp/`whoami`.tmk directories to not waste disk space
60 under your home directory; there are also six partial
61 scripts (to be adapted):
62 -- imk, which prepares the package from minitoc.ins and
63 minitoc.dtx; note that imk must be run before emk or
64 fmk; it creates also some .sty files necessary
65 to prepare the documentation but they must be
66 installed with it; the imk script uses the
67 /tmp/`whoami`.imk directory to not waste disk space
68 under your home directory;
69 -- emk, which prepares the english documentation from
70 minitoc.dtx;
71 -- fmk, which prepares the french documentation from
72 minitoc-fr.dtx and minitoc.dtx;
73 -- xmk, which typesets the example files (into PDF).
74 -- rmk, which sorts the files into classes (one directory
75 for each class);
76 -- tmk, which creates a TDS-conformant hierarchy
77 (to be tailored for your system); this
78 hierarchy is saved in minitoc.tds.zip;
79 -- cmk, which convert the PDF documentation files into
80 PostScript files.
81 These scripts are currently written in C-shell, but there
82 are very simple, and should be easy to convert in another
83 classic shell. The documentation in PostScript format is
84 no more distributed on the CTAN sites, but the cmk script
85 prepares it (with recto-verso printing).
86 (11) minitoc.tds.zip is a ZIP-archive file containing a
87 TDS-compliant hierarchy with all the files of the
88 minitoc package.
89
90 Some remarks about the rmk, tmk and pmk scripts (which you should tailor
91 to your needs):
92 * with rmk:
93 -- the files of (1) must be installed in a directory where LaTeX
94 finds .sty files;
95 -- the files of (2), (3), (4), (5), (6) and (9) must be installed
96 in a separate directory, but must not be omitted;
97 -- the files of (7) and (8) must be installed as on-line
98 documentation;
99 -- the directories created by the rmk script are under
100 /tmp/`whoami`.rmk to not waste disk space under your home
101 directory.
102 * with tmk:
103 -- the hierarchy is TDS-compliant;
104 -- each file appears only once in the hierarchy;
105 -- the installation is much easier: you only need a .zip or a .tar
106 (or .tgz} dump file of the hierarchy to be deployed into the
107 installed TDS hierarchy; you should examine VERY CAREFULLY (by
108 comparison with you TDS installation) and tailor the tmk script
109 before using it;
110 -- the directories created by the \texttt{tmk} script are under
111 /tmp/`whoami`.tmk to not waste disk space under your home
112 directory;
113 -- the file minitoc.tds.zip (10) should not be installed;
114 it is just a method to help making a TDS-compliant installation.
115 * with pmk:
116 -- the pmk script performs the actions of imk (preparation of the
117 basic files), emk and fmk (preparation of the english and french
118 documentation), xmk (preparation of the examples of documents),
119 rmk and tmk (repartition of files into classes and in a
120 TDS-compliant hierarchy);
121 -- the directories created by the pmk script are under the
122 /tmp/`whoami`.rmk and /tmp/`whoami`.tmk directories to not waste
123 disk space under your home directory.
124 -- the SAME PRECAUTIONS as for tmk are needed.
125
126 A file minitoc.tds.zip containing a ZIP archive of a TDS-compliant
127 hierarchy for minitoc can be prepared by the pmk or tmk scripts. This
128 is no longer distributed.
129
130 minitoc.dtx and minitoc-fr.dtx are (not so trivial) examples of using
131 minitoc with hyperref. They show how the combinaison of these two
132 packages may be useful.
133
134 For a more detailed description of the installation of the
135 minitoc package, see the ``Installation'' chapter in
136 minitoc.pdf (in english) ou in minitoc-fr.pdf (in french).
137
138 %%%%%%%%%%%%%%%%%
139 Cleaning: making the package creates a lot of files. You can get back
140 to just the sources by removing:
141 *.aux *.bbl *.blg *.brf *.idx *.ilg1 *.ind *.ist *.lan *.lo? *.log1
142 *.maf *.mld *.mlo *.out *.pdf *.pre *.sty *.tex *.toc tmp/
143
144 %%%%%%%%%%%%%%%%%
145 For concreteness: the v61 distribution was made like this:
146 rm -rf work; mkdir work
147 cp * work # copy source files to working directory
148 cd work
149 rm -rf /tmp/*.?mk # remove last run
150 csh -f pmk >&out # look at out file
151 cd .. # back to source dir
152 rm -rf work
153 cp /tmp/*.tmk/tds/minitoc.tds.zip .. # to parent
154 zip minitoc-upload.zip minitoc.tds.zip minitoc # the way ctan wants it
155 Upload to http://ctan.org/upload.