summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/frletter
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-10-27 22:34:44 +0000
committerKarl Berry <karl@freefriends.org>2007-10-27 22:34:44 +0000
commitc50f7c0b7ef200b045c62e90ba3ae906526d2217 (patch)
tree7c1240d9b21afb722c461129287c1a09ed276adc /Master/texmf-dist/tex/latex/frletter
parent5f36236ae77fcebdefe7984ffc9e1ad9b9bfc04e (diff)
new package frletter (27oct07)
git-svn-id: svn://tug.org/texlive/trunk@5290 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/frletter')
-rw-r--r--Master/texmf-dist/tex/latex/frletter/frletter.cls76
1 files changed, 76 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/frletter/frletter.cls b/Master/texmf-dist/tex/latex/frletter/frletter.cls
new file mode 100644
index 00000000000..dabb33efcea
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/frletter/frletter.cls
@@ -0,0 +1,76 @@
+%%%%%%%%%% frletter.cls %%%%%%%%%%
+% The original beletter class is in the public domain. So is frletter.
+%
+% This code is unsupported, and comes with no warranty.
+% The original beletter class was written by James Kilfiger and Frank Lenaerts,
+% to meet the specifications for formatting Belgium letters recommended by
+% Frank's wife.
+% It can be used in place of the standard LaTeX class
+%
+% The frletter class was contributed by Liviu Andronic. It tries to hack further
+% the letter class and make it conform to the French typesetting conventions.
+% The frletter class consists of cosmetical modifications applied to the
+% beletter class, according to what I understand as French conventions for
+% writing letters. Please consider that I am neither a French native, nor a
+% LaTeX expert.
+%
+% You will also find layout files for both beletter and frletter classes on the Lyx
+% Wiki. Both are ugly hacks inputting the letter layout, but they work and I'm OK
+% with it. There you will also find corresponding Lyx templates.
+%
+% If you are on the look for a class trully specialized on typesetting French
+% letters, check the lettre class developed by Denis Mégevand from the
+% Observatoire de Genève. There is no corresponding Lyx layout (not to the best
+% of my knowledge).
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{frletter}[22/10/2007 French Letter Class]
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}}
+\ProcessOptions\relax
+\LoadClass{letter}
+% changed the opening
+\renewcommand*{\opening}[1]{%
+ \thispagestyle{firstpage}%
+ \ifx\@empty\fromaddress
+ \else %if there is a from address
+ \noindent\begin{tabular}[t]{@{}l@{}}%
+ \fromaddress
+ \end{tabular}\par%
+ \fi
+%% My trial and error on the "send to address"; seems to work
+ {\raggedleft\begin{tabular}{l@{}}\ignorespaces
+ \toname\\ \toaddress \\*[2\parskip]%
+ \@date \end{tabular}\par}%
+ \vspace{2\parskip}%
+ #1\par\nobreak
+ \vspace{2\parskip}%
+}
+
+%%% Change these!!, or let babel change them for you.
+%%% Consider using \usepackage[francais]{babel} in the LaTeX Preamble
+\renewcommand*{\ccname}{cc}
+\renewcommand*{\enclname}{}
+\renewcommand*{\pagename}{}
+\renewcommand*{\headtoname}{}
+
+% reverted to the original letter closing;
+% uncomment the following lines to use the beletter closing style
+%\renewcommand{\closing}[1]{\par\nobreak\vspace{\parskip}%
+% \stopbreaks
+% \vspace{2\parskip}%
+% \vspace{2\parskip}%
+% \noindent
+% \ifx\@empty\fromaddress\else
+% \hspace*{\longindentation}\fi
+% \parbox{\indentedwidth}{\raggedright
+% \ignorespaces #1\\[6\medskipamount]%
+% \ifx\@empty\fromsig
+% \fromname
+% \else \fromsig \fi\strut}%
+% \par}
+
+\renewcommand*{\cc}[1]{%
+ \par\noindent
+ \parbox[t]{\textwidth}{%
+ \@hangfrom{\normalfont\ccname}%
+ \ignorespaces #1\strut}\par}
+\endinput