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
186
187
188
189
190
191
192
193
|
%
% This is file `cdpbundl.ins'.
%
% This file is part of a work named "C.D.P. Bundle".
%
% Copyright (C) 1999-2018 by Gustavo MEZZETTI
% <gustavo.mezzetti@istruzione.it>.
%
% The C.D.P. Bundle may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% The C.D.P. Bundle has the LPPL maintenance status
% "author-maintained".
%
% The file `manifest.txt' that comes along with this file specifies
% what the C.D.P. Bundle consists of; more precisely, it explains how
% the locutions "Work" and "Compiled Work", used in the LaTeX Project
% Public License, are to be interpreted in the case of this work.
%
% Note that the distribution of this file alone is "distribution of
% only part of the Work" in the sense of the LaTeX Project Public
% License, and should be avoided.
%
% February 8, 2018 (vers. 0.36d)
%
\input docstrip
\def\filename{cdpbundl.dtx}
\newif\ifWritingToDirectoryOfTDS
\WritingToDirectoryOfTDSfalse
\edef\WriteToDir{\WriteToDir}
\def\TryToUseMyDir{%
\usedir{tex/latex/cdpbundl}
\ifx \destdir\WriteToDir \else
\WritingToDirectoryOfTDStrue
\fi
}
\def\Y{Y}
\Msg{----------------------------------------------------------------}
\Msg{}
\Msg{Unpacking the C.D.P. Bundle.}
\Msg{}
\Msg{The macro files contained in the C.D.P. Bundle are now standard,}
\Msg{so it now makes sense to try to install the generated files into}
\Msg{their own TeX directory, using the \string\usedir\space facility of DocStrip;}
\Msg{if that fails, they will be just saved in the current directory.}
\Msg{In this case, in order to finish the installation, you will have}
\Msg{to move them into a directory where LaTeX can find them: see the}
\Msg{documentation specific to your TeX implementation to learn where}
\Msg{such directories are located on your system.}
\Msg{}
\catcode`\@ = 11
\ifx \usedir\alt@usedir
\Msg{On your system, the name of the installation directory should be}
\Msg{}
\Msg{\space\space\space\space\showdirectory{tex/latex/cdpbundl}}
\Msg{}
\Msg{Please make sure that the above directory exists on your system,}
\Msg{and that you have permission to create or overwrite files in it;}
\Msg{if so, you may choose to put the generated files directly there.}
\Msg{}
\Msg{----------------------------------------------------------------}
\Msg{}
\Msg{Put files directly in suggested directory}
\Msg{\space\space\space\space\showdirectory{tex/latex/cdpbundl}}
\Ask\answer{or not? [y/n]}
\ifx \answer\yes
\TryToUseMyDir
\else \ifx \answer\y
\TryToUseMyDir
\else \ifx \answer\Y
\TryToUseMyDir
\fi \fi \fi
\else % of \ifx \usedir\alt@usedir
\Msg{It seems that the configuration of your system does not allow us}
\Msg{to use the \string\usedir\space facility: writing files to current directory.}
\fi % of \ifx \usedir\alt@usedir
\Msg{}
\ifWritingToDirectoryOfTDS
\Msg{Trying to install files directly in the proposed directory.}
\Msg{}
\else
\Msg{Either you chose NOT to install files in the proposed directory,}
\Msg{or, despite your choice, your system is not configured to permit}
\Msg{you to do so. \space Therefore all files will be placed in the current}
\Msg{directory and you will have to move them to a suitable directory}
\Msg{by hand. \space At the end of this run, you will be presented with the}
\Msg{complete list of the files you need to move.}
\Msg{}
\Ask\answer{Press \space <return> \space to continue
(your \string\answer\space will be ignored).}
\fi
\preamble
This is a generated file.
It is part of a work named "C.D.P. Bundle".
Copyright (C) 1999-2018 by Gustavo MEZZETTI
<gustavo.mezzetti@istruzione.it>.
The C.D.P. Bundle may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license or (at your option) any later version.
The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.
The C.D.P. Bundle has the LPPL maintenance status
"author-maintained".
The file `manifest.txt' that comes along with this file specifies
what the C.D.P. Bundle consists of; more precisely, it explains how
the locutions "Work" and "Compiled Work", used in the LaTeX Project
Public License, are to be interpreted in the case of this work.
Note that the distribution of this file alone is "distribution of
only part of the Work" in the sense of the LaTeX Project Public
License, and should be avoided.
February 8, 2018 (vers. 0.36d)
\endpreamble
\askonceonly
\generate{
\file{letteracdp.cls} {\from{\filename}{letter}}
\file{articoletteracdp.cls}{\from{\filename}{artico}}
\file{cdpaddon.sty} {\from{\filename}{addon}}
\file{cdpbabel.sty} {\from{\filename}{babel}}
\file{cdpshues-example.def}{\from{\filename}{example}}
\file{epson-stylus-740.def}{\from{\filename}{epson}}
\file{hp-laserjet-4500.def}{\from{\filename}{hplj}}
\file{cdpshues.cfg} {\from{\filename}{config}}
\file{cdpnamesenglish.ldf} {\from{\filename}{lang-en}}
\file{cdpnamesitalian.ldf} {\from{\filename}{lang-it}}
}
\Msg{}
\ifWritingToDirectoryOfTDS
\Msg{Installation finished. \space Check that the proposed directory}
\Msg{\space\space\space\space\showdirectory{tex/latex/cdpbundl}}
\Msg{has been correctly updated.}
\else
\Msg{To finish the installation, please move the following files into}
\Msg{a directory where LaTeX looks for inputs files:}
\Msg{}
\Msg{\space\space\space\space articoletteracdp.cls}
\Msg{\space\space\space\space cdpaddon.sty}
\Msg{\space\space\space\space cdpbabel.sty}
\Msg{\space\space\space\space cdpnamesenglish.ldf}
\Msg{\space\space\space\space cdpnamesitalian.ldf}
\Msg{\space\space\space\space cdpshues-example.def}
\Msg{\space\space\space\space cdpshues.cfg}
\Msg{\space\space\space\space epson-stylus-740.def}
\Msg{\space\space\space\space hp-laserjet-4500.def}
\Msg{\space\space\space\space letteracdp.cls}
\fi
\Msg{}
\Msg{Happy TeXing!}
\endbatchfile
|