// Project variables #import "variables.typ": ravenous, theme, theme-var #import "../data/gen/build_info.typ": build_info #import "model.typ" as model // Re exposing internals #let ravenous = ravenous #let theme = theme #let theme-var = theme-var #let build_info = build_info // Template for classes #let school_presentation = model.school_presentation // Inner modules and functions #let memo_box(title: "À retenir", content) = { block( fill: theme.parchment, stroke: 0.8pt + theme.gold, inset: 12pt, radius: 3pt, )[ #strong[#title] #content ] } // TODO: Have all be either admonish or whatever #let ravhelp = memo_box // WIP warnings #import "@preview/uniwarn:0.1.1" as uwarn #let ns = "transfer_warnings" #uwarn.register-namespace(ns) // will panic if already registered by another package #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] ") #let disable-warnings = uwarn.disable-warnings.with(ns) #let enable-warnings = uwarn.enable-warnings.with(ns) // Create a main document config for the ravenous project #let config_main(variables: ravenous, document) = { show: model.model(ravenous, document, theme, theme-var) }