call bp/dp definitions only where necessary
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
// tools & utils
|
||||
#import "../theme.typ": faculty_logotype, tul_logomark, faculty_color
|
||||
#import "../lang.typ": lang_id, get_lang_item
|
||||
#import "../utils.typ": assert_in_dict, assert_in_arr, map_none, assert_dict_has
|
||||
#import "../arguments.typ": req_arg, map_arg
|
||||
#import "common.typ": default_styling
|
||||
#import "../utils.typ": assert_in_dict, assert_in_arr, map_none, assert_dict_has, is_none
|
||||
#import "../arguments.typ": req_arg, map_arg, get_arg
|
||||
#import "common.typ": default_styling, external_title_pages
|
||||
|
||||
// thesis types
|
||||
#import "bp.typ": bp
|
||||
#import "dp.typ": dp
|
||||
#import "other.typ": other
|
||||
#import "thesis_base.typ": thesis_base
|
||||
|
||||
#let template_classic(args, content) = {
|
||||
let language = req_arg(args, "document.language");
|
||||
@@ -33,5 +34,10 @@
|
||||
args.citations = map_arg(args, "citations", (v) => "../../" + v);
|
||||
args.title_pages = map_arg(args, "title_pages", (v) => "../../" + v);
|
||||
|
||||
document_types.at(req_arg(args, "document.type"))(args, content);
|
||||
if not is_none(get_arg(args, "title_pages")) and not req_arg(args, "document.type") == "other" {
|
||||
external_title_pages(req_arg(args, "title_pages"));
|
||||
thesis_base(args, content);
|
||||
} else {
|
||||
document_types.at(req_arg(args, "document.type"))(args, content);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user