Clone this repo in the Typst data directory, with
data_dir="$(
if [[ $(uname) = Linux ]]; then
echo "${XDG_DATA_HOME:-$HOME/.local/share}"
elif [[ $(uname) = Darwin ]]; then
echo "$HOME/Library/Application Support"
fi
)" git clone --depth=1 https://github.com/albertolazari/unipd-typst-doc \
"$data_dir/typst/packages/local/unipd-doc/0.0.1"
On Windows use
git clone --depth=1 https://github.com/albertolazari/unipd-typst-doc ^
"%APPDATA%\typst\packages\local\unipd-doc\0.0.1"
Then use this package in your document with
#import "@local/unipd-doc:0.0.1": *
At the beginning of the document you should put this
#show: unipd-doc(
title: [Your document's title],
subtitle: [A subtitle],
author: [Your name],
date: [Some date],
)
It will create the title and outline, and style the document