From f3adc98f866067ccf029280054b4339533318fc2 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Sat, 17 Jan 2026 16:41:05 +0200 Subject: [PATCH] rename --- lib.typ | 8 ++++---- src/style.typ | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib.typ b/lib.typ index 985534f..f902b36 100644 --- a/lib.typ +++ b/lib.typ @@ -4,7 +4,7 @@ #let universities = yaml("config/universities.yaml") #import "/src/helpers.typ": * -#import "/src/style.typ": * +#import "/src/style.typ" // Coursework template {{{1 @@ -35,7 +35,7 @@ ) = { set document(title: title, author: authors.map(c => c.name)) - show: dstu-style.with(skip: 1) + show: style.dstu.with(skip: 1) let bib-count = state("citation-counter", ()) show cite: it => { @@ -335,7 +335,7 @@ } } - appendices-style(appendices) + style.appendices(appendices) } // #include "src/layouts.typ" @@ -377,7 +377,7 @@ set document(title: title, author: authors.map(c => c.name)) - show: dstu-style.with(skip: 1) + show: style.dstu.with(skip: 1) // page 1 {{{2 diff --git a/src/style.typ b/src/style.typ index 2868df7..5c753ed 100644 --- a/src/style.typ +++ b/src/style.typ @@ -8,7 +8,7 @@ /// - skip (int): Do not show page number for this number of pages. /// - offset (int): Adjust all page numbers by this amount. -#let dstu-style( +#let dstu( it, skip: 0, offset: 0, @@ -121,7 +121,7 @@ /// DSTU 3008:2015 Appendices Style /// -> content /// - it (content): Content to apply the style to. -#let appendices-style(it) = /* {{{ */ { +#let appendices(it) = /* {{{ */ { // Numbering counter(heading).update(0) set heading(numbering: (i, ..n) => upper(ukr-enum.at(i)) + numbering(".1.1", ..n))