blob: d86f2edbaeafcf7187303a44bf7990518d4e1ef4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
%\documentclass[letterpaper]{dapper-invoice}
\documentclass[letterpaper,currency=dollar]{dapper-invoice}
%\documentclass[letterpaper,currency=euro]{dapper-invoice}
%\documentclass[letterpaper,currency=pound]{dapper-invoice}
%\documentclass[letterpaper,currency=btc]{dapper-invoice}
%\documentclass[letterpaper,currency=ltc]{dapper-invoice}
%\documentclass[letterpaper,currency=doge]{dapper-invoice}
\newcommand{\invoiceNo}{1001}
\newcommand{\balance}{137.50}
\newcommand{\duein}{14}% days
\newcommand{\me}{David~McMackins}
\newcommand{\clientName}{Sample~Client}
\setmetadata{\me}{Delwink, LLC}{\invoiceNo}{\clientName}
\defaultfontfeatures{ Path = ./Fonts/ }
\usepackage{fontawesome}
\usepackage{graphicx}
\begin{document}
\newfontface\mainLightItalic{OpenSans-LightItalic}
\makeheader{\includegraphics[width=8cm]{delwinkr}}{\invoiceNo}
\twocolumnlayout{
\begin{infoSection}
\infoBox{Client}{\clientName \\
123 Street Address \\
City, State 55555 }
\infoBox{Project}{\#123.456}
\infoBox{Contact}{Jane Smith}
\infoSub{\faMobilePhone}{\small\slshape +1~(555)~555-5555}
\noalign{\addvspace{8ex}}
\infoBox{}{
{\huge\formatcurrency{\balance} \arrowbase} \\
{\small\color{subduedColor} due \duedate{\duein}}
}
\end{infoSection}
}{
\begin{infoSection}
\infoBox{\arrowtarget Payable To}{
\me \\
2000 My Dr \\
City, ST 00000
}
\infoSub{\faMobilePhone}{\small\slshape +1~(800)~335-9465}
\infoSub{\tiny\faEnvelope}{\small\slshape \emaillink{sales@delwink.com}}
\end{infoSection}
}
\drawarrow
\addvspace{4ex}
\begin{qtyItemization}
\lineitem{2015/4/11}{2}{50}{Discussed requirements with client}
\lineitem{2015/4/11}{1.25}{50}{Wrote Invoice in LaTeX}
\lineitem{2015/4/11}{0.5}{50}{Packaged Invoice in .cls file}
\beginsummary
\summaryline{Total}{\formatcurrency{\InvoiceTotal}}
\summaryline{Paid}{\formatcurrency{50}}
\summaryline{Balance Due}{\formatcurrency{\balance}} % not really any math support (yet)
\end{qtyItemization}
\end{document}
|