aboutsummaryrefslogtreecommitdiff
path: root/typst/README.md
blob: 531a3e9e8e1ae15381a9a2651c1077a11bf5104e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# typst scripts

The version of these scripts will always be `1.0.0`, because using anything else looks like to be too complicated for
anything.

## `template`

This package requires:
- `Inter` as the sans-serif font;
- `PT Astra Serif` as the serif font;
- `FiraCode Nerd Font Mono` as the monospace font.

I may add an option to modify this.

It is the template that I use everywhere.
It can be freely used.

Import it and load it with:
```typ
// import the script from the local repo
// if you have modified the repo name, replace `@local` with their name
#import "@local/template:1.0.0": *

// initialize template
#show: doc.with(
  authors: (
    (name: "Your Name", affiliation: "Your affiliation", email: "Your email"),
  ),
  page_title: "Page title :D",
)
```

## `callout`

This package contains my callouts.

List of callouts:
- `warning`
- `defn` (definition)
- `props` (proposition)
- `thm` (théorème, which is theorem in French)

Import it and load it with:
```typ
// import the script from the local repo
// if you have modified the repo name, replace `@local` with their name
#import "@local/callout:1.0.0": *
```

You can use any callouts with
```typ
#defn[
  Let $f$ a function where:
  $ forall x in RR, f(x) = x^2 $
]
```