This commit is contained in:
Philipp Lang 2023-07-18 11:21:56 +02:00
parent fff5a48d89
commit 409cbaf463
1 changed files with 7 additions and 5 deletions

View File

@ -9,26 +9,27 @@
\RequirePackage{booktabs} \RequirePackage{booktabs}
\RequirePackage{ragged2e} \RequirePackage{ragged2e}
\RequirePackage{graphicx} \RequirePackage{graphicx}
\RequirePackage{fontspec}
\RequirePackage{numprint} \RequirePackage{numprint}
\RequirePackage[gen]{eurosym}
\RequirePackage[condensed,math]{kurier}
% ---------------------------- Color definition ---------------------------- % ---------------------------- Color definition ----------------------------
\definecolor{dpsgblue}{HTML}{003056} \definecolor{dpsgblue}{HTML}{003056}
% ----------------------------- font settings ------------------------------ % ----------------------------- font settings ------------------------------
\newfontfamily\arvo{Arvo} \addtokomafont{subject}{\large\color{dpsgblue}}
\addtokomafont{subject}{\arvo\large\color{dpsgblue}}
% -------------------------- Calculation of table -------------------------- % -------------------------- Calculation of table --------------------------
\gdef\TotalHT{0} \gdef\TotalHT{0}
\newcommand{\product}[2]{% \newcommand{\product}[2]{%
#1 & \FPmul\temp{#2}{1}\FPround\temp{\temp}{2}\numprint[]{\temp} #1 & \FPmul\temp{#2}{1}\FPround\temp{\temp}{2}\numprint[\euro]{\temp}
%% Totalize %% Totalize
\FPadd\total{\TotalHT}{\temp}% \FPadd\total{\TotalHT}{\temp}%
\FPround\total{\total}{2}% \FPround\total{\total}{2}%
\global\let\TotalHT\total% \global\let\TotalHT\total%
\\ } \\ }
\newcommand{\totalttc}{\numprint[]{\TotalHT} \newcommand{\totalttc}{\numprint[\euro]{\TotalHT}
} }
% ---------------------------- Global variables ---------------------------- % ---------------------------- Global variables ----------------------------
@ -46,3 +47,4 @@
\setkomavar{fromlogo}{\includegraphics[width=2cm]{logo.png}} % stammeslogo \setkomavar{fromlogo}{\includegraphics[width=2cm]{logo.png}} % stammeslogo
\renewcommand*{\raggedsignature}{\raggedright} % Signatur links ausrichten \renewcommand*{\raggedsignature}{\raggedright} % Signatur links ausrichten
\setkomavar{signature}{} % Kein From unter Unterschriften-Feld \setkomavar{signature}{} % Kein From unter Unterschriften-Feld