About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account

Exercise 13: Creating an Invoice for a Customer using invoice.sty (Solution)

This is a solution to the easy part of Exercise 13. I've used the letter class file for my solution and used an empty \opening{} to ensure the recipient's address is displayed.

\documentclass[12pt]{letter}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}

\usepackage[a4paper]{geometry}
\usepackage[british]{babel}

\usepackage{invoice}

\renewcommand*{\Fees}{Products}
\renewcommand*{\UnitRate}{Price}
\renewcommand*{\Count}{Quantity}
\renewcommand*{\Activity}{Product}

\begin{document}

\begin{letter}{Jos\'e Arara\\Nenhuma Rua\\S\~ao Paulo\\123457\\Brazil}
  \opening{}

  \begin{invoice}{\pounds}{0}
   \ProjectTitle{Book Order}%
   \Fee{`Duck and Goose': an allegory for modern times?
   (hardback)}{59.99}{1}%
   \Fee{My Friend is a Duck (paperback)}{14.99}{20}%
   \Fee{Annotated Notes on the `Duck and Goose' chronicles
   (ebook)}{8.99}{1}%
   \EBC{Postage and Packaging}{20.00}%
   \Discount{Promotion}{2.50}%
  \end{invoice}

\end{letter}

\end{document}

Download invoice-easy.tex or invoice-easy.pdf.

© 2015 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs