Compare commits

...

2 Commits

Author SHA1 Message Date
41dcbeb1ec feat!: bump version to 0.1.0
fix: adjust templates
style: reformat lib.typ w/ 120 column width
2025-03-13 12:37:58 +02:00
429f632841 fix!: remove unnecessary gender key in cw_template
fix: add more subjects
docs: unify comments with pz_lb_template
2025-03-13 12:35:12 +02:00
5 changed files with 18 additions and 15 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": *

View File

@ -4,11 +4,14 @@
/// subject abbreviations to full names /// subject abbreviations to full names
#let subjects = ( #let subjects = (
"БД": "Бази даних", "БД": "Бази даних",
"ОТК": "Основи теорії кіл", "БЖД": "Безпека життєдіяльності",
"ОІМ": "Основи IP-мереж",
"ОПНJ": "Основи програмування на Java", "ОПНJ": "Основи програмування на Java",
"ОС": "Операційні системи", "ОС": "Операційні системи",
"ОТК": "Основи теорії кіл",
"ПП": "Проектний практикум", "ПП": "Проектний практикум",
"СПМ": "Скриптові мови програмування", "СПМ": "Скриптові мови програмування",
"УФМ": "Українське фахове мовлення",
"Ф": "Філософія", "Ф": "Філософія",
"ФІЗ": "Фізика", "ФІЗ": "Фізика",
) )
@ -268,8 +271,8 @@
/// - doc (content): Content to apply the template to. /// - doc (content): Content to apply the template to.
/// - title (str): Title of the document. /// - title (str): Title of the document.
/// - subject (str): Subject short name. /// - subject (str): Subject short name.
/// - authors ((name: str, full_name_gen: str, variant: int, group: str, gender: str),): List of Authors dicts. /// - authors ((name: str, full_name_gen: str, variant: int, group: str, gender: str),): List of authors.
/// - mentors ((name: str, gender: str, degree: str),): List of mentors dicts. /// - mentors ((name: str, degree: str),): List of mentors.
/// - edu_program (str): Education program shorthand. /// - edu_program (str): Education program shorthand.
/// - task_list (done_date: datetime, initial_date: datetime, source: (content | str), content: (content | str), graphics: (content | str)): Task list object. /// - task_list (done_date: datetime, initial_date: datetime, source: (content | str), content: (content | str), graphics: (content | str)): Task list object.
/// - calendar_plan ( plan_table: (content | str), approval_date: datetime): Calendar plan object. /// - calendar_plan ( plan_table: (content | str), approval_date: datetime): Calendar plan object.

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"