//----- Project variables ----- #import "theme/variables.typ": ravenous, theme, theme-var #import "core/limits.typ": hunbal #import "/data/gen/build_info.typ": build_info #import "build_config.typ" as build_config //----- Imports ----- #import "models/document.typ" as model #import "core/macros.typ" as macros #import "theme/symbols.typ" as symbols #import "theme/tables.typ" as st #import "generation/csv-table.typ" as csv_import #import "generation/radar_graphs.typ" as radar //----- Re-expose shared project data ----- #let ravenous = ravenous #let theme = theme #let theme-var = theme-var #let build_info = build_info #let build-config = build_config.build-config #let max-tier-exclusive = build_config.max-tier-exclusive #let gls = model.gls #let gls-description = model.gls-description #let macros = macros #let ddlvl = macros.ddlvl #let symbols = symbols #let hunbal = hunbal #let bigscope = macros.bigscope #let csv-table = csv_import.csv-table #let radar-fields = radar.radar-fields #let radar-graph = radar.radar-graph #let balancing-totals = radar.balancing-totals #let all-balancing-totals = radar.all-balancing-totals #let kw(c) = [* #c *] //----- 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) }