feat!: bump version to 0.1.0

fix: adjust templates
style: reformat lib.typ w/ 120 column width
This commit is contained in:
2025-03-13 12:37:58 +02:00
parent 429f632841
commit 41dcbeb1ec
5 changed files with 17 additions and 26 deletions

View File

@ -29,11 +29,11 @@ This template:
### As a local typst package ### As a local typst package
1. Clone this repository into ~/.local/share/typst/packages/: 1. Clone this repository into ~/.local/share/typst/packages/:
```bash ```bash
git clone https://gitea.linerds.us/pencelheimer/typst_nure_template.git ~/.local/share/typst/packages/local/nure/0.0.0 git clone https://gitea.linerds.us/pencelheimer/typst_nure_template.git ~/.local/share/typst/packages/local/nure/0.1.0
``` ```
2. Init your project with Typst: 2. Init your project with Typst:
```bash ```bash
typst init @local/nure:0.0.0 project-name typst init @local/nure:0.1.0 project-name
``` ```
### As a standalone file ### As a standalone file
@ -42,7 +42,7 @@ Copy `lib.typ` to your project's root directory.
### In your project ### In your project
```typst ```typst
// Import the template either from a local package... // Import the template either from a local package...
#import "@local/nure:0.0.0": * #import "@local/nure:0.1.0": *
// ...or by importing a lib.typ directly // ...or by importing a lib.typ directly
// #import "/lib.typ": * // #import "/lib.typ": *

19
lib.typ
View File

@ -403,9 +403,7 @@
grid( grid(
columns: (1fr, 1fr, 1fr), columns: (1fr, 1fr, 1fr),
gutter: 0.3fr, gutter: 0.3fr,
[#bold[Курс] #uline(2)], [#bold[Курс] #uline(2)], [#bold[Група] #uline(author.group)], [#bold[Семестр] #uline(3)],
[#bold[Група] #uline(author.group)],
[#bold[Семестр] #uline(3)],
) )
linebreak() linebreak()
@ -526,21 +524,17 @@
#{ #{
let keywords = abstract.keywords.map(upper) let keywords = abstract.keywords.map(upper)
let is_cyrillic = word => word let is_cyrillic = word => word.split("").any(char => ("А" <= char and char <= "я"))
.split("")
.any(char => ("А" <= char and char <= "я"))
let n = keywords.len() let n = keywords.len()
for i in range(n) { for i in range(n) {
for j in range(0, n - i - 1) { for j in range(0, n - i - 1) {
if ( if (
( (
not is_cyrillic(keywords.at(j)) not is_cyrillic(keywords.at(j)) and is_cyrillic(keywords.at(j + 1))
and is_cyrillic(keywords.at(j + 1))
) )
or ( or (
is_cyrillic(keywords.at(j)) == is_cyrillic(keywords.at(j + 1)) is_cyrillic(keywords.at(j)) == is_cyrillic(keywords.at(j + 1)) and keywords.at(j) > keywords.at(j + 1)
and keywords.at(j) > keywords.at(j + 1)
) )
) { ) {
(keywords.at(j), keywords.at(j + 1)) = ( (keywords.at(j), keywords.at(j + 1)) = (
@ -617,10 +611,7 @@
} }
context { context {
for (i, citation) in query(ref.where(element: none)) for (i, citation) in query(ref.where(element: none)).map(r => str(r.target)).dedup().enumerate() {
.map(r => str(r.target))
.dedup()
.enumerate() {
enum.item( enum.item(
i + 1, i + 1,
format-entry(bib_data.at(citation)), format-entry(bib_data.at(citation)),

View File

@ -9,9 +9,9 @@
) )
#let mentors = ( #let mentors = (
(name: "Черепанова Ю. Ю.", gender: "f", degree: "Ст. викл. каф. ПІ"), (name: "Черепанова Ю. Ю.", degree: "Ст. викл. каф. ПІ"),
(name: "Русакова Н. Є.", gender: "f", degree: "Доц. каф. ПІ"), (name: "Русакова Н. Є.", degree: "Доц. каф. ПІ"),
(name: "Широкопетлєва М. С.", gender: "f", degree: "Ст. викл. каф. ПІ"), (name: "Широкопетлєва М. С.", degree: "Ст. викл. каф. ПІ"),
) )
#let task_list = ( #let task_list = (

View File

@ -1,10 +1,11 @@
#import "@local/nure:0.0.0": * #import "@local/nure:0.1.0": *
#show: pz-lb-template.with( #show: pz-lb-template.with(
doctype: "ЛБ", doctype: "ЛБ",
edu_program_short: "ПЗПІ", edu_program: "ПЗПІ",
subject: "БД",
worknumber: 1,
title: "Інформаційна система «Помічник класного керівника». Керування класом", title: "Інформаційна система «Помічник класного керівника». Керування класом",
subject_short: "БД",
authors: ( authors: (
( (
name: "Ситник Є. С.", name: "Ситник Є. С.",
@ -15,9 +16,8 @@
), ),
), ),
mentors: ( mentors: (
(name: "Черепанова Ю. Ю.", gender: "f", degree: "Ст. викл. каф. ПІ"), (name: "Черепанова Ю. Ю.", degree: "Ст. викл. каф. ПІ", gender: "f"),
), ),
worknumber: 1,
) )
#v(-spacing) #v(-spacing)

View File

@ -1,6 +1,6 @@
[package] [package]
name = "nure" name = "nure"
version = "0.0.0" version = "0.1.0"
entrypoint = "lib.typ" entrypoint = "lib.typ"
authors = ["linerds"] authors = ["linerds"]
license = "GPL-3.0" license = "GPL-3.0"