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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
%%
%% This is file `cdpaddon.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% cdpbundl.dtx (with options: `addon')
%%
%% 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)
%%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}[1998/06/01] % LaTeX2e is required!
\ProvidesPackage{cdpaddon}
[2018/02/08 v0.36d (development)]
\@ifdefinable\@cdpaddon{\def\@cdpaddon{cdpaddon}}
\def\do#1{\@ifdefinable#1{\newif#1}}
\do\if@using@cdp@
\do\if@use@color@
\do\if@use@hyper@
\do\if@custom@lh@
\@ifdefinable\@cdpaddon@printer{\let\@cdpaddon@printer\@empty}
\@ifdefinable\@temp@cdpaddon@a{}
\@ifdefinable\@temp@cdpaddon@b{}
\def\@temp@cdpaddon@a{%
\@using@cdp@false
\PackageWarningNoLine{\@cdpaddon}{%
It seems that you are not using the letteracdp\MessageBreak
document class; therefore no attempt will be made\MessageBreak
to modify letterheads and similar things%
}%
}
\def\@temp@cdpaddon@b{letteracdp}
\@ifclassloaded{\@temp@cdpaddon@b}{%
\ifx\@letteracdp\@temp@cdpaddon@b
\@using@cdp@true
\else
\@temp@cdpaddon@a
\fi
}{%
\@temp@cdpaddon@a
}
\def\@temp@cdpaddon@a#1printer:#2,#3\@@@{%
\def\@temp@cdpaddon@b{#1}%
\ifx\@temp@cdpaddon@b\@empty
\def\@cdpaddon@printer{#2}%
\else
\@unknownoptionerror
\fi
}
\DeclareOption{bw}{\@use@color@false\@custom@lh@false}
\DeclareOption{color}{\@use@color@true\@custom@lh@false}
\DeclareOption{hypertext}{\@use@hyper@true\@custom@lh@false}
\DeclareOption{plaintext}{\@use@hyper@false\@custom@lh@false}
\DeclareOption{customletterhead}{%
\@use@color@false
\@use@hyper@false
\@custom@lh@true
}
\DeclareOption*{%
\expandafter\@temp@cdpaddon@a\CurrentOption,printer:,\@@@%
}
\ExecuteOptions{color,plaintext}
\ProcessOptions\relax
\def\@temp@cdpaddon@a{Default}
\ifx\@cdpaddon@printer\@temp@cdpaddon@a
\let\@cdpaddon@printer\@empty
\fi
\if@use@color@
\RequirePackage[dvipsnames]{color}
\fi
\if@use@hyper@
\RequirePackage{hyperref}
\fi
\if@using@cdp@
\def\@temp@cdpaddon@a#1{%
\@ifundefined{#1}{%
\PackageError\@cdpaddon{%
Internal command \@backslashchar#1 undefined%
}{%
The internal command \@backslashchar#1,
that should have been defined\MessageBreak
by the \@letteracdp\space document class,
is actually undefined.\MessageBreak
Probably, you are using an old or modified version
of that class.\MessageBreak
Proceed, but keep your fingers crossed!%
}%
}%
}
\if@use@color@
\ifx\@cdpaddon@printer\@empty
\let\@temp@cdpaddon@b\@empty
\begingroup % \endgroup put in by \@temp@cdpaddon@b
\let\@temp@cdpaddon@b\endgroup
\InputIfFileExists{cdpshues.cfg}{%
\PackageInfo{\@cdpaddon}{%
Reading config. file%
}%
\def\DeclareCDPSealHuesDefault{%
\@temp@cdpaddon@b % ends group
\endinput
\def\@cdpaddon@printer
}%
}{%
\PackageWarningNoLine{\@cdpaddon}{%
Could not find config. file for default printer%
}%
}%
\@temp@cdpaddon@b
\else
\def\@temp@cdpaddon@b{None}%
\ifx\@cdpaddon@printer\@temp@cdpaddon@b
\let\@cdpaddon@printer\@empty
\fi
\fi
\def\@temp@cdpaddon@b{%
\definecolor{slight@col}{named}{SpringGreen}
\definecolor{strong@col}{named}{OliveGreen}
\PackageInfo{\@cdpaddon}{%
Color hues defined internally%
}%
\typeout{%
*Package cdpaddon using built-in colors for the C.D.P. seal.*%
}%
}
\ifx\@cdpaddon@printer\@empty
\@temp@cdpaddon@b
\else
\InputIfFileExists{\@cdpaddon@printer.def}{%
\PackageInfo{\@cdpaddon}{%
Color hues defined by def. file\MessageBreak
\@cdpaddon@printer.def%
}%
}{%
\PackageWarningNoLine{\@cdpaddon}{%
Could not find def. file \@cdpaddon@printer.def%
}%
\@temp@cdpaddon@b
}%
\fi
\def\@temp@cdpaddon@b#1{%
\@temp@cdpaddon@a{#1}{%
\setbox\z@\box\@nameuse{#1}%
\sbox{\@nameuse{#1}}{{\color{strong@col}\unhbox\z@}}%
}%
}
\renewcommand*\foldingtagrule{%
\color{strong@col}%
\CDPFactoryFoldingTagRule
}
\@temp@cdpaddon@a{@logo@box@base}{%
\savebox\@logo@box@base[\z@][r]{\setlength\unitlength{.625mm}%
\begin{picture}(32,16)(-3,7.87)%
\begingroup
\color{slight@col}%
\put(8,16){\circle*{10}}%
\put(18,16){\circle*{10}}%
\thicklines
\put(8,16){\oval(8.2,8.2)[l]}%
\put(8,16){\oval(8.6,8.6)[l]}%
\put(8,16){\oval(9,9)[l]}%
\put(8,16){\oval(9.4,9.4)[l]}%
\put(8,16){\oval(9.8,9.8)[l]}%
\put(18,16){\oval(8.2,8.2)[r]}%
\put(18,16){\oval(8.6,8.6)[r]}%
\put(18,16){\oval(9,9)[r]}%
\put(18,16){\oval(9.4,9.4)[r]}%
\put(18,16){\oval(9.8,9.8)[r]}%
\put(13,16){\makebox(0,0){\color{white}%
\vrule height 6.25mm depth 0mm width 6.25mm
}}%
\put(9,11){\makebox(0,0)[bl]{%
\vrule height 12.5mm depth 0mm width 1.875mm
}}%
\put(14,1){\makebox(0,0)[bl]{%
\vrule height 12.5mm depth 0mm width 1.875mm
}}%
\endgroup
\color{strong@col}%
\put(8,16){\oval(10,10)[l]}%
\put(8,11){\line(0,1){10}}%
\put(9,11){\framebox(3,20){}}%
\put(18,16){\oval(10,10)[r]}%
\put(18,11){\line(0,1){10}}%
\put(14,1){\framebox(3,20){}}%
\thicklines
\put(8,16){\oval(16,16)[l]}%
\put(8,8){\line(1,0){5}}%
\put(13,24){\line(1,0){10}}%
\put(8,16){\oval(14,14)[l]}%
\put(8,9){\line(1,0){5}}%
\put(13,23){\line(1,0){10}}%
\end{picture}%
}%
}
\@temp@cdpaddon@b{@logo@box@addS}
\@temp@cdpaddon@b{@logo@box@addL}
\@temp@cdpaddon@b{@oordinamento@box}
\@temp@cdpaddon@a{@cdp@head}{\def\@cdp@head{%
\@logo@overlay\@logo@box@addL
\copy\@oordinamento@box
{\color{strong@col}\hrulefill}\kern\@lh@right@margin
}}
\@temp@cdpaddon@a{@cdp@foot}{\def\@cdp@foot{%
\color{strong@col}%
\reset@font
\setlength\@tempdima{\textwidth}%
\addtolength\@tempdima{-2\@lh@right@margin}%
\hss\parbox[t]{\@tempdima}{%
\parfillskip\z@skip
\noindent\hrulefill\@@par
\baselineskip 11\p@
\hb@xt@\hsize{\hfil\copy\@name@and@WWW@box\hfil}%
}\hss
}}
\fi
\newsavebox\@cdp@custom@lhead@box
\newsavebox\@cdp@custom@lfoot@box
\newsavebox\@cdp@custom@llogo@box
\def\@temp@cdpaddon@b#1#2#3#4{%
\newenvironment*{customletter#1}[1]{%
\setbox\@nameuse{@cdp@custom@l#1@box}\vbox to\z@ \bgroup
\hsize ##1\relax
\parskip \z@skip
#3% either \vss or nothing
\everypar{}%
\noindent\minipage[#2]{##1}%
\null
}{%
\par
\vskip -\baselineskip
\null
\endminipage
#4% either \vss or nothing
\egroup
\global \setbox \@ne \box \@nameuse{@cdp@custom@l#1@box}%
\xdef\@cdp@reserved{%
\setbox \@nameuse{@cdp@custom@l#1@box}\box \@ne
}%
\aftergroup \@cdp@reserved
}%
}%
\@temp@cdpaddon@b{head}{b}{\vss}{}
\@temp@cdpaddon@b{foot}{t}{}{\vss}
\@temp@cdpaddon@b{logo}{b}{\vss}{}
\newcommand*\ruleacrossheadorfoot[1][\z@]{\par
\setlength\@tempdima{#1}%
\@ifnextchar [% ] bracket matching
\@cdp@rule@across@x
{%
\@tempdimb \@tempdima
\@cdp@rule@across
}%
}
\@ifdefinable\@cdp@rule@across@x{\def\@cdp@rule@across@x[#1]{%
\setlength\@tempdimb{#1}%
\@cdp@rule@across
}}
\@ifdefinable\@cdp@rule@across{\def\@cdp@rule@across{
\nobreak
\vskip -\baselineskip
\hb@xt@ \hsize {%
\kern \@tempdima \hrulefill \kern \@tempdimb
}%
}}
\if@custom@lh@
\@temp@cdpaddon@a{@cdp@head}{\def\@cdp@head{%
\hss\copy\@cdp@custom@lhead@box\hss
}}
\@temp@cdpaddon@a{@cdp@foot}{\def\@cdp@foot{%
\hss\copy\@cdp@custom@lfoot@box\hss
}}
\@temp@cdpaddon@a{@cdp@logo}{\def\@cdp@logo{%
\llap{\copy\@cdp@custom@llogo@box}%
}}
\setlength\longindentation{.5\textwidth}
\fi
\if@use@hyper@
\AtBeginDocument{%
\@temp@cdpaddon@a{@name@and@WWW@box}{%
\setbox\@name@and@WWW@box = \vtop{%
\baselineskip 11\p@
\fontencoding{OT1}\selectfont
\hb@xt@\z@{\hss \@lh@rm\Coordinamento \hss}%
\hb@xt@\z@{%
\hss
\@lh@it World Wide Web:\/
\href{\CoordinamentoWWW}{\@lh@tt \CoordinamentoWWW}%
\hss
}%
}%
}%
\let\@temp@cdpaddon@a\@undefined
}
\else
\let\@temp@cdpaddon@a\@undefined
\fi
\else
\let\@temp@cdpaddon@a\@undefined
\fi
\let\if@using@cdp@\@undefined
\let\@using@cdp@true\@undefined
\let\@using@cdp@false\@undefined
\let\if@use@color@\@undefined
\let\@use@color@true\@undefined
\let\@use@color@false\@undefined
\let\if@use@hyper@\@undefined
\let\@use@hyper@true\@undefined
\let\@use@hyper@false\@undefined
\let\if@custom@lh@\@undefined
\let\@custom@lh@true\@undefined
\let\@custom@lh@false\@undefined
\let\@cdpaddon@printer\@undefined
\let\@temp@cdpaddon@b\@undefined
\DeclareRobustCommand*\facesmile{\@face\smile}
\DeclareRobustCommand*\facefrown{\@face\frown}
\@ifdefinable\@face{\def\@face#1{%
\leavevmode
\count@\spacefactor
\hb@xt@ 1em{\hfil$%
\hb@xt@\z@ {\hss$\bigcirc$\hss}%
\lower .2ex \hb@xt@\z@ {\hss$\scriptscriptstyle #1$\hss}%
\raise .3ex \hb@xt@\z@ {\hss${\cdot}\mkern 2mu{\cdot}$\hss}%
$\hfil}%
\spacefactor\count@
}}
\endinput
%%
%% End of file `cdpaddon.sty'.
|