Revision f0c0698b
Von Marei Peischl vor fast 5 Jahren hinzugefügt
kiviletter.sty | ||
---|---|---|
1 | 1 |
\NeedsTeXFormat{LaTeX2e} |
2 | 2 |
\ProvidesPackage{kiviletter}[2019/10/10 Letter Layouts for Kivitendo] |
3 | 3 |
|
4 |
\newif\if@kivi@infobox |
|
5 |
\DeclareOption{reffields}{\@kivi@infoboxfalse} |
|
6 |
\DeclareOption{infobox}{\@kivi@infoboxtrue} |
|
7 |
\@kivi@infoboxtrue |
|
8 |
|
|
9 |
|
|
10 |
\ProcessOptions\relax |
|
11 |
|
|
12 |
|
|
4 | 13 |
\RequirePackage{expl3} |
5 | 14 |
\RequirePackage{iftex} |
6 | 15 |
% Schriftart, Eingabelayout der Tastatur |
... | ... | |
89 | 98 |
|
90 | 99 |
\ExplSyntaxOff |
91 | 100 |
|
92 |
|
|
101 |
\if@kivi@infobox |
|
93 | 102 |
\setkomavar{location}{ |
94 | 103 |
\begin{flushright} |
95 | 104 |
\bfseries |
96 | 105 |
\LARGE |
97 | 106 |
\usekomavar{title} |
98 |
% \angebot |
|
99 |
% \par |
|
100 |
% \medskip |
|
101 |
% \large\nr ~<%quonumber%> |
|
102 | 107 |
\end{flushright} |
103 | 108 |
|
104 | 109 |
\medskip |
105 | 110 |
\begin{tabularx}{\linewidth}{@{}l<{:}>{\raggedright\arraybackslash}X@{}} |
106 |
\datum&\usekomavar{date}\\%%<%transdate%>\\
|
|
107 |
\kundennummer&\usekomavar{customer}\\%<%customernumber%>\\
|
|
108 |
\ansprechpartner&\usekomavar{fromname}\\%<%employee_name%>\\
|
|
109 |
\textTelefon&\usekomavar{fromphone}\\%<%employee_tel%>\\
|
|
110 |
\textEmail&\usekomavar{fromemail}\\%<%employee_email%>
|
|
111 |
\datum&\usekomavar{date}\\ |
|
112 |
\kundennummer&\usekomavar{customer}\\ |
|
113 |
\ansprechpartner&\usekomavar{fromname}\\ |
|
114 |
\ifkomavarempty{fromphone}{\textTelefon&\usekomavar{fromphone}\\}
|
|
115 |
\ifkomavarempty{fromemail}{\textEmail&\usekomavar{fromemail}\\}
|
|
111 | 116 |
\end{tabularx} |
112 | 117 |
} |
118 |
\removereffields |
|
119 |
\fi |
|
113 | 120 |
|
114 | 121 |
|
115 | 122 |
\renewcommand*{\raggedsignature}{\raggedright} |
Auch abrufbar als: Unified diff
infobox option