Create a Template
Create a new directory and open it in your IDE with Typst support, or start a new empty document in the online Typst editor. The simplest Oicana template consists of a typst.toml file and a Typst source file with some static content.
Template with static content
Section titled “Template with static content”Create a main.typ file with the following content. If you are using the online Typst editor, it should already have created an empty file for you.
#set document(date: datetime.today())
= Hello from Typst
Compiling this template will always result in the same document.We will add inputs later on in the #text(fill: blue, weight: "bold")[Getting Started Guide].The preview of main.typ should show the title and text.
To make an Oicana template out of this Typst project, we need to put a typst.toml file next to main.typ and define some metadata.
[package]name = "example"version = "0.1.0"entrypoint = "main.typ"
[tool.oicana]manifest_version = 1The manifest file gives our template the name example, the semantic version 0.1.0, and defines the entrypoint as main.typ. The tool.oicana section only configures the Oicana manifest version for now.
Packaging
Section titled “Packaging”To compile the template through Oicana integrations, like shown in later chapters of this guide, it has to be packaged. Navigate into the template directory in a terminal and execute oicana pack. This will create a file called example-0.1.0.zip.
Complete code at the end of this chapter
#set document(date: datetime.today())
= Hello from Typst
Compiling this template will always result in the same document.We will add inputs later on in the #text(fill: blue, weight: "bold")[Getting Started Guide].[package]name = "example"version = "0.1.0"entrypoint = "main.typ"
[tool.oicana]manifest_version = 1