#+TITLE: Invoice #001 #+OPTIONS: H:2 num:nil toc:nil #+LaTeX_CLASS: article #+LaTeX_CLASS_OPTIONS: [a4paper,table] #+LaTeX_HEADER: \usepackage{tabu} #+LaTeX_HEADER: \taburulecolor{gray} * Items #+ATTR_LaTeX: :environment tabu :align lXlrlrrl #+name: items | | <35> | | | | | | | | Title of job | Description | Type | Rate | | Quantity | Sub-total | | |--------------+-------------------------------------+-------+------+--------+----------+-----------+------| | Consultancy | Quote template | Timed | 400 | \EUR/d | 6.5 | 2600.00 | \EUR | |--------------+-------------------------------------+-------+------+--------+----------+-----------+------| | Research | Billing invoice template | Timed | 400 | \EUR/d | 10.0 | 4000.00 | \EUR | #+TBLFM: $7=$6*400;%.2f * Amount Due #+latex: \hfill\colorbox{yellow}{\begin{minipage}{7.5cm} #+ATTR_LaTeX: :environment tabu :align Xrl #+name: total | /Sub-total/ | 6600.00 | \EUR | |------------+---------+------| | /Tax @ 21%/ | 1386.00 | \EUR | |------------+---------+------| | *Amount Due* | 7986.00 | *\EUR* | #+TBLFM: @1$2=vsum(remote(items,@address@hidden));%.2f::@address@hidden;%.2f::@3$2=vsum(@address@hidden);%.2f #+latex: \end{minipage}}