move lib.typ to src/

This commit is contained in:
2026-01-17 17:24:32 +02:00
parent f3adc98f86
commit 891d33b236
2 changed files with 12 additions and 12 deletions
+11 -11
View File
@@ -1,10 +1,10 @@
// Academic aliases {{{1 // Academic aliases {{{1
#let universities = yaml("config/universities.yaml") #let universities = yaml("/config/universities.yaml")
#import "/src/helpers.typ": * #import "helpers.typ": *
#import "/src/style.typ" #import "style.typ"
// Coursework template {{{1 // Coursework template {{{1
@@ -351,13 +351,13 @@
/// - type: ("ЛБ" | "ПЗ" | "КР" | "РФ" | str): Work type. /// - type: ("ЛБ" | "ПЗ" | "КР" | "РФ" | str): Work type.
/// - number: int or none: Work number. Optional. /// - number: int or none: Work number. Optional.
/// - title: str or none: Work title. Optional. /// - title: str or none: Work title. Optional.
/// - authors ((name: str, full_name_gen: str or none, edu_program: str, group: str, gender: str, variant: int or none),): List of authors. /// - authors ((name: str, full_name_gen: str or none, edu-program: str, group: str, gender: str, variant: int or none),): List of authors.
/// - mentors ((name: str, degree: str, gender: ("m" | "f" | "p" | none)),): List of mentors. Optional. /// - mentors ((name: str, degree: str, gender: ("m" | "f" | "p" | none)),): List of mentors. Optional.
#let pz-lb( #let pz-lb(
doc, doc,
layout: "simple", layout: "simple",
university: "ХНУРЕ", university: "ХНУРЕ",
edu_program: none, edu-program: none,
subject: none, subject: none,
type: none, type: none,
number: none, number: none,
@@ -367,11 +367,11 @@
) = { ) = {
// TODO: add actually relevant asserts // TODO: add actually relevant asserts
import "src/layouts/pz-lb/minimal.typ": * import "layouts/pz-lb/minimal.typ": *
import "src/layouts/pz-lb/simple.typ": * import "layouts/pz-lb/simple.typ": *
let edu_program = if edu_program != none { edu_program } else if true { let edu-program = if edu-program != none { edu-program } else if true {
authors.first().edu_program authors.first().edu-program
} }
let uni = universities.at(university) let uni = universities.at(university)
@@ -382,9 +382,9 @@
// page 1 {{{2 // page 1 {{{2
if layout == "simple" { if layout == "simple" {
simple(uni, edu_program, subject, type, number, title, authors, mentors) simple(uni, edu-program, subject, type, number, title, authors, mentors)
} else { } else {
minimal(uni, edu_program, subject, type, number, title, authors, mentors) minimal(uni, edu-program, subject, type, number, title, authors, mentors)
} }
pagebreak(weak: true) pagebreak(weak: true)
+1 -1
View File
@@ -1,7 +1,7 @@
[package] [package]
name = "nure" name = "nure"
version = "0.1.0" version = "0.1.0"
entrypoint = "lib.typ" entrypoint = "src/lib.typ"
authors = ["linerds"] authors = ["linerds"]
license = "GPL-3.0" license = "GPL-3.0"
description = "Typst NURE package" description = "Typst NURE package"