forked from pencelheimer/typst_nure_template
feat!: add course and semester keys for authors
fix: bring cw-template more in line with pz-lb-template fix: remove hard-coded values docs: update a template
This commit is contained in:
31
lib.typ
31
lib.typ
@ -10,6 +10,7 @@
|
|||||||
"ОС": "Операційні системи",
|
"ОС": "Операційні системи",
|
||||||
"ОТК": "Основи теорії кіл",
|
"ОТК": "Основи теорії кіл",
|
||||||
"ПП": "Проектний практикум",
|
"ПП": "Проектний практикум",
|
||||||
|
"ПРОГ": "Програмування",
|
||||||
"СПМ": "Скриптові мови програмування",
|
"СПМ": "Скриптові мови програмування",
|
||||||
"УФМ": "Українське фахове мовлення",
|
"УФМ": "Українське фахове мовлення",
|
||||||
"Ф": "Філософія",
|
"Ф": "Філософія",
|
||||||
@ -254,7 +255,11 @@
|
|||||||
spacing: new_spacing,
|
spacing: new_spacing,
|
||||||
leading: new_spacing,
|
leading: new_spacing,
|
||||||
)
|
)
|
||||||
set text(size: 11pt, font: "Courier New", weight: "semibold")
|
set text(
|
||||||
|
size: 11pt,
|
||||||
|
font: "Courier New",
|
||||||
|
weight: "semibold",
|
||||||
|
)
|
||||||
|
|
||||||
v(spacing * 2.5, weak: true)
|
v(spacing * 2.5, weak: true)
|
||||||
pad(it, left: 1.25cm)
|
pad(it, left: 1.25cm)
|
||||||
@ -271,7 +276,7 @@
|
|||||||
/// - 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.
|
/// - authors ((name: str, full_name_gen: str, variant: int, course: int, semester: int, group: str, gender: str),): List of authors.
|
||||||
/// - mentors ((name: str, degree: str),): List of mentors.
|
/// - 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.
|
||||||
@ -289,7 +294,7 @@
|
|||||||
task_list: (),
|
task_list: (),
|
||||||
calendar_plan: (),
|
calendar_plan: (),
|
||||||
abstract: (),
|
abstract: (),
|
||||||
bib_path: "bibl.yml",
|
bib_path: none,
|
||||||
appendices: (),
|
appendices: (),
|
||||||
) = {
|
) = {
|
||||||
set document(title: title, author: author.name)
|
set document(title: title, author: author.name)
|
||||||
@ -313,8 +318,7 @@
|
|||||||
// page 1 {{{2
|
// page 1 {{{2
|
||||||
[
|
[
|
||||||
#set align(center)
|
#set align(center)
|
||||||
МІНІСТЕРСТВО ОСВІТИ І НАУКИ УКРАЇНИ
|
МІНІСТЕРСТВО ОСВІТИ І НАУКИ УКРАЇНИ\
|
||||||
|
|
||||||
ХАРКІВСЬКИЙ НАЦІОНАЛЬНИЙ УНІВЕРСИТЕТ РАДІОЕЛЕКТРОНІКИ
|
ХАРКІВСЬКИЙ НАЦІОНАЛЬНИЙ УНІВЕРСИТЕТ РАДІОЕЛЕКТРОНІКИ
|
||||||
|
|
||||||
\
|
\
|
||||||
@ -323,12 +327,9 @@
|
|||||||
|
|
||||||
\
|
\
|
||||||
|
|
||||||
ПОЯСНЮВАЛЬНА ЗАПИСКА
|
ПОЯСНЮВАЛЬНА ЗАПИСКА\
|
||||||
|
ДО КУРСОВОЇ РОБОТИ\
|
||||||
ДО КУРСОВОЇ РОБОТИ
|
з дисципліни: "#subjects.at(subject, default: "NONE")"\
|
||||||
|
|
||||||
з дисципліни: "#subjects.at(subject, default: "NONE")"
|
|
||||||
|
|
||||||
Тема роботи: "#title"
|
Тема роботи: "#title"
|
||||||
|
|
||||||
\ \ \
|
\ \ \
|
||||||
@ -336,7 +337,7 @@
|
|||||||
#columns(2, gutter: 4cm)[
|
#columns(2, gutter: 4cm)[
|
||||||
#set align(left)
|
#set align(left)
|
||||||
|
|
||||||
#if author.gender == "m" { [Виконав\ ] } else { [Виконала\ ] } ст. гр. #author.group
|
#if author.gender == "m" { [Виконав\ ] } else { [Виконала\ ] } ст. гр. #edu_program\-#author.group
|
||||||
|
|
||||||
\
|
\
|
||||||
Керівник:\
|
Керівник:\
|
||||||
@ -403,7 +404,9 @@
|
|||||||
grid(
|
grid(
|
||||||
columns: (1fr, 1fr, 1fr),
|
columns: (1fr, 1fr, 1fr),
|
||||||
gutter: 0.3fr,
|
gutter: 0.3fr,
|
||||||
[#bold[Курс] #uline(2)], [#bold[Група] #uline(author.group)], [#bold[Семестр] #uline(3)],
|
[#bold[Курс] #uline(author.course)],
|
||||||
|
[#bold[Група] #uline([#edu_program\-#author.group])],
|
||||||
|
[#bold[Семестр] #uline(author.semester)],
|
||||||
)
|
)
|
||||||
|
|
||||||
linebreak()
|
linebreak()
|
||||||
@ -490,7 +493,7 @@
|
|||||||
[
|
[
|
||||||
#author.name, \
|
#author.name, \
|
||||||
#head_mentor.degree
|
#head_mentor.degree
|
||||||
#head_mentor.name.
|
#head_mentor.name
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#let author = (
|
#let author = (
|
||||||
name: "Ситник Є. С.",
|
name: "Ситник Є. С.",
|
||||||
full_name_gen: "Ситника Єгора Сергійовича",
|
full_name_gen: "Ситника Єгора Сергійовича",
|
||||||
|
course: 2,
|
||||||
|
semester: 3,
|
||||||
variant: 13,
|
variant: 13,
|
||||||
group: "23-2",
|
group: "23-2",
|
||||||
gender: "m",
|
gender: "m",
|
||||||
|
Reference in New Issue
Block a user