41 lines
657 B
Markdown
41 lines
657 B
Markdown
|
# typst templates
|
||
|
|
||
|
I have the following directory structure for these:
|
||
|
|
||
|
```
|
||
|
docs/
|
||
|
├── problems
|
||
|
│ ├── src
|
||
|
│ │ └── test.cpp
|
||
|
│ ├── test.pdf
|
||
|
│ └── test.typ
|
||
|
└── templates
|
||
|
└── ...
|
||
|
```
|
||
|
|
||
|
Example usage (this is test.typ in the above tree:)
|
||
|
|
||
|
```typ
|
||
|
#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
|