No description
Find a file
2026-08-27 09:51:33 +02:00
.forgejo/workflows chore: add readme, update typst 2026-07-23 17:01:38 +02:00
assets refactor: moved templates into packages 2026-07-23 10:54:49 +02:00
docs docs: add references and examples 2026-08-11 22:23:47 +02:00
fonts feat: add slides template for typst 2026-07-23 16:37:11 +02:00
.editorConfig initial commit, import templates and docs 2026-07-23 10:34:33 +02:00
.gitignore docs: add references and examples 2026-08-11 22:23:47 +02:00
IDEAS_en.md add mulitplayer feature 2026-08-27 09:51:33 +02:00
IDEAS_it.md add mulitplayer feature 2026-08-27 09:51:33 +02:00
IDEAS_review.md feat: add ideas and concepts 2026-08-11 22:24:07 +02:00
README.md chore: add readme, update typst 2026-07-23 17:01:38 +02:00
slides-example.typ feat: add slides template for typst 2026-07-23 16:37:11 +02:00
slides-template.typ feat: add slides template for typst 2026-07-23 16:37:11 +02:00
slides.typ feat: add slides template for typst 2026-07-23 16:37:11 +02:00
template.typ refactor: migrate slide latex template to typst 2026-07-23 15:27:47 +02:00
thesis-example.typ feat: add slides template for typst 2026-07-23 16:37:11 +02:00
thesis.typ refactor: migrate slide latex template to typst 2026-07-23 15:27:47 +02:00

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: thesis applica 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 usa image("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-slide
  • slide-block, alert-block, example-block
  • postit, postit2
  • #pause tra elementi per overlay (stile Beamer)

Fonts e risorse

  • Tesi: New Computer Modern (NewCM10-*, NewCMSans10-*, NewCMMath-*) in fonts/
  • 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.typthesis.pdf
  • modifiche a slides.typ / slides-template.typslides.pdf