typst-authoring
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "write Typst", "create a Typst document", "format in Typst", "convert to Typst", "Typst syntax", "Typst…
от shepherdjerred★ 85 звёзд на GitHubОб этом скилле
Typst Authoring Reference
Typst is a modern typesetting language with three syntactic modes: markup (default), code (#), and math ($). Understanding mode transitions is the core skill for productive authoring.
Three Modes at a Glance
- Markup mode (default) — Text,
*bold*,_italic_,= Heading,- list,+ ordered,/ term: def - Code mode (enter with
#) — Variables, functions, control flow, imports. End with;to return to markup. - Math mode (enter with
$) —$inline$(no spaces) or$ block $(spaces). Single letters = italic variables; multi-letter = function names.
Essential Syntax Quick Reference
| Element | Syntax |
|---|---|
| Bold / Italic | *bold* / _italic_ |
| Heading | = H1, == H2, === H3 |
| Lists | - bullet, + numbered, / Term: def |
| Link | https://... or #link("url")[text] |
| Label / Reference | <name> / @name |
| Code expression | #expr |
| Line break | \ |
| Comment | // line or /* block */ |
| Non-breaking space | ~ |
| Dashes | -- (en), --- (em) |
| Escape | \#, \@, \$, \*, etc. |
Set Rules and Show Rules
Set rules configure defaults for functions:
#set text(font: "New Computer Modern", size: 11pt)
#set par(justify: true)
#set heading(numbering: "1.")
#set page("a4", margin: (x: 2.5cm, y: 2.5cm))
Set rules are scoped to their enclosing content block [...].
Show rules transform rendering:
#show heading: set text(navy) // show-set (composable)
#show heading: it => emph(it.body) // transformational
#show: columns.with(2) // everything rule
#show heading.where(level: 1): set align(center) // filtered
Selectors: element functions, .where(field: val), "text", regex(...), <label>, or bare show: for everything.
Prefer show-set rules over transformational rules for composability.
Page Layout Essentials
#set page("a4", margin: (x: 2.5cm, y: 2.5cm), numbering: "1")
#set page(header: [Title #h(1fr) Author], footer: context [
#h(1fr) #counter(page).display("1/1", both: true)
])
#set page(columns: 2) // page-level columns (preferred)
#colbreak() // manual column break
#pagebreak(weak: true) // page break
When a custom footer is set, the numbering parameter is silently ignored — display page numbers manually via counter(page).display().
Code Mode Essentials
Enter with #. Key types: none, auto, bool, int, float, str, content, array, dictionary, length, ratio, fraction, function.
Single-element array: (1,) (trailing comma required). Empty dict: (:).
#let x = 42
#if x > 10 [big] else [small]
#for item in items [#item, ]
#let greet(name, excited: false) = [Hello #name#if excited [!]]
Functions are pure. Use .with() for partial application. Import with #import "file.typ": item or #import "@preview/pkg:version": item.
Math Mode Essentials
$a^2 + b^2 = c^2$ // inline
$ sum_(i=0)^n a_i = integral f(x) dif x $ // block
$ frac(a, b), sqrt(x), root(3, x) $ // fractions, roots
$ mat(1, 2; 3, 4) $ // matrix (semicolons = rows)
$ vec(a, b, c) $ // vector
$ cases(1 "if" x > 0, 0 "else") $ // cases
Greek: alpha, beta, gamma, pi, etc. Blackboard bold: NN, ZZ, RR, CC. Accents: hat(x), dot(x), tilde(x), arrow(x). Styles: bold(A), cal(A), bb(N), frak(P).
Equation numbering: #set math.equation(numbering: "(1)"). Reference with $ ... $ <label> and @label.
Tables Quick Reference
#table(
columns: (1fr, auto, auto),
table.header([*Name*], [*Age*], [*City*]),
[Alice], [30], [NYC],
[Bob], [25], [LA],
)
Key features: table.cell(colspan: 2), table.cell(rowspan: 3), table.hline(), table.vline(). Alignment/fill/stroke accept arrays (cycle per column) or (x, y) => functions. Use table for data (accessible), grid for layout.
Figures and Bibliography
#figure(image("photo.jpg", width: 80%), caption: [A photo.]) <fig>
@fig shows the photo.
#bibliography("refs.bib", style: "ieee")
@key, @key[p.~7], #cite(<key>, form: "prose")
#footnote[Note text]
Key Gotchas
- Fraction parens consumed:
(a+b)/cremoves the parens. Double them:((a+b))/c. contextrequired for introspection:counter.get(),state.get(),query(),measure(),here().- Counter starts at zero: Step before display.
step()/update()return content that must be
Установить typst-authoring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл typst-authoring?
This skill should be used when the user asks to "write Typst", "create a Typst document", "format in Typst", "convert to Typst", "Typst syntax", "Typst template", "Typst math", "Typst table", or works with .typ files. Provides comprehensive Typst markup, scripting, math, layout, and styling reference for authoring documents. Also use proactively when generating .typ output files (e.g., in deep-research reports).
Как установить скилл typst-authoring?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typst-authoring запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic