6.11.7 Typst Functions🔗ℹ

The "scribble.typ" Typst configuration defines several functions and state objects that you can shadow to adjust the output style:

  • Stitle(title: [], version: none, authors: none, date: none) for the title of a document.

  • SVersion(version) for a version, adding “Version” as a prefix to the given version content.

  • Sheading(depth: none, outlined: true, hidden: false, content) for a section heading at a given depth.

  • SSubSubSubSection(content) for a subsubsub*section

  • SttProc state — a function that takes content and typesets it with a fixed-width font

  • SInset(body) for a nested-flow with the 'inset style name.

  • SCodeInset(body) for a nested-flow with the 'code-inset style name.

  • SVerticalInset(body) for a nested-flow with the 'vertical-inset style name.

  • Stable(columns: [], ..content) for a table.

  • Ssoxed(columns: [], ..content) for a table with the 'boxed style.

  • SVerbatim(columns: [], ..content) for a table created by verbatim.

Additionally, the "racket.typ" Typst configuration defines several functions that you can redefine to adjust the output style of Racket code:

  • RktBlk(columns: [], ..content) for a table created by racketblock.

  • RktPlain(body) uncolored text within racket, racketblock, etc. A number of other functions, such as RktPn, are also defined, analogous to the classes listed in Manual CSS Style Classes.

  • SColorizeOn state — a boolean that determines whether color is used for racket, racketblock, etc. content. This state is consulted by functions like RktPn.