未翻訳
このページはまだ翻訳されていません。原文の内容が表示されています。
quote要素関数要素関数要素関数はsetルールやshowルールでカスタマイズできます。
要素関数
要素関数は
setルールやshowルールでカスタマイズできます。引用文を表示し、オプションとして帰属情報を併記する。
例
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.
]

デフォルトでは、ブロック引用には左右それぞれ 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.
]

引数引数引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
引数
引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
block設定可能引数設定可能引数設定可能引数は、setルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。
設定可能引数
設定可能引数
設定可能引数は、
setルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。ブロック引用にするかどうか。
例を表示
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.
]

デフォルト値: false
quotes
引用文の両端を二重引用符で囲むかどうか。
使用される二重引用符は、smartquoteのquotesプロパティから推測され、
textのlangプロパティの影響を受けます。
true: 引用文を二重引用符で囲みます。false: 引用文を二重引用符で囲みません。auto: 引用文を二重引用符で囲むかどうかを、blockプロパティに基づいて推測します。blockがfalseの場合、二重引用符が自動的に追加されます。
例を表示
#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.]

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

デフォルト値: none
body
引用文。