[!WARNING] This theme is NOT affiliated with the University of Strasbourg. The logo, fonts and icons are the property of the University of Strasbourg.
touying-unistra-pristine is a Touying theme for creating presentation slides in Typst, adhering to the core principles of the style guide of the University of Strasbourg, France (French). It is an unofficial theme and it is NOT affiliated with the University of Strasbourg.
This theme was partly created using components from tud-slides and grape-suite.
- Focus Slides, with predefined themes and custom colors support.
- Hero Slides.
- Gallery Slides.
- Icons (see Icons).
- Better Citations (see Citations).
- Universally Toggleable Header/Footer (see Configuration).
- Subset of predefined colors taken from the style guide of the University of Strasbourg (see colors.typ).
See example/example.pdf for an example PDF output, and example/example.typ for the corresponding Typst file.
These steps assume that you already have Typst installed and/or running.
Import from Typst Universe
#import "@preview/touying:0.6.1": *
#import "@preview/touying-unistra-pristine:1.4.0": *
#show: unistra-theme.with(
aspect-ratio: "16-9",
config-info(
title: [Title],
subtitle: [_Subtitle_],
author: [Author],
date: datetime.today().display("[month repr:long] [day], [year repr:full]"),
),
)
#title-slide[]
= Example Section Title
== Example Slide
A slide with *important information*.
#lorem(50)
Local installation
1. Clone the project
git clone https://github.com/spidersouris/touying-unistra-pristine
2. Import Touying and touying-unistra-pristine
See example/example.typ for a complete example with configuration.
#import "@preview/touying:0.6.1": *
#import "src/unistra.typ": *
#import "src/colors.typ": *
#import "src/icons.typ": *
#show: unistra-theme.with(
aspect-ratio: "16-9",
config-info(
title: [Title],
subtitle: [_Subtitle_],
author: [Author],
date: datetime.today().display("[month repr:long] [day], [year repr:full]"),
),
)
#title-slide[]
= Example Section Title
== Example Slide
A slide with *important information*.
#lorem(50)
[!NOTE] The default font used by touying-unistra-pristine is “Unistra A”, a font that can only be downloaded by students and staff from the University of Strasbourg from here. If the font is not installed on your computer, Segoe UI or Roboto will be used as a fallback, in that specific order. You can change that behavior in the settings.
touying-unistra-pristine supports icons from the University of Strasbourg (Unistra Symbol). These icons can only be downloaded by students and staff from the University of Strasbourg from here.
As an alternative, or in addition to these icons, you can also use Nova Icons, based on Font Awesome 4.7, which can be downloaded freely from here (.ttf format).
The full list of Unistra Symbol and Nova Icons is available here.
Once these fonts are installed in your environment, they can be used with the us-icon()
(Unistra Symbol) and the nv-icon()
(Nova Icons) functions. Both functions take the icon string ID (which can be found in the list linked above) without the prefix as an argument. For example:
#nv-icon("coins") // original name is "nv-coins", but no need for the prefix
#us-icon("plant") // original name is "us-plant", but no need for the prefix
Icons are also supported for focus slides. An icon can be defined using the icon
parameter to be shown above the title:
#focus-slide(theme: "berry", icon: us-icon("edit-done"))[Focus Slide Title]
Icon function definitions and character-to-string mapping in src/icons.typ are generated automatically using scripts/get_icons.py.
touying-unistra-pristine improves on the handling of citations for French users by adding functions that formats citations in accordance with standard academic styling (use of non-breaking space + semicolon to separate multiple citations; use of colon before page number; replacement of “&” with “et”). These should be used along the assets/apa.csl
file, which should be specified as the value of the style
argument when invoking #bibliography()
. When using this style:
@label
acts as a prose citation (e.g., “Astley et Morris (2020)”). Supplements are accepted and will show as "Astley et Morris (2020:[supplement]).#pcite(label, ..args)
acts as a parenthesis citation for a single label. E.g., “(Astley et Morris, 2020)”. Supplement can be specified as an additional argument to the function. Example:#pcite(<a>, 5)
.#mcite(..args)
acts as a parenthesis citation for multiple labels. E.g., “(Astley et Morris, 2020 ; Morris et Astley, 2021)”. Supplement for the corresponding label can be specified as an additional argument within the citation array. Example:#mcite((<a>, 5), (<b>, "24-25"), (<c>,))
.
The theme can be configured to your liking by adding the config-store()
object when initializing unistra-theme
. An example with the quotes
setting can be found in example/example.typ.
A complete list of settings can be found in the config-store
object in src/unistra.typ.