touying-author
БесплатноБез исполняемых скриптовНе проверенAuthor, refactor, and troubleshoot Typst slide decks built with Touying
от apcamargo★ 245 звёзд на GitHubОб этом скилле
Touying Author
Guide Typst presentation authoring with Touying, emphasizing clean structure, repeatable configuration, and slide-safe patterns.
Quick start
- Import Touying and a theme, then apply the theme with
#show: <theme>.with(...). - Keep configuration centralized; include slide content from separate files.
- Use headings to create slides; use
#slidefor custom layouts or animations. - Start from
examples/simple.typfor a minimal deck, orexamples/default.typfor the bare theme.
Snippet from examples/simple.typ:
#import "@preview/touying:0.6.1": *
#import themes.simple: *
#show: simple-theme.with(
aspect-ratio: "16-9",
footer: [Simple slides],
)
Best practices and code structure
- Use a single entry file (e.g.,
main.typ) that applies#showand allconfig-*calls. - For multi-file decks, follow the
globals.typ+main.typ+content.typpattern; use#includefor content and#importfor globals to avoid circular refs. - Docs use both
config.typ(seedocs/start.md) andglobals.typ(seedocs/multi-file.md) for the shared config file; pick one name and use it consistently in your project. - For large decks, move
content.typintosections/and includesections/content.typ(and optionalsections/another-section.typ) frommain.typ. - Prefer
config-page,config-common,config-info,config-colors,config-methods, andconfig-storeover directset pageor ad-hoc globalshow. - Use headings for most slides; use
config-common(slide-level: n)to choose which heading levels create slides. - Use
#slideonly for custom layout or animation; always wrap slide functions withtouying-slide-wrapper. - For callback-style animation (
#slide(repeat: n, self => [...])), setrepeatexplicitly and useutils.methods(self)to accessuncover,only, andalternatives.
Single-file structure
.
├── globals.typ
├── main.typ
└── content.typ
Multi-file structure
.
├── globals.typ
├── main.typ
└── sections/
├── content.typ
└── another-section.typ
Core API map (exports)
- Slides:
touying-slides,slide,touying-slide,touying-slide-wrapper,empty-slide - Dynamics:
pause,meanwhile,uncover,only,effect,alternatives,alternatives-match,alternatives-fn,alternatives-cases - Config:
config-common,config-page,config-info,config-colors,config-methods,config-store,default-config,touying-set-config,appendix - Utilities:
utils.*(fit-to-height, fit-to-width, cover helpers, progress, heading helpers) - Components:
components.side-by-side,components.adaptive-columns,components.progressive-outline,components.custom-progressive-outline - Integrations:
touying-reducer,touying-equation,touying-mitex,speaker-note,pdfpc.* - Recall:
touying-recall,touying-fn-wrapper
Slide structure and headings
- Use heading labels to control numbering/outline/bookmarks: use
<touying:hidden>(seedocs/code-styles.md), and seedocs/changelog.mdfor<touying:unnumbered>,<touying:unoutlined>,<touying:unbookmarked>, and<touying:skip>. - Use
components.adaptive-columns(outline(...))for a table of contents slide; usecomponents.progressive-outlinefor progress-aware outlines. - Use
== <touying:hidden>to insert a blank title slide and clear the previous heading context. - Use
#pagebreak()or---to split slides without changing headings. - Use
#empty-slide[...]for slides without header/footer. - Use
config-common(handout: true)to keep only the last subslide per slide in handout output. - Use
#show: appendixto freeze last-slide counts after the main deck.
Snippet from examples/default.typ:
= Outline <touying:hidden>
#components.adaptive-columns(outline(title: none, indent: 1em))
Animations and dynamic content
- Use
#pauseand#meanwhilefor simple reveals; avoid using them insidecontextwhere marks are not supported. - Use
#uncoverto reserve layout space; use#onlyto remove layout space when hidden. - When marks cause warnings, use callback-style slides with
repeatandutils.methods(self). - For math animations, use
pause/meanwhileinside$ ... $; usetouying-equationwhen you need the helper for inline equation text (you can also use#pauseor#pause;). - See
examples/example.typfor simple/complex/callback animations and equation animations.
Snippet from examples/simple.typ:
== Dynamic slide
Did you know that...
#pause
...you can see the current section at the top of the slide?
Snippet from examples/example.typ:
#slide(
repeat: 3,
self => [
#let (uncover, only, alternatives) = utils.methods(self)
At subslide #self.subslide, we can
use #uncover("2-")[`#uncover` function] for reserving space,
use #only("2-")[`#only` function] for not reserving space,
#alternatives[call `#only` multiple times \u{271
Установить touying-author в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл touying-author?
Author, refactor, and troubleshoot Typst slide decks built with Touying
Как установить скилл touying-author?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл touying-author запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic