Add number format
This commit is contained in:
parent
cf66f2cf23
commit
5e53e2bf58
|
@ -0,0 +1,48 @@
|
|||
\ProvidesFile{silvaletter.lco}
|
||||
|
||||
% ---------------------------- Require packages ----------------------------
|
||||
\RequirePackage{xcolor}
|
||||
\RequirePackage[utf8]{inputenc}
|
||||
\RequirePackage[T1]{fontenc}
|
||||
\RequirePackage[german]{babel}
|
||||
\RequirePackage{fp}
|
||||
\RequirePackage{booktabs}
|
||||
\RequirePackage{ragged2e}
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage{fontspec}
|
||||
\RequirePackage{numprint}
|
||||
|
||||
% ---------------------------- Color definition ----------------------------
|
||||
\definecolor{dpsgblue}{HTML}{003056}
|
||||
|
||||
% ----------------------------- font settings ------------------------------
|
||||
\newfontfamily\arvo{Arvo}
|
||||
\addtokomafont{subject}{\arvo\large\color{dpsgblue}}
|
||||
|
||||
% -------------------------- Calculation of table --------------------------
|
||||
\gdef\TotalHT{0}
|
||||
\newcommand{\product}[2]{%
|
||||
#1 & \FPmul\temp{#2}{1}\FPround\temp{\temp}{2}\numprint[€]{\temp}
|
||||
%% Totalize
|
||||
\FPadd\total{\TotalHT}{\temp}%
|
||||
\FPround\total{\total}{2}%
|
||||
\global\let\TotalHT\total%
|
||||
\\ }
|
||||
\newcommand{\totalttc}{\numprint[€]{\TotalHT}
|
||||
}
|
||||
|
||||
% ---------------------------- Global variables ----------------------------
|
||||
\KOMAoptions{DIV=15, pagenumber=no, enlargefirstpage, firstfoot=false, foldmarks, fromlogo, fromemail, frommobilephone, fromurl, fromalign=right}
|
||||
\setlength{\parindent}{0pt}
|
||||
\setlength{\parskip}{10pt}
|
||||
\setkomavar{backaddressseparator}{ $\cdot$ }
|
||||
\setkomavar{fromname}[Stamm Silva]{DPSG Stamm Silva}
|
||||
\setkomavar{frommobilephone}{+49 176 70342420}
|
||||
\setkomavar{fromemail}{kasse@stamm-silva.de}
|
||||
\setkomavar{fromurl}{https://stamm-silva.de}
|
||||
\setkomavar{fromaddress}{Adolf-Kolping-Str 47}
|
||||
\setkomavar{place}{Solingen}
|
||||
\setkomavar{fromzipcode}{42719}
|
||||
\setkomavar{fromlogo}{\includegraphics[width=2cm]{logo.png}} % stammeslogo
|
||||
\renewcommand*{\raggedsignature}{\raggedright} % Signatur links ausrichten
|
||||
\setkomavar{signature}{} % Kein From unter Unterschriften-Feld
|
52
srclttr.tex
52
srclttr.tex
|
@ -1,55 +1,11 @@
|
|||
\documentclass[DIV=15,12pt,headheight=10pt,pagenumber=no,enlargefirstpage,firstfoot=false]{scrlttr2}
|
||||
\documentclass[silvaletter,12pt]{scrlttr2}
|
||||
|
||||
\usepackage{xcolor}
|
||||
\usepackage[utf8]{inputenc}
|
||||
% \usepackage[lf]{venturis}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[german]{babel}
|
||||
\usepackage{fp}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{ragged2e}
|
||||
\usepackage{graphicx}
|
||||
\newcounter{cnt}
|
||||
\usepackage{fontspec}
|
||||
\definecolor{dpsgblue}{HTML}{003056}
|
||||
|
||||
\newfontfamily\arvo{Arvo}
|
||||
\addtokomafont{subject}{\arvo\large\color{dpsgblue}}
|
||||
|
||||
% -------------------------- Calculation of table --------------------------
|
||||
\gdef\TotalHT{0}
|
||||
\newcommand{\product}[2]{%
|
||||
#1 & \FPmul\temp{#2}{1}\FPround\temp{\temp}{2}\temp
|
||||
%% Totalize
|
||||
\FPadd\total{\TotalHT}{\temp}%
|
||||
\FPround\total{\total}{2}%
|
||||
\global\let\TotalHT\total%
|
||||
\\ }
|
||||
\newcommand{\totalttc}{\TotalHT }
|
||||
|
||||
% ---------------------------- Global variables ----------------------------
|
||||
\KOMAoptions{foldmarks, fromlogo, fromemail, frommobilephone, fromurl, fromalign=right}
|
||||
\setlength{\parindent}{0pt}
|
||||
\setlength{\parskip}{10pt}
|
||||
\setkomavar{backaddressseparator}{ $\cdot$ }
|
||||
\setkomavar{fromname}[Stamm Silva]{DPSG Stamm Silva}
|
||||
\setkomavar{frommobilephone}{+49 176 70342420}
|
||||
\setkomavar{fromemail}{kasse@stamm-silva.de}
|
||||
\setkomavar{fromurl}{https://stamm-silva.de}
|
||||
\setkomavar{fromaddress}{Adolf-Kolping-Str 47}
|
||||
\setkomavar{place}{Solingen}
|
||||
\setkomavar{fromzipcode}{42719}
|
||||
\setkomavar{fromlogo}{\includegraphics[width=2cm]{logo.png}} % stammeslogo
|
||||
\renewcommand*{\raggedsignature}{\raggedright} % Signatur links ausrichten
|
||||
\setkomavar{signature}{} % Kein From unter Unterschriften-Feld
|
||||
|
||||
% ------------------------- Variable configuration -------------------------
|
||||
\setkomavar{subject}{Rechnung}
|
||||
|
||||
% -------------------------------- Document --------------------------------
|
||||
\begin{document}
|
||||
\begin{letter}{Familie Minisgallo\\Itterstr 3\\42719 Solingen}
|
||||
\sffamily
|
||||
\gdef\TotalHT{0}
|
||||
\opening{Liebe Familie Montag,}
|
||||
|
||||
Hiermit stellen wir Ihnen den aktuellen Mitgliedsbeitrag für den \usekomavar*{fromname} und die DPSG in Rechnung. Dieser setzt sich wie folgt zusammen:
|
||||
|
@ -60,11 +16,11 @@
|
|||
\product{Beitrag 2021 für Nils Montag}{50.00}
|
||||
\product{Beitrag 2021 für Nils Montag}{50.00}
|
||||
\hline
|
||||
\textbf{Gesamt} & \textbf{\totalttc} \\
|
||||
\textbf{Gesamt} & \textbf{\numprint[€]{\TotalHT}} \\
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
|
||||
Somit bitten wir Sie, den ausstehenden Betrag von \totalttc € bis zum 33.3.2019 auf folgendes Konto zu überweisen:
|
||||
Somit bitten wir Sie, den ausstehenden Betrag von \totalttc bis zum 33.3.2019 auf folgendes Konto zu überweisen:
|
||||
|
||||
\begin{tabular}{ll}
|
||||
Kontoinhaber: & DPSG Stamm Silva \\
|
||||
|
|
Loading…
Reference in New Issue