forked from pencelheimer/typst_nure_template
Compare commits
2 Commits
b3214e2150
...
41dcbeb1ec
Author | SHA1 | Date | |
---|---|---|---|
41dcbeb1ec | |||
429f632841 |
@ -29,11 +29,11 @@ This template:
|
||||
### As a local typst package
|
||||
1. Clone this repository into ~/.local/share/typst/packages/:
|
||||
```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:
|
||||
```bash
|
||||
typst init @local/nure:0.0.0 project-name
|
||||
typst init @local/nure:0.1.0 project-name
|
||||
```
|
||||
|
||||
### As a standalone file
|
||||
@ -42,7 +42,7 @@ Copy `lib.typ` to your project's root directory.
|
||||
### In your project
|
||||
```typst
|
||||
// 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
|
||||
// #import "/lib.typ": *
|
||||
|
||||
|
9
lib.typ
9
lib.typ
@ -4,11 +4,14 @@
|
||||
/// subject abbreviations to full names
|
||||
#let subjects = (
|
||||
"БД": "Бази даних",
|
||||
"ОТК": "Основи теорії кіл",
|
||||
"БЖД": "Безпека життєдіяльності",
|
||||
"ОІМ": "Основи IP-мереж",
|
||||
"ОПНJ": "Основи програмування на Java",
|
||||
"ОС": "Операційні системи",
|
||||
"ОТК": "Основи теорії кіл",
|
||||
"ПП": "Проектний практикум",
|
||||
"СПМ": "Скриптові мови програмування",
|
||||
"УФМ": "Українське фахове мовлення",
|
||||
"Ф": "Філософія",
|
||||
"ФІЗ": "Фізика",
|
||||
)
|
||||
@ -268,8 +271,8 @@
|
||||
/// - doc (content): Content to apply the template to.
|
||||
/// - title (str): Title of the document.
|
||||
/// - subject (str): Subject short name.
|
||||
/// - authors ((name: str, full_name_gen: str, variant: int, group: str, gender: str),): List of Authors dicts.
|
||||
/// - mentors ((name: str, gender: str, degree: str),): List of mentors dicts.
|
||||
/// - authors ((name: str, full_name_gen: str, variant: int, group: str, gender: str),): List of authors.
|
||||
/// - mentors ((name: str, degree: str),): List of mentors.
|
||||
/// - 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.
|
||||
/// - calendar_plan ( plan_table: (content | str), approval_date: datetime): Calendar plan object.
|
||||
|
@ -9,9 +9,9 @@
|
||||
)
|
||||
|
||||
#let mentors = (
|
||||
(name: "Черепанова Ю. Ю.", gender: "f", degree: "Ст. викл. каф. ПІ"),
|
||||
(name: "Русакова Н. Є.", gender: "f", degree: "Доц. каф. ПІ"),
|
||||
(name: "Широкопетлєва М. С.", gender: "f", degree: "Ст. викл. каф. ПІ"),
|
||||
(name: "Черепанова Ю. Ю.", degree: "Ст. викл. каф. ПІ"),
|
||||
(name: "Русакова Н. Є.", degree: "Доц. каф. ПІ"),
|
||||
(name: "Широкопетлєва М. С.", degree: "Ст. викл. каф. ПІ"),
|
||||
)
|
||||
|
||||
#let task_list = (
|
||||
|
@ -1,10 +1,11 @@
|
||||
#import "@local/nure:0.0.0": *
|
||||
#import "@local/nure:0.1.0": *
|
||||
|
||||
#show: pz-lb-template.with(
|
||||
doctype: "ЛБ",
|
||||
edu_program_short: "ПЗПІ",
|
||||
edu_program: "ПЗПІ",
|
||||
subject: "БД",
|
||||
worknumber: 1,
|
||||
title: "Інформаційна система «Помічник класного керівника». Керування класом",
|
||||
subject_short: "БД",
|
||||
authors: (
|
||||
(
|
||||
name: "Ситник Є. С.",
|
||||
@ -15,9 +16,8 @@
|
||||
),
|
||||
),
|
||||
mentors: (
|
||||
(name: "Черепанова Ю. Ю.", gender: "f", degree: "Ст. викл. каф. ПІ"),
|
||||
(name: "Черепанова Ю. Ю.", degree: "Ст. викл. каф. ПІ", gender: "f"),
|
||||
),
|
||||
worknumber: 1,
|
||||
)
|
||||
|
||||
#v(-spacing)
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "nure"
|
||||
version = "0.0.0"
|
||||
version = "0.1.0"
|
||||
entrypoint = "lib.typ"
|
||||
authors = ["linerds"]
|
||||
license = "GPL-3.0"
|
||||
|
Reference in New Issue
Block a user