maketitlefunction
#maketitle(
institution: auto,
exam-name: auto,
term: auto,
duration: auto,
)
Displays the exam's title block (like LaTeX's \maketitle), using config's institution, exam-name, term, and duration. Displays nothing if all four are none.
Note: use a set rule to change the font settings (e.g. #{ set text(font: "DejaVu Sans Mono"); maketitle() }).
Arguments
exam-namedefaultautoexam-name| content | noneThe name of the exam (e.g. Midterm 1). Setting to
auto uses
config's
exam-name;
none hides it.
termdefaultautoterm| content | noneThe term of the exam (e.g. Fall 2026). Setting to
auto uses
config's
term;
none hides it.
durationdefaultautoduration| duration | content | noneThe length of the exam.
Durations are shown in minutes (e.g.
duration(hours: 1, minutes: 50) shows as "110 Minutes"). Pass content for complete control over what is shown (e.g., pass
[1 h 50 min]). Setting to
auto uses
config's
duration;
none hides it.