fix: reviewer field

This commit is contained in:
2026-02-24 14:46:05 +02:00
parent c97aaca839
commit d33c6f3145
3 changed files with 16 additions and 19 deletions

View File

@@ -18,7 +18,7 @@
// location, and email. Everything but but the `name` and `code` is optional. // location, and email. Everything but but the `name` and `code` is optional.
authors: (), authors: (),
advisors: (), advisors: (),
reviewer: (name: ""), reviewer: (title: "", name: ""),
// The paper's abstract. Can be omitted if you don't have one. // The paper's abstract. Can be omitted if you don't have one.
abstract: ( abstract: (
primary: ( primary: (
@@ -93,13 +93,11 @@
set math.equation(numbering: "(1)") set math.equation(numbering: "(1)")
show math.equation: set block(spacing: 0.65em) show math.equation: set block(spacing: 0.65em)
// Configure lists and terms. // Configure lists and terms.
set list(marker: ([], [--], [\*], [·])) set list(marker: ([], [--], [\*], [·]))
set enum(numbering: "1aiA)") set enum(numbering: "1aiA)")
set terms(separator: [ -- ]) set terms(separator: [ -- ])
// Headings // Headings
set heading(numbering: "1.1.") set heading(numbering: "1.1.")
show heading: set block(spacing: 0.65em * 2, sticky: true) show heading: set block(spacing: 0.65em * 2, sticky: true)
@@ -112,7 +110,6 @@
} }
} }
// Style bibliography. // Style bibliography.
set std.bibliography(title: "Izmantotā literatūra un avoti") set std.bibliography(title: "Izmantotā literatūra un avoti")
@@ -157,7 +154,6 @@
show figure.where(kind: "attachment"): set figure(numbering: "1.") show figure.where(kind: "attachment"): set figure(numbering: "1.")
show figure.where(kind: "attachment"): set figure.caption(separator: ". ") show figure.where(kind: "attachment"): set figure.caption(separator: ". ")
// Adapt supplement in caption independently from supplement used for references. // Adapt supplement in caption independently from supplement used for references.
show figure: fig => { show figure: fig => {
let numbers = numbering(fig.numbering, ..fig.counter.at(fig.location())) let numbers = numbering(fig.numbering, ..fig.counter.at(fig.location()))
@@ -173,7 +169,6 @@
fig fig
} }
// Custom show rule for references // Custom show rule for references
show ref: it => { show ref: it => {
let el = it.element let el = it.element
@@ -233,7 +228,6 @@
it it
} }
// Code blocks // Code blocks
show raw: set text( show raw: set text(
font: ( font: (
@@ -248,7 +242,6 @@
spacing: 100%, spacing: 100%,
) )
make-title( make-title(
title, title,
authors, authors,
@@ -264,7 +257,6 @@
// Start page numbering // Start page numbering
set page(numbering: "1", number-align: center) set page(numbering: "1", number-align: center)
// Display abstract and keywords. // Display abstract and keywords.
if abstract != none { if abstract != none {
make-abstract("primary", abstract.primary) make-abstract("primary", abstract.primary)

View File

@@ -127,16 +127,15 @@
#set par(spacing: 2em) #set par(spacing: 2em)
#thesis-type "*#title*" ir #thesis-type "*#title*" izstrādāts Latvijas Universitātes Eksakto zinātņu un
izstrādāts Latvijas Universitātes Eksakto zinātņu un tehnoloģiju fakultātē, tehnoloģiju fakultātē.
Datorikas nodaļā.
Ar savu parakstu apliecinu, ka darbs izstrādāts patstāvīgi, izmantoti tikai Ar savu parakstu apliecinu, ka darbs izstrādāts patstāvīgi, izmantoti tikai
tajā norādītie informācijas avoti un iesniegtā darba elektroniskā kopija tajā norādītie informācijas avoti un iesniegtā darba elektroniskā kopija
atbilst izdrukai un/vai recenzentam uzrādītajai darba versijai. atbilst izdrukai.
#set par(hanging-indent: 1cm) #set par(hanging-indent: 1cm)
#v(0.5fr) #v(0.2fr)
#if authors.len() > 1 { "Autori: " } else { "Autors: " } #if authors.len() > 1 { "Autori: " } else { "Autors: " }
#( #(
@@ -146,7 +145,7 @@
#v(1fr) #v(1fr)
Rekomendēju darbu aizstāvēšanai\ Rekomendēju darbu aizstāvēšanai\
#if advisors.len() > 0 [ #if advisors.len() > 0 [
Darba #if advisors.len() > 1 { "vadītāji:" } else { "vadītājs:" } #if advisors.len() > 1 { "Vadītāji:" } else { "Vadītājs:" }
#( #(
advisors.map(advisor => [*#advisor.title #advisor.name*]).join("\n") advisors.map(advisor => [*#advisor.title #advisor.name*]).join("\n")
) ~ #formatted-date ) ~ #formatted-date
@@ -154,12 +153,18 @@
#v(1fr) #v(1fr)
Recenzents: *#reviewer.name* #if reviewer != none {
[Recenzents: *#reviewer.title #reviewer.name*]
v(1fr)
}
Darbs iesniegts Datorikas nodaļā #formatted-date \
Pilnvarotā persona: vecākā metodiķe: Ārija Sproģe #line(length: 10%, stroke: 0.5pt)
#v(1fr) #v(1fr)
Darbs iesniegts #formatted-date \ Darbs aizstāvēts bakalaura gala pārbaudījuma komisijas sēdē
#thesis-type.replace("darbs", "darbu") pārbaudīja komisijas sekretārs (elektronisks paraksts)
#v(1fr) #v(1fr)
] ]

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "solo-lu-df" name = "solo-lu-df"
version = "1.0.0" version = "1.1.0"
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"