情報アイコン
情報 / 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".
言語アイコン
翻訳済み

このページは日本語に翻訳済みです。

quote
Element
ヘルプアイコン

引用文を表示し、オプションとして帰属情報を併記する。

Plato is often misquoted as the author of #quote[I know that I know
nothing], however, this is a derivation form his original quote:

#set quote(block: true)

#quote(attribution: [Plato])[
  ... ἔοικα γοῦν τούτου γε σμικρῷ τινι αὐτῷ τούτῳ σοφώτερος εἶναι, ὅτι
  ἃ μὴ οἶδα οὐδὲ οἴομαι εἰδέναι.
]
#quote(attribution: [from the Henry Cary literal translation of 1897])[
  ... I seem, then, in just this little thing to be wiser than this man at
  any rate, that what I do not know I do not think I know either.
]
Preview

デフォルトでは、ブロック引用には左右それぞれ 1em のパディングが設定されており、 配置やパディングはshowルールで制御できます。

#set quote(block: true)
#show quote: set align(center)
#show quote: set pad(x: 5em)

#quote[
  You cannot pass... I am a servant of the Secret Fire, wielder of the
  flame of Anor. You cannot pass. The dark fire will not avail you,
  flame of Udûn. Go back to the Shadow! You cannot pass.
]
Preview

引数
ヘルプアイコン

block
Settable
ヘルプアイコン

ブロック引用にするかどうか。

デフォルト値:

false

右矢印アイコン
例を表示
An inline citation would look like
this: #quote(
  attribution: [René Descartes]
)[
  cogito, ergo sum
], and a block equation like this:
#quote(
  block: true,
  attribution: [JFK]
)[
  Ich bin ein Berliner.
]
Preview

quotes
Settable
ヘルプアイコン

引用文の両端を二重引用符で囲むかどうか。

使用される二重引用符は、smartquotequotesプロパティから推測され、 textlangプロパティの影響を受けます。

  • true: 引用文を二重引用符で囲みます。
  • false: 引用文を二重引用符で囲みません。
  • auto: 引用文を二重引用符で囲むかどうかを、blockプロパティに基づいて推測します。 blockfalseの場合、二重引用符が自動的に追加されます。

デフォルト値:

auto

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

Ein deutsch-sprechender Author
zitiert unter umständen JFK:
#quote[Ich bin ein Berliner.]

#set text(lang: "en")

And an english speaking one may
translate the quote:
#quote[I am a Berliner.]
Preview

attribution
Settable
ヘルプアイコン

引用文の帰属情報。通常は著者名や出典元を指します。 参考文献を指すラベルや任意のコンテンツを設定することもできます。 デフォルトではブロック引用にのみ表示されますが、showルールを使用して変更できます。

デフォルト値:

none

右矢印アイコン
例を表示
#quote(attribution: [René Descartes])[
  cogito, ergo sum
]

#show quote.where(block: false): it => {
  ["] + h(0pt, weak: true) + it.body + h(0pt, weak: true) + ["]
  if it.attribution != none [ (#it.attribution)]
}

#quote(
  attribution: link("https://typst.app/home")[typst.com]
)[
  Compose papers faster
]

#set quote(block: true)

#quote(attribution: <tolkien54>)[
  You cannot pass... I am a servant
  of the Secret Fire, wielder of the
  flame of Anor. You cannot pass. The
  dark fire will not avail you, flame
  of Udûn. Go back to the Shadow! You
  cannot pass.
]

#bibliography("works.bib", style: "apa")
Preview

body
Required
ヘルプアイコン
Positional
ヘルプアイコン

引用文。

検索