Debian Codegraph @

texmf-dist/doc/latex/cdpbundl/00readme.txt

raw
1
2 This is file `00readme.txt'.
3 (Start your first tour of the C.D.P. Bundle by reading this file.)
4
5 This file is part of a work named "C.D.P. Bundle".
6
7 Copyright (C) 1999-2018 by Gustavo MEZZETTI
8 <[email protected]>.
9
10 The C.D.P. Bundle may be distributed and/or modified under the
11 conditions of the LaTeX Project Public License, either version 1.3
12 of this license or (at your option) any later version.
13 The latest version of this license is in
14 http://www.latex-project.org/lppl.txt
15 and version 1.3 or later is part of all distributions of LaTeX
16 version 2005/12/01 or later.
17
18 The C.D.P. Bundle has the LPPL maintenance status
19 "author-maintained".
20
21 The file `manifest.txt' that comes along with this file specifies
22 what the C.D.P. Bundle consists of; more precisely, it explains how
23 the locutions "Work" and "Compiled Work", used in the LaTeX Project
24 Public License, are to be interpreted in the case of this work.
25
26 This file, after giving a brief description of the C.D.P. Bundle,
27 explains how to install it and how to generate its--alas, still
28 incomplete!--documentation.
29
30 February 8, 2018 (vers. 0.36d)
31
32
33
34 CONTENTS
35 ========
36
37 - A dozen lines description of the software
38 - Drawbacks
39 - Installation in a snapshot
40 - Checking the contents of the distribution
41 - How to install the C.D.P. Bundle
42 - How to generate the documentation
43 - The makefile
44
45
46
47 A DOZEN LINES DESCRIPTION OF THE SOFTWARE
48 =========================================
49
50 The C.D.P. Bundle was originally developed for a free association named
51 "C.D.P." (more on it in the documentation), to typeset its official letters
52 with the appropriate letterhead; but more generally, it can be used to
53 typeset business letters bearing a letterhead of your choice and formatted
54 according to Italian style conventions. Its modular structure, however,
55 provides you with building blocks of increasing level, by means of which
56 you should be able to adapt the letter format to a wide variety of styles.
57 It is also possible to write letters divided into sections and paragraphs,
58 to include floating figures and tables, and to use the commands
59 "\tableofcontents", "\listoffigures", and "\listoftables" to compile the
60 relevant indexes. A single input file can contain several letters, and
61 each letter will have its own table of contents, etc., independent of the
62 other ones.
63
64
65
66 DRAWBACKS
67 =========
68
69 The documentation included in this distribution is absolutely minimal. For
70 meaningful instructions on how to use the macros, the reader is referred to
71 other documents available at the web site of the past author's department,
72 which, however, are written in Italian. Since the main purpose of these
73 macros is to typeset letters according to Italian conventions, this should
74 not be a problem. I will consider translating the documentation in English
75 only if at least 5 persons ask me to. Nobody has asked yet.
76
77
78
79 INSTALLATION IN A SNAPSHOT
80 ==========================
81
82 The C.D.P. Bundle is distributed in the usual .dtx + .ins format. The main
83 file is `cdpbundl.dtx', with installation script `cdpbundl.ins'. Do the
84 usual things to install it and to generate the documentation. If you don't
85 know what the usual things are, read below. Note that in order to generate
86 the documentation you should do the following:
87
88 latex; latex; makeindex (.idx); makeindex (.glo); latex; latex.
89
90
91
92 CHECKING THE CONTENTS OF THE DISTRIBUTION
93 =========================================
94
95 Before installing the C.D.P. Bundle and generating its documentation, it is
96 a good idea to read the file `manifest.txt', which lists all the files that
97 make up the distribution, to check that you don't lack any of them (in
98 particular, that you have the file `manifest.txt' itself!). If you do find
99 that some files are missing, don't hesitate to complain to the distributor
100 from whom you obtained the others: this person, company, or institution is
101 infringing the copyright (actually, the copyleft) of the C.D.P. Bundle.
102 Please remember, however, that in order to comply with the copyright a
103 distributor is only requested to supply the files listed in `manifest.txt'
104 under the title "MEANING OF THE TERM `Work'", but not those listed under
105 "MEANING OF THE TERM `Compiled Work'".
106
107
108
109 HOW TO INSTALL THE C.D.P. BUNDLE
110 ================================
111
112 Note that in many pre-packaged TeX distributions, like MiKTeX and TeX Live,
113 the C.D.P. Bundle is already installed, and you can use it straight away.
114
115 If, for some reason, you need to install the C.D.P. Bundle yourself, follow
116 these steps (but also see the section titled "The makefile", below):
117
118 1) Make sure that the files `cdpbundl.dtx' and `cdpbundl.ins' are placed in
119 the same directory; below, we shall indicate this directory as "the current
120 directory".
121
122 2) Run LaTeX (or plain TeX) once on the file `cdpbundl.ins'. This will
123 generate, in the current directory, the following LaTeX input files:
124
125 articoletteracdp.cls
126 cdpaddon.sty
127 cdpbabel.sty
128 cdpnamesenglish.ldf
129 cdpnamesitalian.ldf
130 cdpshues-example.def
131 cdpshues.cfg
132 epson-stylus-740.def
133 hp-laserjet-4500.def
134 letteracdp.cls
135
136 3) Move all the files listed in 2) from the current directory to a LaTeX
137 input directory--see b) and c) below.
138
139 4) If you wish, delete the file `cdpbundl.log' to save disk space.
140
141 Installation is now finished! The following comments may be useful:
142
143 a) The above listing of all the files you need to move is also displayed on
144 the terminal at the end of the run of the file `cdpbundl.ins'.
145
146 b) The documentation of your TeX installation should tell you how to find
147 the LaTeX input directory/ies, and probably also how to create new LaTeX
148 input directories reserved to hold your private classes and packages.
149
150 c) If you are not able to find the LaTeX input directories, or you are not
151 allowed to modify them and cannot create your personal LaTeX input
152 directories, do this: place all the files listed under 2) above in any
153 directory of your choice (a newly created, empty directory would be the
154 best choice, however); then put all the LaTeX source files that you want to
155 typeset using the C.D.P. Bundle in that same directory. Of course, this
156 solution becomes impractical if the number of such source files exceeds a
157 dozen or so; but for a few files you can do this way, at least until you
158 decide to finally learn how to create your private LaTeX input directories!
159 :-)
160
161 d) You may also choose to install the C.D.P. Bundle inside the main texmf
162 tree of your TeX installation (as opposed to installing it inside a
163 directory devoted to private classes and packages). In this case, note
164 that the TDS-compliant location for the C.D.P. Bundle, that is, the
165 directory inside which you should put all the files listed in 2), is
166
167 tex/latex/cdpbundl/
168
169 The documentation, on the other hand, should be stored inside
170
171 doc/latex/cdpbundl/
172
173 Of course, in order to do so you must have appropriate access priviledges
174 to the texmf tree of your site.
175
176
177
178 HOW TO GENERATE THE DOCUMENTATION
179 =================================
180
181 A shortened form of the documentation, already typeset and packaged in PDF,
182 is provided in the file `cdpbundl-doc.pdf' that you might have found on
183 some sites (e.g., the CTAN sites). This file, however, is not part of the
184 C.D.P. Bundle and distributors are not requested to include it among the
185 distributed files. Moreover, it does not contain any implementation notes
186 (in which most users, though, are not at all interested).
187
188 If the distributor from whom you obtained the C.D.P. Bundle did not provide
189 the file `cdpbundl-doc.pdf', or if you want the full documentation,
190 complete with all the available implementation notes (but, alas, still
191 unfinished for many respects), you can generate it following these steps
192 (but also see the section titled "The makefile", below):
193
194 1) Run LaTeX (_not_ plain TeX) _twice_ on the file `cdpbundl.dtx'.
195 This, among other things, will generate the files `cdpbundl.idx' and
196 `cdpbundl.glo' in the same directory as the file `cdpbundl.dtx'.
197
198 2) Run MakeIndex on the file `cdpbundl.idx' obtained in 1), using the style
199 file `gind.ist', which is part of the standard LaTeX distribution.
200
201 3) Run MakeIndex on the file `cdpbundl.glo' obtained in 1), using the style
202 file `gglo.ist', which is part of the standard LaTeX distribution, and
203 specifying the file `cdpbundl.gls' as the output file.
204
205 4) Run LaTeX _two_ more times on the file `cdpbundl.dtx'.
206
207 5) If you wish, you can now delete the following files, to save disk space:
208
209 cdpbundl.aux
210 cdpbundl.glo
211 cdpbundl.gls
212 cdpbundl.idx
213 cdpbundl.ilg
214 cdpbundl.ind
215 cdpbundl.lof
216 cdpbundl.log
217 cdpbundl.out
218 cdpbundl.toc
219
220 After step 4), you should get the documentation in DVI format in the file
221 `cdpbundl.dvi', located in the same directory as `cdpbundl.dtx', with all
222 indexes, table of contents, etc. correctly set.
223
224 However, if you are neurotic (as I am) and have a fast computer, you could
225 run LaTeX three or four times, instead of two, in step 1)... :-)
226
227 Other LaTeX typesetting engines should work in the same way, perhaps
228 producing the output in a different format; for example, you may use
229 pdflatex in place of LaTeX to obtain the documentation in PDF.
230
231
232
233 THE MAKEFILE
234 ============
235
236 Starting with version 0.36 of the C.D.P. Bundle, a (quite trivial!)
237 makefile that "knows" how to produce the documentation is offered along
238 with the Bundle itself. Although it is not a required part of the
239 distribution (as per LPPL), you may find that some distributors supply it
240 all the same (I hope the CTAN sites will do so). With this makefile in
241 the same directory as `cdpbundl.dtx', the shell command
242
243 make doc
244
245 will take all the necessary actions to produce the full documentation
246 (in PDF; the modifications you need to introduce into the makefile
247 in order to obtain DVI output should be quite obvious, however).
248
249 The same makefile can also be used to extract the various class, package,
250 and ancillary (definition and configuration) files: simply issue the
251 command
252
253 make code
254
255 at the shell prompt; whereas
256
257 make
258
259 will _both_ extract the code _and_ typeset the documentation. Type
260
261 make help
262
263 for more information.
264
265
266 Have fun with the C.D.P. Bundle!
267