Compare commits

...

3 Commits

9 changed files with 26 additions and 17 deletions

View File

@@ -48,7 +48,7 @@ function in a show rule. If you want to change an existing project to use this
template, you can add a show rule like this at the top of your file:
```typst
#import "@preview/solo-lu-df:1.1.0": *
#import "@preview/solo-lu-df:1.1.1": *
#show: ludf.with(
title: "Darba Nosaukums",

View File

@@ -1,4 +1,4 @@
#import "@preview/solo-lu-df:1.1.0": *
#import "@preview/solo-lu-df:1.1.1": *
#show: ludf.with(
title: "Bakalaura Darba Nosaukums",

View File

@@ -1,4 +1,4 @@
#import "@preview/solo-lu-df:1.1.0": *
#import "@preview/solo-lu-df:1.1.1": *
#show: ludf.with(
title: "Kursa Darba Nosaukums",

View File

@@ -1,4 +1,4 @@
#import "@preview/solo-lu-df:1.1.0": *
#import "@preview/solo-lu-df:1.1.1": *
#show: ludf.with(
title: "Maģistra Darba Nosaukums",

View File

@@ -1,5 +1,5 @@
#import "@preview/fletcher:0.5.8" as fletcher: diagram, edge, node
#import "@preview/solo-lu-df:1.1.0": *
#import "@preview/solo-lu-df:1.1.1": *
#import "utils/diagrams.typ": data-store, dpd-database, dpd-edge, process
#import "utils/tables.typ": function-table

View File

@@ -293,18 +293,26 @@
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 {
make-documentary-page(
if type(title) == content {
title
.fields()
.values()
.at(0)
.filter(it => it.func() != linebreak and it != [ ])
.join(" ")
} else {
title
},
title-text,
authors,
advisors,
reviewer,

View File

@@ -63,6 +63,7 @@
place,
logo,
) = {
set par(justify: false)
align(
center,
upper(

View File

@@ -1,4 +1,4 @@
#import "@preview/solo-lu-df:1.1.0": *
#import "@preview/solo-lu-df:1.1.1": *
#show: ludf.with(
title: "Darba Nosaukums",

View File

@@ -1,6 +1,6 @@
[package]
name = "solo-lu-df"
version = "1.1.0"
version = "1.1.1"
entrypoint = "src/lib.typ"
authors = ["Kristofers Solo <dev@kristofers.xyz>"]
license = "MIT-0"