From a9475dbc94799967aba70477418727632b6c6aa0 Mon Sep 17 00:00:00 2001 From: pencelheimer Date: Thu, 12 Mar 2026 15:04:57 +0200 Subject: [PATCH] fix: don't evaluate each layout --- src/lib.typ | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.typ b/src/lib.typ index 3ab603c..94aa059 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -89,12 +89,12 @@ // Select layout variant let layouts = ( - "complex": tp.pz-lb.complex(uni, edu-program, subject, type, number, title, authors, mentors), - "ХНУРЕ": tp.pz-lb.nure(uni, edu-program, subject, type, number, title, authors, mentors), - "default": tp.pz-lb.nure(uni, edu-program, subject, type, number, title, authors, mentors), + "complex": () => tp.pz-lb.complex(uni, edu-program, subject, type, number, title, authors, mentors), + "ХНУРЕ": () => tp.pz-lb.nure(uni, edu-program, subject, type, number, title, authors, mentors), + "default": () => tp.pz-lb.nure(uni, edu-program, subject, type, number, title, authors, mentors), ) - layouts.at(university, default: layouts.default) + (layouts.at(university, default: layouts.default))() pagebreak(weak: true)