Manpreet Pangli
Manpreet Pangli

Reputation: 11

Setting the Decimal Separator in Latex invoice package

The figure shows as 12500.00 - I want it to show as 12,500.00. Any ideas? I also want the £ sign to show before in total column as £12,500.00

\documentclass{letter}
\usepackage{graphicx}
\usepackage{invoice}


\renewcommand{\$}{\pounds}



\date{\today}

\begin{document}
\begin{letter}{ Banana}


\opening{\underline Sent }

\begin{invoice}{Sterling}{0}
\caption{Baby Limited}
  \ProjectTitle{77 }%
  \Fee{Full Quarter; 25 June - 29 September 2022} { 625} {20}



\end{invoice}


\end{letter}
\end{document}

Upvotes: 1

Views: 351

Answers (2)

kilo
kilo

Reputation: 549

Chapter 8.2 of the user manual suggests using comma as a package option:

\documentclass[10pt]{ltxdoc}
\usepackage{german}
\usepackage[german,comma]{invoice}

That worked for me.

Upvotes: 0

The invoice package internally used the siunitx package. This means you can specify a group separator like this:

\documentclass{letter}
\usepackage{graphicx}
\usepackage{invoice}


\renewcommand{\$}{\pounds}

\sisetup{group-separator = {,}}




\date{\today}

\begin{document}
\begin{letter}{ Banana}


\opening{\underline Sent }

\begin{invoice}{Sterling}{0}
\caption{Baby Limited}
  \ProjectTitle{77 }%
  \Fee{Full Quarter; 25 June - 29 September 2022} { 625} {20}



\end{invoice}


\end{letter}
\end{document}

Upvotes: 0

Related Questions