Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
% TABLE CUSTOMIZATION
%--------------------------------
\usepackage{spreadtab}
\usepackage{xfp}
\usepackage{siunitx}
\usepackage[compact]{titlesec} % For customizing title sections
\titlespacing*{\section}{0pt}{3pt}{-7pt} % Remove margin bottom from the title
\usepackage{arydshln} % For the dotted line on the table
Expand Down Expand Up @@ -118,10 +120,10 @@ \section*{\textsc{Invoice} \textsc{\#$invoice-nr$}}
\footnotesize
\newcounter{pos}
\setcounter{pos}{0}
\STautoround*{2} % Get spreadtab to always display the decimal part
$if(commasep)$\STsetdecimalsep{,}$endif$ % Use comma as decimal separator
\def\STprintnum#1{\num[round-mode = places, round-precision = 2, minimum-decimal-digits = 2]{#1}}

\begin{spreadtab}{{tabular}[t t t]{lp{8.2cm}r}}
\begin{spreadtab}[autoround=2]{{tabular}[t t t]{lp{8.2cm}r}}
\hdashline[1pt/1pt]
@ \noalign{\vskip 2mm} \textbf{Pos.} & @ \textbf{Description} & @ \textbf{Prices in $currency$} \\ \hline
$for(service)$ @ \noalign{\vskip 2mm} \refstepcounter{pos} \thepos
Expand Down