Typst templates for personal use.
Go to file
dogeystamp fcd3a4f031
contest.typ: added
symlinks to problems.typ for now
2023-05-30 19:01:35 -04:00
algs.typ algs.typ: added 2023-05-13 12:19:31 -04:00
compsci.typ compsci.typ: add "cheated" problem status 2023-05-20 12:41:52 -04:00
contest.typ contest.typ: added 2023-05-30 19:01:35 -04:00
general.typ general.typ: added 2023-05-20 12:42:38 -04:00
LICENSE LICENSE: added 2023-05-20 18:33:23 -04:00
main.typ main.typ: add table basic style 2023-05-27 11:51:50 -04:00
math_notes.typ math_notes.typ: added 2023-05-26 21:39:00 -04:00
math_prob.typ general.typ: added 2023-05-20 12:42:38 -04:00
preview.jpg README.md: add preview picture 2023-05-20 13:22:35 -04:00
problems.typ initial commit 2023-04-18 19:59:45 -04:00
README.md README.md: misc changes 2023-05-20 13:31:26 -04:00

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")

Need fonts:

  • Fira Math
  • JetBrains Mono
  • Roboto

Some settings are available in main.typ.

Screenshots

preview