Skip to content

Instantly share code, notes, and snippets.

@ihrke
Created February 14, 2025 08:30
Show Gist options
  • Select an option

  • Save ihrke/90c1c207401ef6245e76991233e0e976 to your computer and use it in GitHub Desktop.

Select an option

Save ihrke/90c1c207401ef6245e76991233e0e976 to your computer and use it in GitHub Desktop.
Nice looking quotation box in Typst.
#show quote: it => {
block([
#place(rect(width: 20pt, height: 20pt, fill: white), top+left, dx: -10pt, dy: -10pt)
#place(text("“", size: 30pt, fill: blue.darken(40%)), top+left, dx: -10pt, dy: -10pt)
#text(it.body, fill: blue.darken(40%))
], inset: 8pt, fill: luma(255), radius: 6pt, stroke: .2pt+blue.darken(20%))
}
@ihrke
Copy link
Author

ihrke commented Feb 14, 2025

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment