Remove hardcoded filepath

This commit is contained in:
Gandalf 2021-04-09 12:36:01 +02:00
parent 817c7b7e27
commit a3b295322c

View file

@ -11,6 +11,7 @@
\RequirePackage{graphicx} \RequirePackage{graphicx}
\newcommand\subscript{} \newcommand\subscript{}
\newcommand\autogramm{} \newcommand\autogramm{}
\newcommand\addressbookpath{}
\DeclareOption{subscript}{ \DeclareOption{subscript}{
\renewcommand{\subscript}{ \renewcommand{\subscript}{
@ -37,7 +38,7 @@
% \receive*{handle} % handle aus Adressen.csv % \receive*{handle} % handle aus Adressen.csv
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\receivestar}[1]{ \newcommand*{\receivestar}[1]{
\DTLloaddb{adressen}{/home/bernhardt/Entwicklung/Letterhead/Adressen/Adressen.csv} \DTLloaddb{adressen}{\addressbookpath/Letterhead/Adressen/Adressen.csv}
\DTLassignfirstmatch{adressen}{handle}{#1}{\Name=Name,\Adresse=Adresse,\FaxNr=FaxNr,\TelNr=TelNr,\Opening=Anrede,\Closing=Closing} \DTLassignfirstmatch{adressen}{handle}{#1}{\Name=Name,\Adresse=Adresse,\FaxNr=FaxNr,\TelNr=TelNr,\Opening=Anrede,\Closing=Closing}
\newcommand\FullAddress{\Name\\\Adresse\\per Fax: \FaxNr} \newcommand\FullAddress{\Name\\\Adresse\\per Fax: \FaxNr}
\ifthenelse{\equal{\Opening}{}}{\renewcommand\Opening{Damen und Herren}}{} \ifthenelse{\equal{\Opening}{}}{\renewcommand\Opening{Damen und Herren}}{}