mirror of
https://github.com/kristoferssolo/LU-DF-Typst-Template.git
synced 2026-03-22 00:26:23 +00:00
Compare commits
1 Commits
main
...
78d374aaad
| Author | SHA1 | Date | |
|---|---|---|---|
| 78d374aaad |
28
src/lib.typ
28
src/lib.typ
@@ -293,18 +293,26 @@
|
|||||||
|
|
||||||
make-attachments(attachment-title, attachments)
|
make-attachments(attachment-title, attachments)
|
||||||
|
|
||||||
|
let title-text = if type(title) == content {
|
||||||
|
title
|
||||||
|
.fields()
|
||||||
|
.children
|
||||||
|
.filter(it => it.func() != linebreak)
|
||||||
|
.fold((), (acc, it) => {
|
||||||
|
if it == [ ] and acc.last() == [ ] {
|
||||||
|
acc
|
||||||
|
} else {
|
||||||
|
acc + (it,)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.join("")
|
||||||
|
} else {
|
||||||
|
title
|
||||||
|
}
|
||||||
|
|
||||||
if display-documentary {
|
if display-documentary {
|
||||||
make-documentary-page(
|
make-documentary-page(
|
||||||
if type(title) == content {
|
title-text,
|
||||||
title
|
|
||||||
.fields()
|
|
||||||
.values()
|
|
||||||
.at(0)
|
|
||||||
.filter(it => it.func() != linebreak and it != [ ])
|
|
||||||
.join(" ")
|
|
||||||
} else {
|
|
||||||
title
|
|
||||||
},
|
|
||||||
authors,
|
authors,
|
||||||
advisors,
|
advisors,
|
||||||
reviewer,
|
reviewer,
|
||||||
|
|||||||
Reference in New Issue
Block a user