Traducción no oficial al español rioplatense, generada con IA (Claude Sonnet 5.5) bajo la dirección y revisión de Jassiel Ovando. No es una publicación de Typst GmbH ni cuenta con su aval; ante cualquier duda, prevalece la documentación oficial en inglés. ¿Un error de traducción o una sugerencia? Reportalo. Tipografía: Reforma, de PampaType.

quoteElemento
Signo de pregunta
Desde: 0.9.0Ir al código fuente

Muestra una cita junto con una atribución opcional.

Ejemplo

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. ]

Por defecto, las citas en bloque tienen un relleno de 1em a izquierda y derecha; la alineación y el relleno se pueden controlar con reglas 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. ]

Parámetros

block
bool
Configurable con set
Signo de pregunta
Por defecto: false

Si esta es una cita en bloque.

ExpandirVer ejemplo
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. ]

quotes
auto o bool
Configurable con set
Signo de pregunta
Por defecto: auto

Si se deben agregar comillas dobles alrededor de esta cita.

Las comillas dobles que se usan se infieren de la propiedad quotes de smartquote, que se ve afectada por la propiedad lang de text.

ExpandirVer ejemplo
#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.]

attribution
none o label o content
Configurable con set
Signo de pregunta
Por defecto: none

La atribución de esta cita, generalmente el autor o la fuente. Puede ser una etiqueta que apunte a una entrada de bibliografía o cualquier contenido. Por defecto solo se muestra para las citas en bloque, pero se puede cambiar con una regla show.

ExpandirVer ejemplo
#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.app] )[ 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")

body
content
ObligatorioPosicional
Signo de pregunta

La cita.