diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/cdpbundl/letteracdp.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/cdpbundl/letteracdp.cls | 170 |
1 files changed, 119 insertions, 51 deletions
diff --git a/Master/texmf-dist/tex/latex/cdpbundl/letteracdp.cls b/Master/texmf-dist/tex/latex/cdpbundl/letteracdp.cls index ec49dbdb124..41411b3400f 100644 --- a/Master/texmf-dist/tex/latex/cdpbundl/letteracdp.cls +++ b/Master/texmf-dist/tex/latex/cdpbundl/letteracdp.cls @@ -9,7 +9,8 @@ %% This is a generated file. %% It is part of a work named "C.D.P. Bundle". %% -%% Copyright (C) 1999-2006 by Gustavo MEZZETTI <mezzetti@math.unipd.it>. +%% Copyright (C) 1999-2015 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 @@ -17,7 +18,7 @@ %% 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 2003/12/01 or later. +%% version 2005/12/01 or later. %% %% The C.D.P. Bundle has the LPPL maintenance status %% "author-maintained". @@ -29,7 +30,9 @@ %% %% 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 is not allowed. +%% License, and should be avoided. +%% +%% February 8, 2015 (vers. 0.36) %% %% \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 @@ -48,22 +51,22 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e}[1997/06/01] % LaTeX2e is required! \ProvidesClass{letteracdp} - [2006/01/01 v0.34 (**incomplete**)] -\typeout{Copyright (C) 1999-2006 by Gustavo MEZZETTI, + [2015/02/08 v0.36 (**incomplete**)] +\typeout{Copyright (C) 1999-2015 by Gustavo MEZZETTI, all rights reserved.} \@ifdefinable\@letteracdp{\def\@letteracdp{letteracdp}} \newcommand*\Coordinamento{% Coordinamento dei Dottorandi e dei Dottori di Ricerca - dell'Universit\`a di Padova% + dell'Universit{\char "E0} di Padova% } \newcommand*\CoordinamentoWWW{% http://www.dei.unipd.it/\string~assdott/% } -\DeclareFixedFont\@lh@nss{OT1}{cmss}{m}{n} {12} -\DeclareFixedFont\@lh@bss{OT1}{cmss}{m}{n} {17} -\DeclareFixedFont\@lh@rm {OT1}{cmr} {m}{n} {9} -\DeclareFixedFont\@lh@it {OT1}{cmr} {m}{it}{9} -\DeclareFixedFont\@lh@tt {OT1}{cmtt}{m}{n} {9} +\DeclareFixedFont\@lh@nss{T1}{cmss}{m}{n} {12} +\DeclareFixedFont\@lh@bss{T1}{cmss}{m}{n} {17} +\DeclareFixedFont\@lh@rm {T1}{cmr} {m}{n} {9} +\DeclareFixedFont\@lh@it {T1}{cmr} {m}{it}{9} +\DeclareFixedFont\@lh@tt {T1}{cmtt}{m}{n} {9} \newcommand\@ptsize{} %% A couple of useful things that are missing from the LaTeX kernel: \@ifdefinable\@newrigidlength{\def\@newrigidlength#1{% @@ -92,6 +95,8 @@ \@newrigidlength\addresseewidth \@newrigidlength\signatureindentation \@newrigidlength\signaturewidth +\@newrigidlength\signaturerulewidth +\setlength\signaturerulewidth{5cm} \@newrigidlength\foldedheight \setlength\foldedheight{-\maxdimen} \@newrigidlength\@folding@ht @@ -132,6 +137,9 @@ \@ifdefinable\startaddrlabel{} \@ifdefinable\stopaddrlabel{} \@ifdefinable\ifactuallabel{} +\@ifdefinable\ChosenMakeOpening{} +\@ifdefinable\ChosenMakeClosing{} +\@ifdefinable\ChosenMakeSignature{} \@ifdefinable\@lett@decl{\newtoks\@lett@decl} \def\do#1{\@ifdefinable#1{\let#1\@empty}} \do\thesenderaddress @@ -147,6 +155,7 @@ \do\@place \do\@begin@letter@hook \do\@end@letter@hook +\do\@begin@block@or@and@hook \def\do#1{\@ifdefinable#1{\let#1\@undefined}} \do\presubject \do\registered @@ -172,6 +181,8 @@ \def\do#1{\@ifdefinable#1{\newif#1}} \do\if@use@eepic@ \do\if@do@fold@ +\do\if@making@labels@ +\do\if@signature@rule@ \@ifdefinable\if@new@block@{ \def\@new@block@true {\global\let\if@new@block@\iftrue } \def\@new@block@false{\global\let\if@new@block@\iffalse} @@ -246,6 +257,8 @@ \DeclareOption{mediumsubject}{\let\@subject@style\mdseries} \DeclareOption{italicsignature}{\let\@signature@style\itshape} \DeclareOption{uprightsignature}{\let\@signature@style\upshape} +\DeclareOption{signaturerule}{\@signature@rule@true} +\DeclareOption{nosignaturerule}{\@signature@rule@false} \DeclareOption{usePS}{\@use@eepic@true} \DeclareOption{noPS}{\@use@eepic@false} \DeclareOption{smartindent}{\let\@indent@pref O} @@ -277,8 +290,11 @@ \setlength\addrlabelheight{37mm}% \setlength\addrlabelborder{6mm}% } -\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,% -mediumsubject,uprightsignature,noPS,indent,105x37labels} +\ExecuteOptions{% + a4paper,10pt,oneside,onecolumn,final,% + mediumsubject,uprightsignature,nosignaturerule,noPS,indent,% + 105x37labels% +} \ProcessOptions\relax \if@use@eepic@ \IfFileExists{eepic.sty}{% @@ -612,17 +628,28 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \if@do@fold@ \raisebox{\@lh@folding@ht}[\z@][\z@]{% \makebox[\z@][l]{% - \dimen@ -\@lh@right@margin - \advance\dimen@ 1cm% + \dimen@ \paperwidth + \advance \dimen@ -1in% + \advance \dimen@ -\oddsidemargin + \advance \dimen@ -\textwidth + \advance\dimen@ -1cm% \kern\dimen@ \vbox{% - \kern -.1\p@ - \hrule \@height .1\p@ \@depth .1\p@ \@width 5mm% - \kern -.1\p@ + \color@begingroup + \foldingtagrule + \color@endgroup }% }% }% \fi }} +\newcommand*\foldingtagrule{% + \kern -.1\p@ + \hrule \@height .1\p@ \@depth .1\p@ \@width 5mm% + \kern -.1\p@ +} +\@ifdefinable\CDPFactoryFoldingTagRule{ + \let \CDPFactoryFoldingTagRule = \foldingtagrule +} \savebox\@logo@box@base[\z@][r]{\setlength\unitlength{.625mm}% \begin{picture}(32,16)(-3,7.87)% \put(8,16){\oval(10,10)[l]}% @@ -692,6 +719,7 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \newcommand \location [1]{\def\thesenderlocation{#1}} \newcommand*\telephone[1]{\def\thesenderphone{#1}} \newcommand*\makelabels{% + \@making@labels@true \AtBeginDocument{% \def\@beginlabels{\begin{labels}}% \def\@beginlabelgroup{\begin{labelgroup}}% @@ -743,7 +771,7 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \@@par\addpenalty\z@ \clearpage \@end@letter@hook - \if@filesw + \if@filesw \if@making@labels@ \begingroup \let\\\relax \let ~\relax @@ -765,7 +793,7 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \string\@endlabelgroup }% \endgroup - \fi + \fi \fi } \@ifdefinable\x@baseletter{\long\def\x@baseletter[#1]#2{% \def\theaddresseename{#1}% @@ -910,6 +938,7 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \@ifdefinable\@block@everypar{\def\@block@everypar{% \@block@parshape \@block@@everypar + \@begin@block@or@and@hook }} \@ifdefinable\x@custom@block{\def\x@custom@block#1#2#3#4#5#6#7#8#9{% \@custom@block#1#4#5#6#8#9% @@ -919,13 +948,13 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \everypar{\@block@everypar}% \@@custom@block #7% }} -\@ifdefinable\y@custom@block{\def\y@custom@block#1#2#3#4#5#6#7#8{% - \@custom@block#1#3#4#5#7#8% +\@ifdefinable\y@custom@block{\def\y@custom@block#1#2#3#4#5#6#7#8#9{% + \@custom@block#1#4#5#6#8#9% \sbox\@labels{\normalfont\ignorespaces #2\unskip}% % We use \@labels to save a box register. \@block@inden\wd\@labels \ifdim\@block@inden>\z@ - \advance \@block@inden by \subjectnamegap \relax + \advance \@block@inden #3\relax \wd\@labels\@block@inden \fi \@block@width\textwidth \advance\@block@width -\@block@inden @@ -934,7 +963,7 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \box\@labels \@block@@everypar }% - \@@custom@block #6% + \@@custom@block #7% }} \@ifdefinable\@custom@block{\def\@custom@block#1#2#3#4#5#6{% \if@inlabel \indent \fi @@ -1076,7 +1105,7 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \@ifdefinable\@subject{\def\@subject#1#2{% \let\@empty@block\@empty \y@custom@block #1% - {#2}% + {#2}\subjectnamegap \abovesubjectvspace\z@skip\belowsubjectvspace \@b@subjpenalty\@M\@e@subjpenalty \let\presubject\@good@prsbj @@ -1183,9 +1212,8 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \advance\splittopskip\@below@folding@skip \advance\splittopskip\parskip \setbox\tw@\vsplit\z@ to\@folding@ht - \nointerlineskip - \box\tw@ - {\baselineskip\@above@folding@margin \nobreak\null}% + {\topskip\z@skip \box\tw@ + \baselineskip\@above@folding@margin \nobreak\null}% \penalty\@highpenalty \ifvoid\z@ \vskip\@below@folding@skip @@ -1300,6 +1328,9 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \@ifdefinable\@signatureenv{\def\@signatureenv#1{\par \let\@empty@block\@empty@signature \let\and\@block@nd + \if@signature@rule@ + \let \@begin@block@or@and@hook \@make@signature@rule + \fi \x@custom@block Y% \signatureindentation\signaturewidth #1#1\z@skip @@ -1308,6 +1339,7 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} }} \def\end@signatureenv{% \end@custom@block N% not "Y" for efficiency + \let \@begin@block@or@and@hook \@empty \addvspace\belowsignaturevspace } \newenvironment*{signatureenv}{% @@ -1316,6 +1348,7 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \end@signatureenv } \newenvironment*{signatureenv*}{% + \@signature@rule@false \@signatureenv\abovesignatureshortvspace }{% \end@signatureenv @@ -1346,6 +1379,16 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} }% }% } +\@ifdefinable\@make@signature@rule{\def\@make@signature@rule{% + \raisebox{\baselineskip}[0pt][0pt]{% + \signaturerule + }\\*[-\baselineskip]% +}} +\newcommand*\signaturerule{% + \makebox[\signaturerulewidth]{% + \leaders \hrule \@height .1\p@ \@depth .1\p@ \hfill + }% +} \newcommand*\makeopening{\par \@ifnextchar +{\@firstoftwo\y@mopening}\x@mopening } @@ -1381,18 +1424,26 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \@handwr@box\z@ \nobreak }} \newcommand*\opening{\par - \@ifnextchar +{% - \let\@cdp@reserved\y@mopening - \@firstoftwo\@opening - }{% - \let\@cdp@reserved\x@mopening - \@opening - }% + \@ifnextchar +{\@firstoftwo\y@opening}\x@opening +} +\newcommand*\y@opening[1][\@place]{% + \@opening \y@mopening {#1}% } -\newcommand*\@opening[1][\@place]{% +\newcommand*\x@opening[2][\@place]{% + \@opening{\x@mopening{#2}}{#1}% +} +\@ifdefinable\@opening{\def\@opening#1#2{% + \begingroup + \def\ChosenMakeOpening{#1}% + \OpeningSequence{#2}% + \global\dimen@i\parindent + \endgroup + \parindent\dimen@i +}} +\newcommand*\OpeningSequence[1]{% \makepresentation \maketopdate[#1]% - \@cdp@reserved + \ChosenMakeOpening } \newcommand*\makeclosing{\@par@stopbreaks \@ifnextchar +{\@firstoftwo\y@mclosing}\x@mclosing @@ -1407,18 +1458,31 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \@ifstar{% \@closing{\x@msignature *}% }{% - \@ifnextchar +{% - \@firstoftwo{\y@mclosing \y@msignature}% - }{% - \@ifnextchar -{% - \@firstoftwo{\@closing \y@msignature}% - }{% + \@ifnextchar +{\@firstoftwo{% + \@@closing \y@mclosing \y@msignature + }}{% + \@ifnextchar -{\@firstoftwo{% + \@closing \y@msignature + }}{% \@closing{\x@msignature {}}% }% }% }% } -\@ifdefinable\@closing{\def\@closing#1#2{\x@mclosing{#2}#1}} +\@ifdefinable\@closing{\def\@closing#1#2{% + \@@closing{\x@mclosing{#2}}{#1}% +}} +\@ifdefinable\@@closing{\def\@@closing#1#2{% + \begingroup + \def\ChosenMakeClosing{#1}% + \def\ChosenMakeSignature{#2}% + \ClosingSequence + \endgroup +}} +\newcommand*\ClosingSequence{% + \ChosenMakeClosing + \ChosenMakeSignature +} \@ifdefinable\@handwr@box{\def\@handwr@box#1{% \vskip .5\baselineskip \setbox\z@\vbox{% @@ -1427,12 +1491,16 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} \wd\z@\z@ \ht\z@\z@ \dp\z@\z@ \noindent\hspace*{#1}\box\z@\par \vskip .5\baselineskip\vskip\z@skip }} -\newcommand\@cc@encl[2]{\par - \noindent\parbox[t]{\textwidth}{% - \@hangfrom{\normalfont\@safe@space{#1}\enspace}% - \ignorespaces #2\strut - }\par -} +\@ifdefinable\@cc@encl{\long\def\@cc@encl#1#2{\par + \begingroup + \let\@empty@block\@empty + \y@custom@block N{#1}{.5em}% + \z@skip\z@skip\z@skip + \@M\z@\z@ + \ignorespaces #2% + \end@custom@block N% + \endgroup +}} \newcommand*\cc [1][\ccname] {\@cc@encl{#1}} \newcommand*\encl[1][\enclname]{\@cc@encl{#1}} \newenvironment{enclosures}[1][\enclname]{% @@ -1464,7 +1532,7 @@ mediumsubject,uprightsignature,noPS,indent,105x37labels} {\normalfont\@safe@space{#1}\enspace}\ignorespaces } \newcommand*\@PS@rubber[1][\PSname]{% - \@safe@space{#1}\space\ignorespaces + \@safe@space{#1}{\nobreak\space}\ignorespaces } \newcommand*\PS{% \ps\@ifstar{\@PS@rubber}{\@PS@rigid}% |