smartquote
ElementElement functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.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."

Syntax
This function also has dedicated syntax: The normal quote characters
('
and "
). Typst automatically makes your quotes smart.
ParametersParameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
double
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable parameters can be customized for all following uses of the function with a
set
rule.Whether this should be a double quote.
Default: true
enabled
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable parameters can be customized for all following uses of the function with a
set
rule.Whether smart quotes are enabled.
To disable smartness for a single quote, you can also escape it with a backslash.
Default: true
#set smartquote(enabled: false)
These are "dumb" quotes.
