typst-templates/README.md
dogeystamp 73ab4702e6
main.typ: change fonts
Math is now default, rest is IBM Plex Sans
2023-06-19 20:40:36 -04:00

1007 B

typst templates

Personal templates for Typst, a neat markdown-like typsetting system.

I have the following directory structure for these:

docs/
├── problems
│   ├── src
│   │   └── test.cpp
│   ├── test.pdf
│   └── test.typ
└── templates
    └── ...

Personally, I set up templates as a git submodule, and docs as another git repo.

Example usage

Example usage (this is test.typ in the above tree:)

#import "../templates/problems.typ": template, source_code, status
#show: template.with(
  title: "CCC '22 J1 - Cupcake Party",
  problem_url: "https://dmoj.ca/problem/cc22j1",
  stat: "incomplete",
)

= Thought process

#lorem(20)

== Important things

#lorem(50)

#source_code("test")

Fonts should be included in Typst itself.

Some settings are available in main.typ.

Screenshots

preview