项目作者: mkropat

项目描述 :
A billable-time invoice featuring style over substance
高级语言: TeX
项目地址: git://github.com/mkropat/dapper-invoice.git
创建时间: 2015-04-11T15:43:54Z
项目社区:https://github.com/mkropat/dapper-invoice

开源协议:MIT License

下载


dapper-invoice

A billable-time invoice featuring style over substance.

Example Screenshot

Pre-Requisites

  • TeX Live
  • TeX xetex (siunitx.sty)
  • TeX science (fontawesome.sty)

— or —

— or —

Generating an Invoice

Using TeX Live Locally

  1. cp example.tex your-invoice-101.tex
  2. # make some changes to your-invoice-101.tex
  3. make your-invoice-101.pdf

Your invoice will be created as your-invoice-101.pdf

Using Vagrant

  1. cp example.tex your-invoice-101.tex
  2. vagrant up # this may take a while the first time
  3. vagrant ssh -c 'cd /vagrant; make REPORT=your-invoice-101 watch'

Now whenever you make changes to your-invoice-101.tex on your host machine,
the watcher inside the VM will automatically build your-invoice-101.pdf,
which will be saved back to the host machine.

When finished editing, input Control-C to stop the
watcher, then run:

  1. vagrant halt

Using Docker

Use Docker Hub’s blang/latex image that comes with a matching .sh file.
When you first run this .sh file, it will pull the docker image that includes
all of the latex dependencies.

  1. wget https://raw.githubusercontent.com/blang/latex-docker/master/latexdockercmd.sh
  2. chmod +x latexdockercmd.sh
  3. ./latexdockercmd.sh # will pull down image on first use

Then, you can use the .sh file as you would xelatex:

  1. cp example.tex your-invoice-101.tex
  2. latexdockercmd.sh xelatex [options] your-invoice-101.tex

You invoice will be created as your-invoice-101.pdf

Documentation

See example.tex and dapper-invoice.cls for details.

Inspiration

I am not a designer. Inspiration for the design comes from
borrowing design ideas from good looking invoices people have published
on the
net
. The
resulting design is not even in the same league, but I think it gets the job
done.

I am also not a LaTeX author. The code borrows heavily from the
moderncv package (which I can’t recommend
enough), as well as numerous other packages.

Licensing

The code I have written I release under the MIT license.

Two different font packages are included in the repo for convenience:

  • OpenSans (Apache License v2.00)
  • Font Awesome (SIL OFL 1.1)