@joniksj's personal style package for his typst documents. Recommended for use if you are him, or if you want to make your documents look like his.
Of course, to use this, you'll need typst.
If you haven't heard, typst is a newfangled document typesetting system akin to LaTeX, also exporting directly to .pdf, that uses more modern syntax (thank god), familiar programming concepts, and has a powerful styling engine, which makes it perfect for me, @joniksj, that wanted an alternative to Google Docs but didn't want to learn LaTeX.
- An installation of Typst, either the binary from the releases page or from @nvarner's
typst-lspfor VS Code(ium) - A text editor to actually test this out with (I recommend VS Code(ium) with
typst-lsp) - Git CLI (optional, to make things easier)
With `git clone`
You will need to use git for this.
- Navigate to your
typstlocal packages directory, which is:
$XDG_DATA_HOME/typst/packagesor~/.local/share/typst/packageson Linux~/Library/Application Support/typst/packageson macOS%APPDATA%/typst/packageson Windows
- Make a folder called
local(or whatever you want to name your package namespace) - In that
localfolder, open a terminal and run:git clone https://github.com/jonathan-iksjssen/jx-style.git
- Make a new
.typfile anywhere - Import the package with
Replace
#import "@local/jx-style:0.2.0": *localwith whatever you named your package namespace in step 2.
Without `git clone`
- Download the
.zipfile of this repository. - Navigate to your
typstlocal packages directory, which is:
$XDG_DATA_HOME/typst/packagesor~/.local/share/typst/packageson Linux~/Library/Application Support/typst/packageson macOS%APPDATA%/typst/packageson Windows
- Make a folder called
local(or whatever you want to name your package namespace) and navigate into it. - Extract the contents of
jx-style-main.zipdirectly into said folder. - If necessary, rename the
jx-style-mainfolder to justjx-style. - Make a new
.typfile anywhere - Import the package with
Replace
#import "@local/jx-style:0.2.0": *localwith whatever you named your package namespace in step 2.
ㅤ
There are four main parts of this package that are important:
| File | Purpose |
|---|---|
irgot.typ |
(is irgot.json in 0.1.0) Contains the colour schemes that are possible for documents. ‹irgot› means ‹colours› in Icsine, my personal conlang. |
jx-style.typ |
The main style file, and the entry point to the package itself. Contains all the styles themselves, all that shabang. |
jx-date.typ |
My own date string formatter. Accessed by jx-style.typ to display dates how I like it. |
typst.toml |
The manifest for the package, in accordance with typst/packages. |
A bit of backstory -- before I moved to making my documents with Typst,