mirror of
https://github.com/kristoferssolo/LU-DF-Typst-Template.git
synced 2026-03-22 00:26:23 +00:00
Compare commits
3 Commits
65393fa204
...
v1.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
| c0f765374a | |||
| 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:
|
template, you can add a show rule like this at the top of your file:
|
||||||
|
|
||||||
```typst
|
```typst
|
||||||
#import "@preview/solo-lu-df:1.1.0": *
|
#import "@preview/solo-lu-df:1.1.1": *
|
||||||
|
|
||||||
#show: ludf.with(
|
#show: ludf.with(
|
||||||
title: "Darba Nosaukums",
|
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(
|
#show: ludf.with(
|
||||||
title: "Bakalaura Darba Nosaukums",
|
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(
|
#show: ludf.with(
|
||||||
title: "Kursa Darba Nosaukums",
|
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(
|
#show: ludf.with(
|
||||||
title: "Maģistra Darba Nosaukums",
|
title: "Maģistra Darba Nosaukums",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#import "@preview/fletcher:0.5.8" as fletcher: diagram, edge, node
|
#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/diagrams.typ": data-store, dpd-database, dpd-edge, process
|
||||||
#import "utils/tables.typ": function-table
|
#import "utils/tables.typ": function-table
|
||||||
|
|
||||||
|
|||||||
24
src/lib.typ
24
src/lib.typ
@@ -293,18 +293,26 @@
|
|||||||
|
|
||||||
make-attachments(attachment-title, attachments)
|
make-attachments(attachment-title, attachments)
|
||||||
|
|
||||||
if display-documentary {
|
let title-text = if type(title) == content and "children" in title.fields() {
|
||||||
make-documentary-page(
|
|
||||||
if type(title) == content {
|
|
||||||
title
|
title
|
||||||
.fields()
|
.fields()
|
||||||
.values()
|
.children
|
||||||
.at(0)
|
.filter(it => it.func() != linebreak)
|
||||||
.filter(it => it.func() != linebreak and it != [ ])
|
.fold((), (acc, it) => {
|
||||||
.join(" ")
|
if it == [ ] and acc.last() == [ ] {
|
||||||
|
acc
|
||||||
|
} else {
|
||||||
|
acc + (it,)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.join("")
|
||||||
} else {
|
} else {
|
||||||
title
|
title
|
||||||
},
|
}
|
||||||
|
|
||||||
|
if display-documentary {
|
||||||
|
make-documentary-page(
|
||||||
|
title-text,
|
||||||
authors,
|
authors,
|
||||||
advisors,
|
advisors,
|
||||||
reviewer,
|
reviewer,
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
place,
|
place,
|
||||||
logo,
|
logo,
|
||||||
) = {
|
) = {
|
||||||
|
set par(justify: false)
|
||||||
align(
|
align(
|
||||||
center,
|
center,
|
||||||
upper(
|
upper(
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#import "@preview/solo-lu-df:1.1.0": *
|
#import "@preview/solo-lu-df:1.1.1": *
|
||||||
|
|
||||||
#show: ludf.with(
|
#show: ludf.with(
|
||||||
title: "Darba Nosaukums",
|
title: "Darba Nosaukums",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "solo-lu-df"
|
name = "solo-lu-df"
|
||||||
version = "1.1.0"
|
version = "1.1.1"
|
||||||
entrypoint = "src/lib.typ"
|
entrypoint = "src/lib.typ"
|
||||||
authors = ["Kristofers Solo <dev@kristofers.xyz>"]
|
authors = ["Kristofers Solo <dev@kristofers.xyz>"]
|
||||||
license = "MIT-0"
|
license = "MIT-0"
|
||||||
|
|||||||
Reference in New Issue
Block a user