
Slides for the Federal University of Acre (UFAC), Brazil, in Typst with Touying. For lectures and academic presentations, from coursework to thesis defenses.
Manual (PDF) · Example decks · Skill for AI agents · Changelog
Start
typst init @preview/touying-ufac-unofficial:0.3.0
This creates a deck from the template. In the new folder, typst watch main.typ compiles it. The theme needs the font New Computer Modern Sans, which Typst does not bundle: see Install the font in the manual.
// Starting deck for the touying-ufac-unofficial theme. Syntax: the manual, docs/manual.pdf; whole decks: example/ (a
// lecture, coursework, a thesis defense), both at https://github.com/lucaslrodri/touying-ufac-unofficial/tree/v0.3.0
#import "@preview/touying:0.7.4": *
#import "@preview/touying-ufac-unofficial:0.3.0": *
#show: ufac-theme.with(
aspect-ratio: "16-9",
lang: "en", // "pt-br" (default), "en" or "es"
config-info(
flavor: "lecture", // or "coursework", "tcc", "dissertation", "thesis": start from example/coursework.typ, tcc.typ
subject: [Subject name], // or Touying's `title:`
subject-code: [CODE or Department], // or `short-title:`
unit-title: [Title of the teaching unit], // or `subtitle:`
unit: [Teaching unit I], // or `short-subtitle:`
author: [Prof. Dr. Your Name],
// counter-prefix: [2.], // "Exercise 2.N" in the second unit; the flavor "lecture" gives [1.]
),
)
#title-slide()
== Slide title
=== Subtitle
Text.

Choose a flavor
flavor in config-info sets where the authors go on the cover, the tag on the cover of a thesis defense and the numbering of the exercises and examples, unless the deck sets them itself.
flavor |
For |
|---|---|
"lecture" (default) |
a lecture of a course |
"coursework" |
the work of students for a course |
"tcc", "dissertation", "thesis" |
the defense of an undergraduate thesis, a master’s dissertation or a doctoral thesis |
Choose a cover style
cover-style in ufac-theme sets the background of the cover and of the closing slide.
"bubbles" (default) |
"gradient" |
"plain" |
|---|---|---|
![]() |
![]() |
![]() |
Elements
Headings make the slides, and a few Markdown-like shorthands make arrow lists, emphases, boxes and quotes. Every detail is in the manual.
| Preview | Element |
|---|---|
![]() |
Slides. == opens a slide and === adds a subtitle. --- goes on to a new page. -> at the start of a paragraph makes a list with arrows. |
![]() |
Sections. = Title opens a section slide; an image after it goes on the right. |
![]() |
Exercises and examples. == Title <exercise> or <example>, numbered. #answer (in an exercise) or #solution (in an example) opens the answer or the solution; #answer(sep: ":") writes “Answer:”. |
![]() |
Emphasis. *bold*, _italic_, ~~alert~~, ==highlight== and ~underline~. The last three take plain text only; for markup inside, use #alert[..], #highlight[..] and #underline[..]. |
![]() |
Boxes. > text makes a box and > $ .. $ an equation box. "A quotation." alone in a paragraph is a quote. |
![]() |
Callouts. #caution, #tip, #remark (Reminder), #note, #example and #examples. |
![]() |
Tables. The header row is blue; in a cell with table.cell(fill: colors.secondary-lighter), the bold text takes a darker tone of the fill. |
![]() |
Code. A fenced python, typst, matlab, bash or sh block shows its language; a text block is the output. |
![]() |
Closing slide. #ending-slide[Thank you!][Subtitle][Body]. |
Examples
Three example decks:
| Preview | Deck |
|---|---|
![]() |
lecture (PDF): a lecture with an outline, step-by-step reveals, exercises and code. |
![]() |
coursework (PDF): the work of students, with the students and the teacher under their labels on the cover. |
![]() |
tcc (PDF): the defense of an undergraduate thesis. |
Show the code of example/lecture.typ
// Example deck of the touying-ufac-unofficial theme: a lecture of a course, with the aliases of a course (`subject`,
// `subject-code`, `unit`, `unit-title`, `semester`) and the prefix of its unit (`counter-prefix`), a slide revealed
// step by step, exercises and examples with their solutions, callouts and the closing slide.
#import "@preview/touying:0.7.4": *
#import "@preview/touying-ufac-unofficial:0.3.0": *
#show: ufac-theme.with(
lang: "en",
config-info(
flavor: "lecture",
subject: [Introductory Astronomy],
subject-code: [AST101],
unit: [Unit II],
unit-title: [The solar system],
semester: [2026.2],
author: [Prof. Dr. Your Name],
counter-prefix: [2.], // the second unit: "Exercise 2.1"
),
)
#title-slide()
== Contents
#outline()
= The planets
== Orbits
=== Kepler's laws
-> The planets move on ellipses, with the Sun at a focus
-> A planet sweeps equal areas in equal times
-> The square of the period grows with the cube of the orbit
> == Definition
> An astronomical unit (au) is the mean distance from the Earth to the Sun, about $1.5 times 10^8$ km.
#tip[In years and astronomical units, Kepler's third law is just $T^2 = a^3$.]
// Touying's animations: a `#pause` in a paragraph of its own between two lines, then `#uncover(3)` around a box,
// which shows on the third step
== One step at a time
-> The orbit of a planet is an ellipse
#pause
-> The Sun sits at one of its foci
#uncover(3)[
#emph-box(title: [Kepler's first law])[The planets move on ellipses, with the Sun at one focus.]
]
== The period of Mars <example>
Mars orbits the Sun at $a = 1.52$ au. How long is its year?
#pause
#solution
From $T^2 = a^3$:
$ T = sqrt(1.52^3) approx 1.87 "years" $
== Jupiter and Saturn <exercise>
Find the period of:
+ Jupiter, at $5.2$ au
+ Saturn, at $9.5$ au
+ an asteroid at $2.8$ au
#answer
About $11.9$, $29.3$ and $4.7$ years.
= On the computer
== The periods in Python
```python
planets = {"Mercury": 0.39, "Earth": 1.00, "Mars": 1.52}
for name, a in planets.items():
print(name, round(a ** 1.5, 2))
```
```text
Mercury 0.24
Earth 1.0
Mars 1.87
```
#tip[`a ** 1.5` is the same as `sqrt(a ** 3)`.]
#ending-slide[Thank you!][Next lecture: the Moon][Read chapter 3 of the book.]
Show the code of example/coursework.typ
// Example deck of the touying-ufac-unofficial theme: the work of students for a course (`flavor: "coursework"`), with
// the students and the teacher under their labels on the cover (the layout "stack" of the flavor) and `#info`.
#import "@preview/touying:0.7.4": *
#import "@preview/touying-ufac-unofficial:0.3.0": *
#show: ufac-theme.with(
lang: "en",
config-info(
flavor: "coursework",
subject: [Applied Statistics],
subject-code: [STA210],
unit-title: [How long does it take to get to class?],
author: [_Students_ \ First Student, Second Student \ _Teacher_ \ Prof. Dr. Teacher Name],
year: 2026,
),
)
#title-slide()
== The survey
#cols(columns: (3fr, 2fr))[
-> 40 students answered a short form
-> Each one gave the time from home to class
-> On foot, by bike, by bus or by car
The mean is #eq-box[$overline(x) = 1/n sum_i x_i$].
][
#emph-box(title: [Course])[
#info("subject") (#info("subject-code")), #info("year").
]
]
== The spread <example>
Five students took 10, 15, 20, 25 and 30 minutes. Find the mean and the standard deviation.
#solution
$ overline(x) = 20 "min", quad s = sqrt((100 + 25 + 0 + 25 + 100) / 4) approx 7.9 "min" $
#caution[The sample standard deviation divides by $n - 1$, not by $n$.]
#ending-slide()
Show the code of example/tcc.typ
// Example deck of the touying-ufac-unofficial theme: the defense of an undergraduate thesis (`flavor: "tcc"`), with
// the student and the advisors under their labels, the cover style "gradient" and the tag of the work on the cover.
#import "@preview/touying:0.7.4": *
#import "@preview/touying-ufac-unofficial:0.3.0": *
#show: ufac-theme.with(
lang: "en",
cover-style: "gradient",
config-info(
flavor: "tcc",
title: [Recognizing bird songs in city parks],
course: [Bachelor's in Biology],
author: [_Student_ \ Student Name \ _Advisor_ \ Prof. Dr. Advisor Name \ _Co-advisor_ \ Prof. Dr. Co-advisor Name],
date: [December 2026],
contact: [`student.name@example.com`],
),
)
#title-slide()
= Introduction
== The problem
-> City parks are full of birds, heard more often than seen
-> Telling the songs apart by ear takes years of practice
-> A phone can record them, and a program can name the species
#cols(divider: true)[
#tag[goal]
Name the species from a short recording.
][
#tag(color: colors.quaternary)[result]
A classifier evaluated on 300 recordings.
]
= Method
== The recordings
#table(columns: 3, table.header([Set], [Recordings], [Accuracy]),
[Training], [1200], [--],
[Validation], [300], [0.88],
[Test], [300], [0.86],
)
#note[The accuracy is the share of recordings named right (0 to 1).]
= Conclusion
== Contributions
- A set of 1800 labeled recordings of 25 species
- A classifier with an accuracy of 0.86 on the test set
- The code, open
#ending-slide[Thank you!][Questions?][#info("contact")]
License
The theme is MIT. The template is MIT-0: a deck made from it needs no attribution.
The icons in assets/icons/ come from Octicons (© GitHub Inc., MIT License), Phosphor (MIT License), Devicon (MIT License), Simple Icons (CC0), Material Icon Theme (MIT License) and VSCode Icons (MIT License), in Iconify format.
The UFAC logo (assets/ufac-logo.svg) belongs to the Federal University of Acre. This theme is unofficial: the university does not endorse it.














