main.typ: change fonts
Math is now default, rest is IBM Plex Sans
This commit is contained in:
parent
9ac2c9a645
commit
73ab4702e6
@ -40,10 +40,7 @@ Example usage (this is test.typ in the above tree:)
|
|||||||
#source_code("test")
|
#source_code("test")
|
||||||
```
|
```
|
||||||
|
|
||||||
Need fonts:
|
Fonts should be included in Typst itself.
|
||||||
- Fira Math
|
|
||||||
- JetBrains Mono
|
|
||||||
- Roboto
|
|
||||||
|
|
||||||
Some settings are available in `main.typ`.
|
Some settings are available in `main.typ`.
|
||||||
|
|
||||||
|
9
main.typ
9
main.typ
@ -8,10 +8,9 @@
|
|||||||
|
|
||||||
#let me = "dogeystamp"
|
#let me = "dogeystamp"
|
||||||
|
|
||||||
#let font = "Roboto"
|
#let font = "IBM Plex Sans"
|
||||||
#let heading_font = "Roboto"
|
#let heading_font = "IBM Plex Sans"
|
||||||
#let math_font = "Fira Math"
|
#let mono_font = "DejaVu Sans Mono"
|
||||||
#let mono_font = "JetBrains Mono"
|
|
||||||
|
|
||||||
#let gen_title(
|
#let gen_title(
|
||||||
title: none,
|
title: none,
|
||||||
@ -56,7 +55,7 @@
|
|||||||
) = {
|
) = {
|
||||||
set text(size: normal-size, font: font, weight: "light")
|
set text(size: normal-size, font: font, weight: "light")
|
||||||
show link: body => text(fill: rgb("#777777"), weight: "bold", body)
|
show link: body => text(fill: rgb("#777777"), weight: "bold", body)
|
||||||
show math.equation: eq => text(font: math_font, eq)
|
show math.equation: eq => eq
|
||||||
set table(inset: 10pt)
|
set table(inset: 10pt)
|
||||||
show heading: set text(font: heading_font, weight: "black")
|
show heading: set text(font: heading_font, weight: "black")
|
||||||
show raw.where(block: true): txt => pad(
|
show raw.where(block: true): txt => pad(
|
||||||
|
Loading…
Reference in New Issue
Block a user