Frequently Asked Questions
Themes and Configuration
How do I choose or switch themes?
Import a theme and apply it with #show:
#import "@preview/touying:0.7.0": *
#import themes.simple: *
#show: simple-theme
= Section
== Slide
This uses the simple theme.
Available themes: simple, default, metropolis, aqua, dewdrop, stargazer, university.
How do I customize theme colors?
Pass a config-colors(...) argument to your theme:
#import "@preview/touying:0.7.0": *
#import themes.simple: *
#show: simple-theme.with(
aspect-ratio: "16-9",
config-colors(primary: rgb("#d94f00")),
config-info(title: [Custom Color], author: [Author]),
)
= Section
== Slide
The header now uses the custom primary color.
Layout and Columns
How do I create a two-column layout?
Use slide with a composer argument to split content into columns:
#import "@preview/touying:0.7.0": *
#import themes.simple: *
#show: simple-theme
#slide(composer: (1fr, 1fr))[
== Left Column
Some text on the left side.
][
== Right Column
Some text on the right side.
]
For unequal widths, adjust the fractions, e.g. (2fr, 1fr).