forked from pencelheimer/typst_nure_template
move lib.typ to src/
This commit is contained in:
+11
-11
@@ -1,10 +1,10 @@
|
||||
|
||||
// Academic aliases {{{1
|
||||
|
||||
#let universities = yaml("config/universities.yaml")
|
||||
#let universities = yaml("/config/universities.yaml")
|
||||
|
||||
#import "/src/helpers.typ": *
|
||||
#import "/src/style.typ"
|
||||
#import "helpers.typ": *
|
||||
#import "style.typ"
|
||||
|
||||
// Coursework template {{{1
|
||||
|
||||
@@ -351,13 +351,13 @@
|
||||
/// - type: ("ЛБ" | "ПЗ" | "КР" | "РФ" | str): Work type.
|
||||
/// - number: int or none: Work number. 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.
|
||||
#let pz-lb(
|
||||
doc,
|
||||
layout: "simple",
|
||||
university: "ХНУРЕ",
|
||||
edu_program: none,
|
||||
edu-program: none,
|
||||
subject: none,
|
||||
type: none,
|
||||
number: none,
|
||||
@@ -367,11 +367,11 @@
|
||||
) = {
|
||||
// TODO: add actually relevant asserts
|
||||
|
||||
import "src/layouts/pz-lb/minimal.typ": *
|
||||
import "src/layouts/pz-lb/simple.typ": *
|
||||
import "layouts/pz-lb/minimal.typ": *
|
||||
import "layouts/pz-lb/simple.typ": *
|
||||
|
||||
let edu_program = if edu_program != none { edu_program } else if true {
|
||||
authors.first().edu_program
|
||||
let edu-program = if edu-program != none { edu-program } else if true {
|
||||
authors.first().edu-program
|
||||
}
|
||||
let uni = universities.at(university)
|
||||
|
||||
@@ -382,9 +382,9 @@
|
||||
// page 1 {{{2
|
||||
|
||||
if layout == "simple" {
|
||||
simple(uni, edu_program, subject, type, number, title, authors, mentors)
|
||||
simple(uni, edu-program, subject, type, number, title, authors, mentors)
|
||||
} else {
|
||||
minimal(uni, edu_program, subject, type, number, title, authors, mentors)
|
||||
minimal(uni, edu-program, subject, type, number, title, authors, mentors)
|
||||
}
|
||||
|
||||
pagebreak(weak: true)
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "nure"
|
||||
version = "0.1.0"
|
||||
entrypoint = "lib.typ"
|
||||
entrypoint = "src/lib.typ"
|
||||
authors = ["linerds"]
|
||||
license = "GPL-3.0"
|
||||
description = "Typst NURE package"
|
||||
|
||||
Reference in New Issue
Block a user