mirror of
https://github.com/kristoferssolo/LU-DF-Typst-Template.git
synced 2026-03-21 16:16:27 +00:00
Compare commits
3 Commits
65393fa204
...
78d374aaad
| Author | SHA1 | Date | |
|---|---|---|---|
| 78d374aaad | |||
| 8566c88f6a | |||
| 5a202257ba |
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
28
src/lib.typ
28
src/lib.typ
@@ -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,
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
place,
|
||||
logo,
|
||||
) = {
|
||||
set par(justify: false)
|
||||
align(
|
||||
center,
|
||||
upper(
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user