-
Notifications
You must be signed in to change notification settings - Fork 1
/
helper.typ
71 lines (57 loc) · 1.45 KB
/
helper.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
#let hrule() = [#line(length: 100%, stroke: (paint: luma(60%)))]
#let poezie(doc) = [
#set align(center)
#set footnote.entry(
separator: align(left)[#line(length: 30%, stroke: 0.5pt)]
)
#show footnote.entry: it => [
#set align(left)
#it
]
#doc
]
#let dilo(nazev, tag, autor, preklad, obdobi, zeme, vydani, druh, zanr) = [
#counter(footnote).update(0)
#set par(justify: false)
#block(
fill: luma(230),
inset: 6pt,
radius: 4pt,
width: 100%,
[#columns(3, gutter: 7pt)[
#heading(level: 3, nazev) #label(tag)
Autor: #strong(autor) \
#if preklad != "" [
Překlad: #emph(preklad)
]
#colbreak()
Období: #strong(obdobi) \
Země: #strong(zeme)
#colbreak()
Rok vydání: #strong(vydani) \
L. druh: #strong(druh) \
L. žánr: #strong(zanr)
]])
]
#let autor(jmeno, narozen, zemrel, povolani, vystudoval, smer, foto) = [
#counter(footnote).update(0)
#set par(justify: false)
#block(
fill: luma(230),
inset: 8pt,
radius: 4pt,
width: 100%,
[#columns(3, gutter: 5pt)[
#strong(jmeno) \
#sym.star.op #narozen #h(0.6em) #if zemrel != "" [#sym.dagger #zemrel]
Směr: #strong(smer)
#colbreak()
#strong(povolani)
studoval *#vystudoval*
#colbreak()
#align(center, image(foto, height: 3.5cm))
]])
]
#let replika(jmeno, repl) = (
[#align(right)[#smallcaps(jmeno)]], [#h(1em) #repl #v(.4em)]
)