TypstDocumentation

smartquoteShowable
Question mark

A language-aware quote that reacts to its context.

Automatically turns into an appropriate opening or closing quote based on the active text language.

Example

"This is in quotes."

#set text(lang: "de")
"Das ist in Anführungszeichen."

#set text(lang: "fr")
"C'est entre guillemets."
Preview

Syntax

This function also has dedicated syntax: The normal quote characters (' and "). Typst automatically makes your quotes smart.

Parameters
Question mark

double

Whether this should be a double quote.

enabled
booleanSettable
Question mark

Whether smart quotes are enabled.

To disable smartness for a single quote, you can also escape it with a backslash.

#set smartquote(enabled: false)

These are "dumb" quotes.
Preview