summaryrefslogtreecommitdiff
path: root/example.tex
blob: 0330cf7790b0e3b1106212b37c3f1fea9dca7887 (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
\documentclass[letterpaper]{dapper-invoice}
%\documentclass[letterpaper,currency=dollar]{dapper-invoice}
%\documentclass[letterpaper,currency=euro]{dapper-invoice}
%\documentclass[letterpaper,currency=pound]{dapper-invoice}

\newcommand{\invoiceNo}{101}
\newcommand{\balance}{137.50}
\newcommand{\duein}{15}% days

\newcommand{\me}{Your~Name}
\newcommand{\clientName}{Sample~Client}

\setmetadata{\me}{Your Biz}{\invoiceNo}{\clientName}

\defaultfontfeatures{ Path = ./Fonts/ }
\usepackage{fontawesome}

\begin{document}

\newfontface\mainLightItalic{OpenSans-LightItalic}
\makeheader{Your\ \mainLightItalic Biz}{\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{}{
            {\large\raisebox{.55\height}\currencysym\huge\formatcurrency{\balance} \arrowbase} \\
            {\small\color{subduedColor} due \duedate{\duein}}
        }
    \end{infoSection}
}{
    \begin{infoSection}
        \infoBox{\arrowtarget Payable To}{
            \me \\
            1234 Sycamore Ave \\
            Blacksburg, VA 24060
        }
        \infoSub{\faMobilePhone}{\small\slshape +1~(555)~555-5555}
        \infoSub{\tiny\faEnvelope}{\small\slshape \emaillink{you@example.com}}
    \end{infoSection}
}

\drawarrow

\addvspace{4ex}

\begin{hoursItemizationWithProject}

    \lineitemp{2015/4/11}{2}{50}{Invoice}{
        \item Discussed requirements with client}

    \lineitemp{2015/4/11}{1.25}{50}{Invoice}{
        \item Wrote Invoice in LaTeX}

    \lineitemp{2015/4/11}{0.5}{50}{Invoice}{
        \item Packaged Invoice in .cls file}

    \beginsummary

    \summaryline{Total}{\currencysym\formatcurrency{\InvoiceTotal}}

    \summaryline{Paid}{\currencysym\formatcurrency{50}}
    \summaryline{Balance Due}{\currencysym\formatcurrency{\balance}} % not really any math support (yet)

\end{hoursItemizationWithProject}

\end{document}