// ----- Project variables ----- #import "variables.typ": ravenous, theme, theme-var #import "limits.typ": hunbal #import "../data/gen/build_info.typ": build_info // ----- Imports ----- #import "model.typ" as model #import "macros.typ" as macros #import "set_tables.typ" as st #import "csv_table.typ" as csv_import // ----- Re-expose shared project data ----- #let ravenous = ravenous #let theme = theme #let theme-var = theme-var #let build_info = build_info #let gls = model.gls #let gls-description = model.gls-description #let macros = macros #let ddlvl = macros.ddlvl #let hunbal = hunbal #let bigscope = macros.bigscope #let csv-table = csv_import.csv-table // ----- Public template for class presentations ----- #let school_presentation = model.school_presentation // ----- Alias for the project's help box ----- #let ravhelp = macros.memo_box #let inline_help = macros.inline_help // ----- Configure warnings for the project namespace ----- #import "@preview/uniwarn:0.1.1" as uwarn #let ns = "transfer_warnings" #uwarn.register-namespace(ns) // will panic if already registered by another package // ----- Define project-specific warning helpers ----- #let nogls = uwarn.warning.with(namespace: ns, prefix: "[glos] ") // #let ravhelp = uwarn.warning.with(namespace: ns, prefix: "[hlpb] ") #let warn = uwarn.warning.with(namespace: ns, prefix: "[warn] ") #let comment = uwarn.warning.with(namespace: ns, prefix: "[info] ") // ----- Enable or disable project warnings ----- #let disable-warnings = uwarn.disable-warnings.with(ns) #let enable-warnings = uwarn.enable-warnings.with(ns) // ----- Apply the Ravenous model to the main document ----- #let config_main(variables: ravenous, document) = { show: model.model(ravenous, document, theme, theme-var) }