Template Dependencies
An Oicana template can use any Typst package. Public packages can be found in the Typst Universe. You can also install private packages locally and use them in Oicana templates. Using dependencies works just as for any other Typst document.
Local packages
Section titled “Local packages”A locally installed package can have any namespace. A common one is @local, but feel free to use your company name or any other identifier. To install a local Typst package, you can use a community developed tool or manually copy files to the right place.
Typship
Section titled “Typship”Typship is a tool for Typst package development and publishing. Its CLI can install local Typst packages for you. To install a package into the @local namespace, run typship install local in the package directory.
Manual
Section titled “Manual”Installing a Typst package means that Typst can find it at {data-dir}/typst/packages/{namespace}/{name}/{version}. Here, {data-dir} is:
XDG_DATA_HOMEor~/.local/shareon Linux~/Library/Application Supporton macOS%APPDATA%on Windows
For example, on Linux:
- Store a package in
~/.local/share/typst/packages/local/my-package/1.0.0 - Import all items from the package with
#import "@local/my-package:1.0.0": *in a Typst document
For more information on packages, please refer to Typst’s packages repository.