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