Loading...
Loading...
Generate idiomatic Typst (.typ) code, edit existing Typst files, and answer Typst syntax questions. Use when working with Typst files (*.typ) or when the user mentions Typst markup, document creation, or formatting.
npx skill4agent add apcamargo/typst-skills typst-author#set document(title: "My Document", author: "Author Name")
#set page(numbering: "1")
#set text(lang: "en")
// Enable paragraph justification and character-level justification
#set par(
justify: true,
justification-limits: (
tracking: (min: -0.012em, max: 0.012em),
spacing: (min: 75%, max: 120%),
)
)
#title[My Document]
= Heading 1
This is a paragraph in Typst.
== Heading 2
#lorem(50).typset ruleshow ruledocs/guides/*.mddocs/tutorial/*.mddocs/reference/**/*.mddocs/ReadGrepGlob.typtypst compile.typ(item1, item2)(key: value, key2: value2)[markup content]##figure[...]#image("file.png")text(...)[#numbering(...)]##figure(image("file.png"))#image// Incorrect (missing # inside content block)
text(...)[(numbering(...))]
// Correct
text(...)[(#numbering(...))]setshowsetshowheading.where(level: 1)// Set rule: configure optional parameters for an element type
#set heading(numbering: "I.")
#set text(font: "New Computer Modern")
// Show-set rule: apply a set rule only to selected elements
#show heading: set text(navy)
// Show transform rule: replace/reshape element output
#show heading: it => block[#emph(it.body)][]()arr[0]arr.at(0)#text(...)[numbering(...)]text(...)[#numbering(...)]#figure(#image("x.png"))[]{}color.hslhsl\begin{...}\sectiontabulartable#include "file.typ"@preview/package:version#{ }##(...)()key: value(elem,)