About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account
Latest news 2024-12-13: Ebook sale (12th December 2024 – 1st January 2025): cybercrime fiction short stories Unsocial Media and Smile for the Camera free; crime fiction short story The Briefcase free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99.

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