6.11.7 Typst Functions

► |  | Scribble: The Racket Documentation Tool

1 | Getting Started
2 | @ Syntax
3 | High-Level Scribble API
4 | Scribbling Documentation
5 | Literate Programming
6 | Low-Level Scribble API
7 | Running scribble
| Index

► | 6 | Low-Level Scribble API

6.1 | Scribble Layers
6.2 | @ Reader Internals
6.3 | Structures And Processing
6.4 | Renderers
6.5 | Decoding Text
6.6 | Document Language
6.7 | Document Reader
6.8 | Cross-Reference Utilities
6.9 | Tag Utilities
6.10 | Blue Boxes Utilities
6.11 | Extending and Configuring Scribble Output

▼ | 6.11 | Extending and Configuring Scribble Output

6.11.1 | Implementing Styles
6.11.2 | Configuring Output
6.11.3 | Base CSS Style Classes
6.11.4 | Manual CSS Style Classes
6.11.5 | Latex Commands
6.11.6 | Latex Prefix Support
6.11.7 | Typst Functions

Racket
top contents ← prev up next →

#### 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.

top contents ← prev up next →