diff --git a/README.md b/README.md index 134ed09..449893d 100644 --- a/README.md +++ b/README.md @@ -60,10 +60,11 @@ Copy `lib.typ` to your project's root directory. Some text // ...or include your modules -// NOTE: you have to import a package or a lib.typ in each module. #include "src/intro.typ" #include "src/chapter1.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: @@ -72,7 +73,11 @@ Some text ### Example Project Structure ``` 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/ │ ├── intro.typ │ ├── chapter1.typ diff --git a/template/config/doc.yaml b/template/config/doc.yaml new file mode 100644 index 0000000..aced88f --- /dev/null +++ b/template/config/doc.yaml @@ -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 diff --git a/template/lab.typ b/template/lab.typ index 4268ae1..f5bd94e 100644 --- a/template/lab.typ +++ b/template/lab.typ @@ -1,24 +1,6 @@ #import "@local/nure:0.1.0": * -#show: pz-lb-template.with( - doctype: "ЛБ", - edu_program: "ПЗПІ", - subject: "БД", - worknumber: 1, - title: "Інформаційна система «Помічник класного керівника». Керування класом", - authors: ( - ( - name: "Ситник Є. С.", - full_name_gen: "Ситника Єгора Сергійовича", - variant: 13, - group: "ПЗПІ-23-2", - gender: "m", - ), - ), - mentors: ( - (name: "Черепанова Ю. Ю.", degree: "Ст. викл. каф. ПІ", gender: "f"), - ), -) +#show: pz-lb-template.with(..yaml("config/doc.yaml")) #v(-spacing)