Universe

Create project in app

Build Status of the package Link to the original repository Link to the MIT License applying to this document

“Simpres” slide template for the typst presentation package touying.

It uses the Source Sans 3 font as the default content font, which can be downloaded here. Source Code 3 is the default font for any content of type raw. It can be downloaded here.

You can either initialize the template in a new folder with:

typst init @preview/touying-simpres:0.2.0

… or import the template to an existing document with:

#import "@preview/touying-simpres:0.2.0": *

Configuration

Use #show: touying-simpres.with() to configure the template as needed.

  • aspect-ratio: Default is “16-9”, alternatively “4-3”
  • lang: The language of the respective presentation (default “en”)
  • font: The font of the presentation (default “Source Sans 3”)
  • font-raw: Monospace font for raw content (default: Source Code Pro)
  • text-size: Size of the text content (default “22pt”)
  • text-size-raw: Size of type raw content (i.e. code listings) (default: 11pt)
  • show-level-one: (bool) Show section heading on the content slides (default: true)
  • footer: The footer of the content slides (default: none)

Other parameters, such as title, subtitle, author, date and institution are taken from the config-info object, which looks as follows:

  config-info(
    title: [The "Simpres" slide template],
    subtitle: [Straightforward Presentations],
    author: [thy0s],
    date: datetime.today(),
    institution: [Funk Town State University],
  )

Slide types

  • #outline-slide: Dedicated outline slide with 2 parameters
    • depth: Maximum heading level to display (default: 2)
    • title: Override the default “Outline”, e.g. when using a different language
  • #focus-slide - High contrast slide with no configuration options

The template also shows a #new-section-slide for every level one heading and allows for overriding the default settings of show-level-one and footer by calling the #slide function directly.

Credit

Parts of this template were inspired by and taken from the university theme and the metropolis theme aswell as the clean-math-presentation.

Contribution

If you have any problems with this template feel free to open an issue. Also, if you have anything useful to add to this template, you can open a pull request and it will be looked at. It might take some time… :disappointed_relieved:

All constructive contributions are welcome and highly appreciated!

Examples

Title Slide

Example Title Slide (shows parameters from config-info)

Outline Slide

Example Outline Slide (with #outline-slide(depth: 2))

Section Slide

Example Section Heading (i.e. L1 Heading)

Content Slide (Without L1 Heading)

Example Content Slide without L1 Heading

Content Slide (With L1 Heading)

Example Content Slide with L1 Heading (incl. Code Listing and custom footer)

Focus Slide

Example Focus Slide (White Text on dark blue background)