-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpresets.typ
More file actions
54 lines (49 loc) · 1.3 KB
/
Copy pathpresets.typ
File metadata and controls
54 lines (49 loc) · 1.3 KB
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
/// Classic Presets
#let classic(body) = {
show <cyclesubtitle>: it => [#h(0.5em) #text(
size: 10em/11
)[#it]]
show <poemsubtitle-incycle>: it => [#h(0.25em) #text(
style: "italic",
size: 10em/11
)[#it]]
show <inline-poemtitle>: it => [#text(
)[#smallcaps(it)]]
show <dedication>: it => [#h(-0.5em) #text(
style: "italic",
size: 8em/11
)[#it]]
show <interjection>: it => [#h(-0.5em) #text(
style: "italic",
size: 9em/11
)[#smallcaps(all:true, it)]]
show <verse-number>: set text(
size: 8em/11,
number-type: "lining")
body}
// classic
#let preset-classic(body) = {
show <poemtitle>: it => [#text(
size: 14em/11,
number-type: "old-style",
number-width: "proportional"
)[#smallcaps(it)]]
show <cycletitle>: it => [#text(
size: 14em/11,
number-type: "old-style",
number-width: "proportional"
)[#smallcaps(it)]]
show <poemtitle-incycle>: it =>[#text(
size: 12em/11,
number-type: "old-style",
number-width: "proportional"
)[#smallcaps(all: true, it)]]
show: classic
body}
// classic-headings
#let preset-classic-headings(body) = {
show <poemtitle>: it => box(heading(level: 2, it))
show <cycletitle>: it => box(heading(level: 2, it))
show <poemtitle-incycle>: it => box(heading(level: 3, it))
show: classic
body}