Sunday, 1 November 2009

Invoices in LaTeX Part One

If you're like me and enjoy a beautifully typeset document, you may be a user of LaTeX. I also dabble in web development and like to invoice clients occasionally -- and for this I found the invoice package by Oliver Corff. Titus Barik has a nice brief example though no PDF of the LaTeX example. So building on Titus's example, here is the rendered PDF from that example (using Koma Script's `scrlttr2' which typesets letters "better" than LaTeX `letter'). I wasn't that happy about the way the invoice table is rendered using the usual LaTeX tabular environment with \hline's, and set about making use of booktabs instead. By replacing \hline's with \toprule, \midrule and \bottomrule we get a slightly better looking invoice (download the PDF to see the difference). Part two we'll look at how to improve on the invoice package further.

No comments:

Post a Comment