From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/frletter/README | 11 +++++ macros/latex/contrib/frletter/frletter.cls | 76 ++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 macros/latex/contrib/frletter/README create mode 100644 macros/latex/contrib/frletter/frletter.cls (limited to 'macros/latex/contrib/frletter') diff --git a/macros/latex/contrib/frletter/README b/macros/latex/contrib/frletter/README new file mode 100644 index 0000000000..c1e894f199 --- /dev/null +++ b/macros/latex/contrib/frletter/README @@ -0,0 +1,11 @@ +frletter + +A small class for typesetting letters in France; no assumption is made +about the language used. It represents a cosmetically modified beletter +class, which itself is based on the letter class. Corresponding layout +files were contributed on the Lyx Wiki. + +The authors of the original beletter class are James Kilfiger and +Frank Lenaerts. The contributor of frletter is Liviu Andronic. + +The license is Public Domain. \ No newline at end of file diff --git a/macros/latex/contrib/frletter/frletter.cls b/macros/latex/contrib/frletter/frletter.cls new file mode 100644 index 0000000000..dabb33efce --- /dev/null +++ b/macros/latex/contrib/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 -- cgit v1.2.3