style: use consistent 2 space indentation

This commit is contained in:
JustAnyone committed 2026-10-15 00:21:18 +03:00
1 parent f8a747e6b3
commit 71b83ab97f
2 files changed
+30 -22

No files matched your search

+16 -10
View File
@@ -56,33 +56,39 @@
if not namesFirst {
(role, name) = (name, role)
}
(align(center)[
(
align(center)[
#set block(below: 8pt)
#block[#name]
#block[#role]
], [])
],
[],
)
}
))
} else {
align(alignment, table(
columns: (198.5pt, 56.7pt),
table.header(
[], [],
),
table.header([], []),
..for author in authors {
let (name, role) = author
name = [*#name*]
if not namesFirst {
(role, name) = (name, role)
}
(align(left)[
(
align(left)[
#set block(below: 8pt)
#block[#name]
#block[#role]
], [], [], [])
}
],
[],
[],
[],
)
},
))
}
}
@@ -169,7 +175,7 @@
} else {
ktu-author-table(authors: authors, namesFirst: authorNamesFirst)
}
align(center+bottom, block([*#place, #year*]))
align(center + bottom, block([*#place, #year*]))
}
#let ktu-heading-page-centered(
@@ -232,7 +238,7 @@
ktu-title-header-block(
subHeaders: (faculty, author),
bigTitle: projectTitle,
subTitles: ("Akademinio sąžiningumo deklaracija",)
subTitles: ("Akademinio sąžiningumo deklaracija",),
)
v(20pt)
[
+14 -12
View File
@@ -26,13 +26,13 @@
/**
* Paruošta pagal "Rašto ..."
*/
*/
/*
* Further reading required:
* - Double line spacing | https://github.com/typst/typst/issues/106
* - Proposal: change `leading` option to `line-height` | https://github.com/typst/typst/issues/4224
*/
*/
#let __METADATA_HEADING_ALIGN_LEFT = metadata("heading-align-left");
@@ -69,8 +69,7 @@
let s = str(rounded)
let parts = s.split(".")
let integer-part = parts.at(0)
let decimal-part = if parts.len() == 2 { parts.at(1) } else { ""}
let decimal-part = if parts.len() == 2 { parts.at(1) } else { "" }
let padded-decimal = if decimals > 0 {
let current-decimal-length = decimal-part.len()
@@ -101,7 +100,7 @@
depth: none,
indent: 0em, // Disable the default outline indenting
target: heading,
title: auto
title: auto,
) = {
// TODO: įtrauka
set block(spacing: 0em)
@@ -228,7 +227,7 @@
depth: none,
indent: 0em, // Disable the default outline indenting
target: heading,
title: auto
title: auto,
) = {
__ktu_outline(depth: depth, indent: indent, target: target, title: title)
}
@@ -281,8 +280,8 @@
left: 30mm,
right: 10mm,
bottom: 20mm,
top: 20mm
)
top: 20mm,
),
)
set page(width: 595pt, height: 842pt)
@@ -325,7 +324,7 @@
font: "Times New Roman",
uppercaseSectionTitles: false,
unnumberedHeadingAlignment: center,
body
body,
) = {
show: __page_rules.with(font: font)
@@ -365,7 +364,11 @@
// Antraštė be nr.
if it.numbering == none {
// Centruota lygiuotė by default, but can be overridden by the user
let explicitlyAlignLeft = it.body.has("children") and it.body.children.len() > 1 and it.body.children.at(1) == __METADATA_HEADING_ALIGN_LEFT
let explicitlyAlignLeft = (
it.body.has("children")
and it.body.children.len() > 1
and it.body.children.at(1) == __METADATA_HEADING_ALIGN_LEFT
)
// If the user explicitly set alignLeft to true, we should align left regardless of the global setting
let targetAlign = if explicitlyAlignLeft { left } else { unnumberedHeadingAlignment }
@@ -379,7 +382,6 @@
}
}
// Skyrius
if it.numbering != none and it.level == 1 {
// abipusė lygiuotė
@@ -453,7 +455,7 @@
// but some modules may require them
uppercaseSectionTitles: false,
unnumberedHeadingAlignment: center,
body
body,
) = context {
show: setup-page.with(
font: font,