mirror of
https://github.com/kristoferssolo/LU-DF-Typst-Template.git
synced 2025-12-31 13:42:35 +00:00
fix(documentary-page): linebreak in title
This commit is contained in:
parent
8c1c86f712
commit
6f44f1b0d8
26
src/lib.typ
26
src/lib.typ
@ -1,5 +1,8 @@
|
|||||||
#import "utils.typ": (
|
#import "utils.typ": (
|
||||||
make-abstract, make-attachments, make-documentary-page, make-title,
|
make-abstract,
|
||||||
|
make-attachments,
|
||||||
|
make-documentary-page,
|
||||||
|
make-title,
|
||||||
)
|
)
|
||||||
|
|
||||||
#let indent = 1cm
|
#let indent = 1cm
|
||||||
@ -120,12 +123,16 @@
|
|||||||
it
|
it
|
||||||
}
|
}
|
||||||
|
|
||||||
set figure(numbering: it => {
|
set figure(
|
||||||
|
numbering: it => {
|
||||||
let count = counter(heading).get()
|
let count = counter(heading).get()
|
||||||
numbering("1.1.", count.first(), it)
|
numbering("1.1.", count.first(), it)
|
||||||
})
|
},
|
||||||
|
)
|
||||||
|
|
||||||
show figure: set block(breakable: true) // allow for tables to span to next pages mid sentence
|
show figure: set block(
|
||||||
|
breakable: true,
|
||||||
|
) // allow for tables to span to next pages mid sentence
|
||||||
show figure: set par(justify: false) // disable justify for figures (tables)
|
show figure: set par(justify: false) // disable justify for figures (tables)
|
||||||
show figure.caption: set align(end)
|
show figure.caption: set align(end)
|
||||||
show table.cell.where(y: 0): strong
|
show table.cell.where(y: 0): strong
|
||||||
@ -279,7 +286,16 @@
|
|||||||
make-attachments(attachment-title, attachments)
|
make-attachments(attachment-title, attachments)
|
||||||
|
|
||||||
make-documentary-page(
|
make-documentary-page(
|
||||||
title,
|
if type(title) == content {
|
||||||
|
title
|
||||||
|
.fields()
|
||||||
|
.values()
|
||||||
|
.at(0)
|
||||||
|
.filter(it => it.func() != linebreak and it != [ ])
|
||||||
|
.join(" ")
|
||||||
|
} else {
|
||||||
|
title
|
||||||
|
},
|
||||||
authors,
|
authors,
|
||||||
advisors,
|
advisors,
|
||||||
reviewer,
|
reviewer,
|
||||||
|
|||||||
@ -60,14 +60,31 @@
|
|||||||
place,
|
place,
|
||||||
logo,
|
logo,
|
||||||
) = {
|
) = {
|
||||||
align(center, upper(text(size: 14pt, [
|
align(
|
||||||
|
center,
|
||||||
|
upper(
|
||||||
|
text(
|
||||||
|
size: 14pt,
|
||||||
|
[
|
||||||
#university\
|
#university\
|
||||||
#faculty
|
#faculty
|
||||||
])))
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
v(1fr)
|
v(1fr)
|
||||||
|
|
||||||
align(center, upper(text(16pt, weight: "bold", title)))
|
align(
|
||||||
|
center,
|
||||||
|
upper(
|
||||||
|
text(
|
||||||
|
16pt,
|
||||||
|
weight: "bold",
|
||||||
|
title,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
v(0.2fr)
|
v(0.2fr)
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "solo-lu-df"
|
name = "solo-lu-df"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
entrypoint = "src/lib.typ"
|
entrypoint = "src/lib.typ"
|
||||||
authors = ["Kristofers Solo <dev@kristofers.xyz>"]
|
authors = ["Kristofers Solo <dev@kristofers.xyz>"]
|
||||||
license = "MIT"
|
license = "MIT-0"
|
||||||
description = "Write qualification papers, bachelor’s theses, and master’s theses for University of Latvia, Computer Science programme."
|
description = "Write qualification papers, bachelor’s theses, and master’s theses for University of Latvia, Computer Science programme."
|
||||||
repository = "https://github.com/kristoferssolo/LU-DF-Typst-Template"
|
repository = "https://github.com/kristoferssolo/LU-DF-Typst-Template"
|
||||||
keywords = [
|
keywords = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user