forked from pencelheimer/typst_nure_template
WIP: introduce yaml config examples in a template
This commit is contained in:
@ -60,10 +60,11 @@ Copy `lib.typ` to your project's root directory.
|
|||||||
Some text
|
Some text
|
||||||
|
|
||||||
// ...or include your modules
|
// ...or include your modules
|
||||||
// NOTE: you have to import a package or a lib.typ in each module.
|
|
||||||
#include "src/intro.typ"
|
#include "src/intro.typ"
|
||||||
#include "src/chapter1.typ"
|
#include "src/chapter1.typ"
|
||||||
#include "src/chapter2.typ"
|
#include "src/chapter2.typ"
|
||||||
|
// NOTE: if you want to use variables or utils provided by the package,
|
||||||
|
// you have to import the package or a lib.typ inside a module.
|
||||||
```
|
```
|
||||||
|
|
||||||
### Notes:
|
### Notes:
|
||||||
@ -72,7 +73,11 @@ Some text
|
|||||||
### Example Project Structure
|
### Example Project Structure
|
||||||
```
|
```
|
||||||
project/
|
project/
|
||||||
├── main.typ -- for importing, configuration and boilerplate
|
├── main.typ -- for boilerplate code and importing everything
|
||||||
|
├── config/
|
||||||
|
│ ├── doc.yaml -- for things that don't change across works, i.e. author and mentor metadata
|
||||||
|
│ ├── universities.yaml -- for user-specific configuration, i.e. education programs and disciplines
|
||||||
|
│ └── ...
|
||||||
├── src/
|
├── src/
|
||||||
│ ├── intro.typ
|
│ ├── intro.typ
|
||||||
│ ├── chapter1.typ
|
│ ├── chapter1.typ
|
||||||
|
22
template/config/doc.yaml
Normal file
22
template/config/doc.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
title: Потiк керування та алгоритмічні структури Bash
|
||||||
|
subject: СПМ
|
||||||
|
doctype: ЛБ
|
||||||
|
worknumber: 2
|
||||||
|
edu_program: &EDU ПЗПІ
|
||||||
|
university: ХНУРЕ
|
||||||
|
authors:
|
||||||
|
- name: Косач. Л. П.
|
||||||
|
full_name_gen: Косач Лариси Петрівни
|
||||||
|
course: 2
|
||||||
|
edu: *EDU
|
||||||
|
gender: f
|
||||||
|
group: 23-2
|
||||||
|
semester: 4
|
||||||
|
variant: 8
|
||||||
|
mentors:
|
||||||
|
- name: Шевченко Т. Г.
|
||||||
|
degree: Доцент кафедри ПІ
|
||||||
|
gender: m
|
||||||
|
- name: Франко І. Я.
|
||||||
|
degree: Асистент кафедри ПІ
|
||||||
|
gender: m
|
@ -1,24 +1,6 @@
|
|||||||
#import "@local/nure:0.1.0": *
|
#import "@local/nure:0.1.0": *
|
||||||
|
|
||||||
#show: pz-lb-template.with(
|
#show: pz-lb-template.with(..yaml("config/doc.yaml"))
|
||||||
doctype: "ЛБ",
|
|
||||||
edu_program: "ПЗПІ",
|
|
||||||
subject: "БД",
|
|
||||||
worknumber: 1,
|
|
||||||
title: "Інформаційна система «Помічник класного керівника». Керування класом",
|
|
||||||
authors: (
|
|
||||||
(
|
|
||||||
name: "Ситник Є. С.",
|
|
||||||
full_name_gen: "Ситника Єгора Сергійовича",
|
|
||||||
variant: 13,
|
|
||||||
group: "ПЗПІ-23-2",
|
|
||||||
gender: "m",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
mentors: (
|
|
||||||
(name: "Черепанова Ю. Ю.", degree: "Ст. викл. каф. ПІ", gender: "f"),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
#v(-spacing)
|
#v(-spacing)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user