Adapt numbering, font sizes and margins to resemble LaTeX template
This commit is contained in:
parent
1b69639706
commit
47bda56663
1 changed files with 8 additions and 6 deletions
14
lib.typ
14
lib.typ
|
|
@ -19,8 +19,9 @@
|
||||||
top: settings.page-margins.top,
|
top: settings.page-margins.top,
|
||||||
bottom: settings.page-margins.bottom
|
bottom: settings.page-margins.bottom
|
||||||
),
|
),
|
||||||
numbering: "I",
|
header-ascent: 2%,
|
||||||
number-align: center
|
numbering: "i",
|
||||||
|
number-align: right
|
||||||
)
|
)
|
||||||
counter(page).update(2)
|
counter(page).update(2)
|
||||||
|
|
||||||
|
|
@ -38,7 +39,8 @@
|
||||||
below: settings.headings-spacing.below,
|
below: settings.headings-spacing.below,
|
||||||
above: settings.headings-spacing.above
|
above: settings.headings-spacing.above
|
||||||
)
|
)
|
||||||
show heading: set text(font: settings.font-body, size: settings.font-heading-size)
|
show heading: set text(font: settings.font-heading)
|
||||||
|
show heading.where(level: 1): set text(font: settings.font-heading, size: settings.font-heading-size)
|
||||||
set heading(numbering: none)
|
set heading(numbering: none)
|
||||||
|
|
||||||
// Paragraphs
|
// Paragraphs
|
||||||
|
|
@ -169,7 +171,7 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
set page(
|
set page(
|
||||||
numbering: "1/1",
|
numbering: "1",
|
||||||
number-align: center,
|
number-align: center,
|
||||||
)
|
)
|
||||||
counter(page).update(1)
|
counter(page).update(1)
|
||||||
|
|
@ -193,7 +195,7 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
counter(heading).update(0)
|
counter(heading).update(0)
|
||||||
set heading(numbering: "A.1.", supplement: [Appendix])
|
set heading(numbering: "A.1", supplement: [Appendix])
|
||||||
show heading: it => {
|
show heading: it => {
|
||||||
let prefixed-numbering;
|
let prefixed-numbering;
|
||||||
if it.level == 1 and it.numbering != none {
|
if it.level == 1 and it.numbering != none {
|
||||||
|
|
@ -287,4 +289,4 @@
|
||||||
}).join())
|
}).join())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue