All skills
apcamargo avatar

/touying-author

@433372a

Author, refactor, and troubleshoot Typst slide decks built with Touying

Use this Skill: https://skilld.dev/gh/apcamargo/typst-skills/touying-author

This session only. Nothing lands on disk.

docsthemessimple.md

≈762 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Simple Theme

image

This theme originates from Polylux, created by Andreas Kröpelin.

Considered a relatively straightforward theme, you can use it to create simple slides and freely incorporate features you like.

Initialization

You can initialize it using the following code:

#import "@preview/touying:0.6.1": *
#import themes.simple: *

#show: simple-theme.with(
  aspect-ratio: "16-9",
  footer: [Simple slides],
)

The register function in the theme accepts the following parameters:

  • aspect-ratio: The aspect ratio of the slides, which can be "16-9" or "4-3", with a default of "16-9".
  • header: The content displayed in the header, with a default of utils.display-current-heading(setting: utils.fit-to-width.with(grow: false, 100%)). You can also pass a function like self => self.info.title.
  • header-right: The content displayed on the right side of the header, with a default of self => self.info.logo.
  • footer: The content displayed in the footer, with a default of [] (empty). You can also pass a function like self => self.info.author.
  • footer-right: The content displayed on the right side of the footer, with a default of context utils.slide-counter.display() + " / " + utils.last-slide-number.
  • primary: The primary color of the theme, with a default of aqua.darken(50%).
  • subslide-preamble: By default, it adds the subsection title to the current slide.

Slide Function Family

The Simple theme provides a variety of custom slide functions:

#centered-slide(section: ..)[
  ...
]

A slide with content centered, and the section parameter can be used to create a new section.


#title-slide[
  ...
]

Similar to centered-slide, this is provided for consistency with Polylux syntax.


#slide(
  config: (:),
  repeat: auto,
  setting: body => body,
  composer: components.side-by-side,
)[
  ...
]

A default slide with headers and footers, where the header corresponds to the current section, and the footer is what you set.


#focus-slide(foreground: ..., background: ...)[
  ...
]

Used to draw attention, it optionally accepts a foreground color (defaulting to white) and a background color (defaulting to auto, i.e., self.colors.primary).

Example

#import "@preview/touying:0.6.1": *
#import themes.simple: *

#show: simple-theme.with(
  aspect-ratio: "16-9",
  footer: [Simple slides],
)

#title-slide[
  = Keep it simple!
  #v(2em)

  Alpha #footnote[Uni Augsburg] #h(1em)
  Bravo #footnote[Uni Bayreuth] #h(1em)
  Charlie #footnote[Uni Chemnitz] #h(1em)

  July 23
]

== First slide

#lorem(20)

#focus-slide[
  _Focus!_

  This is very important.
]

= Let's start a new section!

== Dynamic slide

Did you know that...

#pause

...you can see the current section at the top of the slide?

Source: SKILL.md on GitHub

1 warning17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides a set of instructions and documentation for authoring Typst slide decks using the Touying library. It involves processing and refactoring Typst code, which presents a standard indirect prompt injection surface typical of code-centric skills.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    44/44 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 433372a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 3 weeks ago

README badge

README badge for apcamargo/typst-skills/touying-author