-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
template.qmd
94 lines (91 loc) · 2.83 KB
/
template.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
title: Consulting 2023
description: 2023/01/01 -- 2023/12/31
logo: none
sender:
name: Firstname LASTNAME
email: [email protected]
address:
street: 123 Rue de la Paix
zip: 75000
city: Paris
country: France
registration: 123 456 789
vat: FR1234567890
exempted: "Exempted from VAT (article 259-1 du CGI, France)."
invoice:
number: 2023-001
issued: 2024-01-01
due: 2024-01-31
reference: abcd1234
fee: 2.28
penalty: €40
bank:
bic: AZERTYUI
iban: FR12 1234 4567 7890 1234 5678 901
recipient:
name: Company, Inc.
address:
street: 123 Main Street
zip: 12345
city: New York
state: NY
country: United States
format:
invoice-typst:
lang: en_UK
papersize: a4
margin:
x: 2.5cm
y: 2.5cm
brand:
typography:
fonts:
- family: Alegreya Sans
source: google
weight: [400, 700]
style: [normal, italic]
base:
family: "Alegreya Sans"
size: 12pt
headings:
color: dodgerblue
---
<!--
Currently hard to get the right style for the table in markdown.
+-----------------------------------+-----+------------+-------+-----------------+
| Details | Qty | Unit price | VAT % | Total excl. VAT |
+===================================+=====+============+=======+=================+
| **A very important deliverable** | 1 | €12,345.67 | 0% | €12,345.67 |
| *A description of the tasks* | | | | |
+-----------------------------------+-----+------------+-------+-----------------+
| |
+-----------------------------------+------------------+-------------------------+
| | Total excl. VAT | €12,345.67 |
+-----------------------------------+------------------+-------------------------+
| | VAT | €0.00 |
+-----------------------------------+------------------+-------------------------+
| | Total | €12,345.67 |
+-----------------------------------+------------------+-------------------------+
-->
```{=typst}
#table(
columns: (1fr, auto, auto, auto, auto),
rows: 36pt,
fill: (col, row) =>
if (row == 0 and col in (0, 1, 2, 3, 4, 5)) or (row == 5 and col in (2, 3, 4, 5)) {
luma(240)
} else {
white
},
inset: 5pt,
align: horizon,
stroke: none,
[*Details*], [*Qty*], [*Unit price*], [*VAT %*], [*Total excl. VAT*],
[*A very important deliverable* \ _A description of the tasks_], [1], [€12,345.67], [0 %], [€12,345.67],
[], [], [], [], [],
[], [], [*Total excl. VAT*], [], [€12,345.67],
[], [], [*VAT*], [], [€0.00],
[], [], [*Total*], [], [€12,345.67]
)
```