Loading...
Loading...
Author, refactor, and troubleshoot Typst slide decks built with Touying
npx skill4agent add apcamargo/typst-skills touying-author#show: <theme>.with(...)#slideexamples/simple.typexamples/default.typexamples/simple.typ#import "@preview/touying:0.6.1": *
#import themes.simple: *
#show: simple-theme.with(
aspect-ratio: "16-9",
footer: [Simple slides],
)main.typ#showconfig-*globals.typmain.typcontent.typ#include#importconfig.typdocs/start.mdglobals.typdocs/multi-file.mdcontent.typsections/sections/content.typsections/another-section.typmain.typconfig-pageconfig-commonconfig-infoconfig-colorsconfig-methodsconfig-storeset pageshowconfig-common(slide-level: n)#slidetouying-slide-wrapper#slide(repeat: n, self => [...])repeatutils.methods(self)uncoveronlyalternatives.
├── globals.typ
├── main.typ
└── content.typ.
├── globals.typ
├── main.typ
└── sections/
├── content.typ
└── another-section.typtouying-slidesslidetouying-slidetouying-slide-wrapperempty-slidepausemeanwhileuncoveronlyeffectalternativesalternatives-matchalternatives-fnalternatives-casesconfig-commonconfig-pageconfig-infoconfig-colorsconfig-methodsconfig-storedefault-configtouying-set-configappendixutils.*components.side-by-sidecomponents.adaptive-columnscomponents.progressive-outlinecomponents.custom-progressive-outlinetouying-reducertouying-equationtouying-mitexspeaker-notepdfpc.*touying-recalltouying-fn-wrapper<touying:hidden>docs/code-styles.mddocs/changelog.md<touying:unnumbered><touying:unoutlined><touying:unbookmarked><touying:skip>components.adaptive-columns(outline(...))components.progressive-outline== <touying:hidden>#pagebreak()---#empty-slide[...]config-common(handout: true)#show: appendixexamples/default.typ= Outline <touying:hidden>
#components.adaptive-columns(outline(title: none, indent: 1em))#pause#meanwhilecontext#uncover#onlyrepeatutils.methods(self)pausemeanwhile$ ... $touying-equation#pause#pause;examples/example.typexamples/simple.typ== Dynamic slide
Did you know that...
#pause
...you can see the current section at the top of the slide?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{2717}][use `#alternatives` function #sym.checkmark] for choosing one of the alternatives.
],
)composer#slide(1fr, 2fr)gridconfig-pageset pageconfig-methods(cover: utils.semi-transparent-cover.with(alpha: 85%))config-storeconfig-common(new-section-slide-fn: none)#show: <theme>.with(...)config-methods(init: ...)config-info(...)config-common(datetime-format: ...)examples/default.typ#import "@preview/touying:0.6.1": *
#import themes.default: *
#import "@preview/numbly:0.1.0": numbly
#show: default-theme.with(
aspect-ratio: "16-9",
config-common(
slide-level: 3,
zero-margin-header: false,
),
config-colors(primary: blue),
config-methods(alert: utils.alert-with-primary-color),
config-page(
header: text(gray, utils.display-current-short-heading(level: 2)),
),
)#speaker-note[...]config-common(show-notes-on-second-screen: right)bottomenable-pdfpc: truetypst query --field value --one "<pdfpc-file>"docs/start.mddocs/intro.mddocs/multi-file.mddocs/layout.mddocs/sections.mddocs/code-styles.mddocs/global-settings.mdconfig-infodocs/dynamic/*.mdpausemeanwhiledocs/themes/*.mddocs/external/*.mddocs/integration/*.mdexamples/*.typdocs/
├── build-your-own-theme.md
├── changelog.md
├── code-styles.md
├── dynamic
│ ├── complex.md
│ ├── cover.md
│ ├── equation.md
│ ├── handout.md
│ ├── other.md
│ └── simple.md
├── external
│ ├── pdfpc.md
│ ├── pympress.md
│ └── typst-preview.md
├── global-settings.md
├── integration
│ ├── cetz.md
│ ├── codly.md
│ ├── fletcher.md
│ ├── mitex.md
│ ├── pinit.md
│ └── theorion.md
├── intro.md
├── layout.md
├── multi-file.md
├── progress
│ ├── counters.md
│ └── sections.md
├── sections.md
├── start.md
├── themes
│ ├── aqua.md
│ ├── custom.md
│ ├── dewdrop.md
│ ├── metropolis.md
│ ├── simple.md
│ ├── stargazer.md
│ └── university.md
└── utilities
└── fit-to.md
examples/
├── aqua-zh.typ
├── aqua.typ
├── default.typ
├── dewdrop.typ
├── example.typ
├── metropolis.typ
├── simple.typ
├── stargazer.typ
└── university.typ