情報アイコン
情報 / Info
当サイトは、Typst GmbHの許諾を得て、日本語コミュニティ「Typst Japan Community」がTypst v0.13.1の公式ドキュメントを翻訳したものです。誤訳や古い情報が含まれている可能性があるため、公式ドキュメントとの併用を推奨します。翻訳の改善やサイトの機能向上について、GitHubでのIssueやPull Requestを歓迎します。コミュニティにご興味のある方はDiscordサーバー「くみはんクラブ」にぜひご参加ください。
This site provides a Japanese translation of the Typst v0.13.1 documentation maintained by the "Typst Japan Community" with permission from Typst GmbH. We recommend using this alongside the official documentation. We welcome contributions through Issues and Pull Requests on our GitHub repository for both translation improvements and website enhancements. Feel free to join our Discord server "Kumihan Club".
言語アイコン
未翻訳

このページはまだ翻訳されていません。原文の内容が表示されています。

smartquote
Element
ヘルプアイコン

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.

引数
ヘルプアイコン

double
Settable
ヘルプアイコン

Whether this should be a double quote.

デフォルト値:

true

enabled
Settable
ヘルプアイコン

Whether smart quotes are enabled.

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

デフォルト値:

true

右矢印アイコン
例を表示
#set smartquote(enabled: false)

These are "dumb" quotes.
Preview

alternative
Settable
ヘルプアイコン

Whether to use alternative quotes.

Does nothing for languages that don't have alternative quotes, or if explicit quotes were set.

デフォルト値:

false

右矢印アイコン
例を表示
#set text(lang: "de")
#set smartquote(alternative: true)

"Das ist in anderen Anführungszeichen."
Preview

quotes
Settable
ヘルプアイコン

The quotes to use.

  • When set to auto, the appropriate single quotes for the text language will be used. This is the default.
  • Custom quotes can be passed as a string, array, or dictionary of either
    • string: a string consisting of two characters containing the opening and closing double quotes (characters here refer to Unicode grapheme clusters)
    • array: an array containing the opening and closing double quotes
    • dictionary: an array containing the double and single quotes, each specified as either auto, string, or array

デフォルト値:

auto

右矢印アイコン
例を表示
#set text(lang: "de")
'Das sind normale Anführungszeichen.'

#set smartquote(quotes: "()")
"Das sind eigene Anführungszeichen."

#set smartquote(quotes: (single: ("[[", "]]"),  double: auto))
'Das sind eigene Anführungszeichen.'
Preview

検索