Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .example-vars.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
\setcounter{invoiceNo}{101}
\newcommand{\balance}{137.50}
\newcommand{\duein}{15}% days
\newcommand{\me}{Your~Name}
\newcommand{\myCompany}{Your Biz}
\newcommand\myNo{+1~(555)~555-5555}
\newcommand\myEmail{you@example.com}
\newcommand\myAddress{
1234 Sycamore Ave \\
Blacksburg, VA 24060
}
\newcommand\projectID{\#123.456}% Can be empty

\newcommand{\clientName}{Sample~Client}
\newcommand\clientContact{Jane Smith}
\newcommand\clientContactNo{+1~(555)~555-5555}
\newcommand\clientContactEmail{jane@example.com}


\newcommand\clientAddress{
123 Street Address \\
City, State 55555
}

\setmetadata{\me}{Your Biz}{\arabic{invoiceNo}}{\clientName}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vars.tex
*.aux
*.log
*.out
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
REPORT = example
SHOW = $(REPORT)

$(REPORT).pdf: $(REPORT).tex dapper-invoice.cls
$(REPORT).pdf: vars.tex $(REPORT).tex dapper-invoice.cls

default: pdf

pdf: $(REPORT:%=%.pdf)
vars.tex:
cp .example-vars.tex vars.tex

pdf: vars.tex $(REPORT:%=%.pdf)

.tex.pdf:
xelatex $* && xelatex $*
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ A billable-time invoice featuring style over substance.
#### Using TeX Live Locally

```
make vars.tex # so you can add your details
cp example.tex your-invoice-101.tex
# make some changes to your-invoice-101.tex
make your-invoice-101.pdf
Expand Down
35 changes: 16 additions & 19 deletions example.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,30 @@
%\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}
\newcounter{invoiceNo}
\input{vars.tex}

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

\begin{document}

\newfontface\mainLightItalic{OpenSans-LightItalic}
\makeheader{Your\ \mainLightItalic Biz}{\invoiceNo}
\makeheader{\myCompany}{\arabic{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}
\infoSub{\tiny\faEnvelope}{\small\slshape \emaillink{client@example.com}}
\clientAddress
}
\ifdefempty{\projectID}{}{%
\infoBox{Project}{\projectID}%
}
\infoBox{Contact}{\clientContact}
\ifdefempty{\clientContactNo}{}{%
\infoSub{\faMobilePhone}{\small\slshape \clientContactNo}
}
\infoSub{\tiny\faEnvelope}{\small\slshape \emaillink{\clientContactEmail}}
\noalign{\addvspace{8ex}}
\infoBox{}{
{\large\raisebox{.55\height}\currencysym\huge\formatcurrency{\balance} \arrowbase} \\
Expand All @@ -39,11 +37,10 @@
\begin{infoSection}
\infoBox{\arrowtarget Payable To}{
\me \\
1234 Sycamore Ave \\
Blacksburg, VA 24060
\myAddress
}
\infoSub{\faMobilePhone}{\small\slshape +1~(555)~555-5555}
\infoSub{\tiny\faEnvelope}{\small\slshape \emaillink{you@example.com}}
\infoSub{\faMobilePhone}{\small\slshape \myNo}
\infoSub{\tiny\faEnvelope}{\small\slshape \emaillink{\myEmail}}
\end{infoSection}
}

Expand Down