Each Luria Voice template compiles through Typst, which is bundled inside Quarto. The visual presentation of every report is controlled by two Typst source files inside theDocumentation Index
Fetch the complete documentation index at: https://docs.brainworkup.org/llms.txt
Use this file to discover all available pages before exploring further.
_extensions/ directory. Understanding what each file does — and the boundary between safe customisation and risky modification — will save you time when adjusting layouts for your practice.
The two Typst files
typst-template.typ
Controls page geometry: paper size, margins, header and footer rules, and
the CONFIDENTIAL header printed on pages 2 and beyond.
typst-show.typ
Controls typography show rules: font stacks, heading sizes and weights, body
text alignment, and element spacing.
neurotyp-adult the paths are:
neurotyp-adult with neurotyp-pediatric, neurotyp-forensic, or neurotyp-luria for the sibling formats.
Page layout (typst-template.typ)
Default geometry
| Property | Value |
|---|---|
| Paper size | A4 |
| Top margin | 30 mm |
| Side margins (left and right) | 25 mm |
| Bottom margin | 25 mm |
| Body text alignment | Justified |
CONFIDENTIAL header
Pages 2 and beyond automatically include a CONFIDENTIAL header. The header is constructed from thepatient and doe front matter fields:
typst-template.typ as a Typst header rule that fires on all pages except the first. It reads the patient and doe values passed from the Quarto front matter.
Changing paper size
To switch from A4 to US Letter, locate thepaper declaration in typst-template.typ and change the value:
Adjusting margins
Find themargin property inside the #set page(...) call:
Typography (typst-show.typ)
Font stack
The preferred fonts, in order:| Role | Primary font | Fallbacks |
|---|---|---|
| Body text | Equity B | IBM Plex Serif, Source Sans 3, system serif |
| Headings | IBM Plex Sans | system sans-serif |
| Code | JetBrains Mono | system monospace |
Heading styles
Heading levels map to Typst’s#heading show rules in typst-show.typ:
| Quarto heading | Typst level | Default style |
|---|---|---|
# Title (level 0 / report title) | 0 | Centered, IBM Plex Sans, large |
## Section (level 1) | 1 | Left-aligned, IBM Plex Sans, bold |
### Subsection (level 2) | 2 | Left-aligned, IBM Plex Sans, medium weight |
#### Sub-subsection (level 3) | 3 | Left-aligned, italic |
Body text
Body paragraphs render justified. Thetypst-show.typ file sets this via:
true to false.
What is safe to customise
- Safe to change
- Best left alone
These properties are straightforward to modify and unlikely to cause unexpected side effects:
- Paper size —
paper: "a4"→paper: "us-letter" - Margins — increase or decrease any margin value
- Font fallback order — add or reorder fonts in the font stack arrays
- Body text alignment —
justify: true→justify: false - Heading font size — adjust
size:values in heading show rules - Heading color — add
fill: rgb("#1A3D5C")to a heading show rule
Customising the CONFIDENTIAL header text
If you need to change the header label fromCONFIDENTIAL to something else — for example, PRIVILEGED AND CONFIDENTIAL or a practice name — find the header text in typst-template.typ:
CONFIDENTIAL to match your preferred label. The #doc-patient and #doc-doe references pull from the front matter and should not be changed.
Typst variables injected by Quarto use a
doc- prefix by convention in
Neurotyp templates. You will see doc-patient, doc-doe, doc-name, and
similar identifiers in the Typst source. These map directly to the YAML front
matter fields of the same name (minus the doc- prefix).Sharing customisations across templates
The style repository atbrainworkup/style contains all three sibling extensions under _extensions/brainworkup/ along with shared template resources. If you maintain customised Typst files and want consistent formatting across adult, pediatric, and forensic reports, consider forking the style repository and referencing your fork in each extension’s _extension.yml.