-
Notifications
You must be signed in to change notification settings - Fork 0
/
business.typ
97 lines (89 loc) · 1.82 KB
/
business.typ
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
95
96
97
#let business_template(doc) = {
set page(
paper: "a4",
margin: (x: 18mm, y: 10mm),
)
set text(
font: "Minion 3",
size: 11pt,
)
set heading(numbering: none)
set par(justify: true)
show heading: smallcaps
show heading: this => [
#set text(weight: "regular", size: 14pt)
#smallcaps(this.body)
#v(-4mm)
#line(length: 100%)
#v(-1mm)
]
//show link: underline
// actual content
doc
}
#let header(
small: false,
name: "John Doe",
location: "",
mobile: "",
email: "",
website: "",
avatar: "",
avatarSize: 25mm,
) = {
if small [
#align(center, [#text(size: 20pt)[#name] #v(-15pt)])
#grid(
columns: (1fr, 1fr, 1fr),
align(left)[
#if mobile != "" [#link("tel:" + mobile) \ ]
],
align(center)[
#if email != "" [#link("mailto:" + email) \ ]
],
align(right)[
#if location != "" [#location \ ]
],
)
] else [
#place(
top + center,
align(center, [#text(size: 20pt)[#name]]),
)
#grid(
columns: (1fr, avatarSize),
align(left)[
#if location != "" [#location \ ]
#if mobile != "" [#link("tel:" + mobile) \ ]
#if email != "" [#link("mailto:" + email) \ ]
#if website != "" [#link(website) \ ]
],
align(right)[
#if avatar != "" [
#box(
clip: true,
radius: avatarSize / 2,
width: avatarSize,
height: avatarSize,
image(avatar, width: avatarSize, height: avatarSize),
)
]
],
)
]
}
#let entry(
organization,
role,
location,
dateBegin,
dateEnd,
achievements,
) = {
text(weight: "bold")[#organization #h(1fr) #location \ ]
text(style: "italic")[#role #h(1fr) #dateBegin -- #dateEnd \ ]
v(-2mm)
par[
#achievements
]
}