No description
| .forgejo/workflows | ||
| assets | ||
| docs | ||
| fonts | ||
| .editorConfig | ||
| .gitignore | ||
| IDEAS_en.md | ||
| IDEAS_it.md | ||
| IDEAS_review.md | ||
| README.md | ||
| slides-example.typ | ||
| slides-template.typ | ||
| slides.typ | ||
| template.typ | ||
| thesis-example.typ | ||
| thesis.typ | ||
Tesi e slides — Università di Ferrara (Typst)
Template Typst per la tesi di laurea e le slide di presentazione, allineati allo stile ufficiale UniFE (ex template LaTeX).
Requisiti
- Typst ≥ 0.15 (CI usa
0.15.1) - Fonts locali in
fonts/(già nel repo; passare sempre--font-path fonts)
Dipendenza slides: pacchetto Touying 0.6.1 (scaricato automaticamente alla prima compilazione).
Compilazione
Dalla root del repository:
# Tesi
typst compile --font-path fonts thesis.typ thesis.pdf
# Slide
typst compile --font-path fonts slides.typ slides.pdf
Rebuild automatico durante la scrittura:
typst watch --font-path fonts thesis.typ thesis.pdf
typst watch --font-path fonts slides.typ slides.pdf
Esempi di partenza (stesso contenuto dei file di lavoro):
typst compile --font-path fonts thesis-example.typ
typst compile --font-path fonts slides-example.typ
Layout del progetto
| Percorso | Ruolo |
|---|---|
thesis.typ |
Contenuto della tesi |
template.typ |
Tema tesi (pagina titolo, capitoli, header, indice) |
slides.typ |
Contenuto delle slide |
slides-template.typ |
Tema Beamer-like Warsaw + OliveGreen (Touying) |
*-example.typ |
Copie di esempio da cui partire |
fonts/ |
New Computer Modern (tesi) + TeX Gyre Heros (slide) |
assets/ |
Logo e immagini (logo.png, …) |
docs/ |
Linee guida ufficiali UniFE (PDF) |
.forgejo/workflows/ |
CI: build + release di thesis.pdf / slides.pdf |
Templating
Tesi
In thesis.typ:
#import "template.typ": thesis, title-page, indice
#show: thesis
#title-page(
title: "Il mio titolo…",
supervisor: [Prof. Nome #smallcaps[Cognome]],
candidate: [Nome #smallcaps[Cognome]],
academic-year: "2025--2026",
)
#indice()
= Introduzione
…
#show: thesisapplica geometria A4, font New Computer Modern, header a due lati, stile capitoli.- I capitoli sono heading di livello 1 (
=). Dopo il frontespizio / indice, un#pagebreak()fa partire la numerazione come nel template ufficiale. - Per figure: metti i file in
assets/e usaimage("assets/…").
API principale in template.typ: thesis, title-page, indice.
Slide
In slides.typ:
#import "@preview/touying:0.6.1": *
#import "slides-template.typ": *
#show: warsaw-theme.with(
config-info(
title: […],
short-title: […],
author: […],
date: datetime(…),
institution: […],
extra: […], // relatore / correlatore
logo: image("assets/logo.png", height: 32.6pt),
),
)
#title-slide()
#outline-slide()
= Sezione
== Sottosezione
#slide(title: [Titolo frame])[
…
]
Helpers utili da slides-template.typ:
slide,title-slide,outline-slide,thanks-slideslide-block,alert-block,example-blockpostit,postit2#pausetra elementi per overlay (stile Beamer)
Fonts e risorse
- Tesi: New Computer Modern (
NewCM10-*,NewCMSans10-*,NewCMMath-*) infonts/ - Slide: TeX Gyre Heros (metrica compatibile con Helvetica) in
fonts/ - Logo:
assets/logo.png(usato in tesi e slide)
Senza --font-path fonts Typst può cadere su font di sistema e il layout non corrisponde più al template.
Documentazione di facoltà / ateneo: cartella docs/.
CI
Su push a main, Forgejo Actions compila e pubblica in release:
- modifiche a
thesis.typ/template.typ→thesis.pdf - modifiche a
slides.typ/slides-template.typ→slides.pdf