mirror of
https://github.com/JustAnyones/ktu-paper.git
synced 2026-09-19 12:48:27 +00:00
feat: support specifying custom font
This commit is contained in:
+4
-4
@@ -361,7 +361,7 @@
|
||||
body
|
||||
}
|
||||
|
||||
#let __page_rules(body) = {
|
||||
#let __page_rules(font: "Times New Roman", body) = {
|
||||
// Page size and margins
|
||||
set page(
|
||||
paper: "a4",
|
||||
@@ -390,7 +390,7 @@
|
||||
|
||||
// Set text font
|
||||
set text(
|
||||
font: "Times New Roman",
|
||||
font: font,
|
||||
size: 12pt,
|
||||
lang: "lt",
|
||||
// Change where the bounding box is drawn for the text
|
||||
@@ -411,8 +411,8 @@
|
||||
body
|
||||
}
|
||||
|
||||
#let setup-page(body) = {
|
||||
show: __page_rules.with()
|
||||
#let setup-page(font: "Times New Roman", body) = {
|
||||
show: __page_rules.with(font: font)
|
||||
|
||||
// Pagal formaliuosius rašto darbų reikalavimus
|
||||
|
||||
|
||||
Reference in New Issue
Block a user