I have a Beamer presentation that I am trying to convert to Touying. It is a slide pack for an academic class, so I have structured it into sections and subsections. Each section and subsection starts with a full-page title slide. I guess the content slides are then subsubsections. Is this something I can do with one of the Touying themes? Or is it possible to do this in Touying with a customized theme?
Hi!
If your goal is to have dedicated subsection title slides, you might want to look at presentate. It provides structured themes with native support for parts, sections, and subsections, including automatic transition slides between them. This makes it quite close to a Beamer-like workflow where each structural level can have its own divider slide.
A good concrete example is unofficial-sorbonne-presentation, which is built on top of presentate. It’s an academic-style theme that already includes:
- transition slides for parts / sections / subsections
- consistent visual hierarchy
- navigation elements like breadcrumbs
So instead of manually defining subsection title slides, they are handled directly by the theme.
I’m not sure whether Touying currently has a theme that provides the same kind of built-in section or subsection title slides.
You’d need to write your own theme, or adapt one of the current themes.
It should be pretty easy.
Touying exposes under its config-common the parameters:
slide-fn: function | none = _default,
new-section-slide-fn: function | none = _default,
new-subsection-slide-fn: function | none = _default,
new-subsubsection-slide-fn: function | none = _default,
new-subsubsubsection-slide-fn: function | none = _default,
which you may pass to a theme as e.g. the following:
#import "@preview/touying:0.6.3": *
#import themes.university: *
#show: university-theme.with(
aspect-ratio: "16-9",
config-info(
title: [Title],
subtitle: [Subtitle],
author: [Authors],
date: datetime.today(),
institution: [Institution],
logo: emoji.school,
),
config-common(
new-subsection-slide-fn: new-section-slide.with(level:2)
)
)
the new-section-slide is already exposed by the university theme as its new top level slide function and you can just repurpose it for your case.
Take a look into the provided themes if you feel happy with one.
You may however also always utilize the way the themes work in general by just writing your own with show: touying-slides.with(...) although I would advice to write a proper theme if you are planning to use it long term.
Some minor advice: If you plan to have content under your level 2 heading, be sure to include a pagebreak before you write the content, otherwise it may appear on the subsection slide that gets emitted for the heading if the function is defined that way.
Doing
== My Subsection
Content
will for the university theme have both the title and Content on the subsection introduction slide
if you want it on the next one, simply do
== My Subsection
---
Content
or write pagebreak(), those two are equivalent in touying.
Thanks, this helped! I now have my presentation in a format I like.
Thanks, nice example!