allow no title for other

This commit is contained in:
2025-12-07 19:42:41 +01:00
parent 359a0da640
commit db1e83fad6
2 changed files with 7 additions and 6 deletions

View File

@@ -247,9 +247,9 @@
set page(margin: 2cm);
pagebreak(weak: true);
if has_all_none((
document_type, title, author, supervisor, consultant, study_programme,
title, author, supervisor, consultant, study_programme, study_specialization, year_of_study
)) {
place(center + horizon, align(left, faculty_logotype(faculty_id, language)));
place(center + horizon, align(left, text(faculty_logotype(faculty, language), size: 1.5em)));
} else {
header(faculty, language);
align({

View File

@@ -13,17 +13,18 @@
)
#import "../attachments.typ": attachment_list
#import "../utils.typ": is_none, assert_not_none, assert_dict_has, assert_in_arr
#import "../arguments.typ": req_arg
#import "../arguments.typ": req_arg, get_arg, map_arg
#import "../theme.typ": faculty_color
#let other_title_page(args) = {
let (language, title) = req_arg(args, ("document.language", "title"));
assert_dict_has((language,), title, "title");
let language = req_arg(args, "document.language");
let title = get_arg(args, "title");
map_arg(args, "title", (v) => { assert_dict_has((language,), v, "title") })
mainpage(args);
}
#let other_base(args, content) = {
let (language, title) = req_arg(args, ("document.language", "title"));
let language = req_arg(args, "document.language");
default_styling(true, faculty_color(req_arg(args, "document.faculty")), {
toc(language);