main
Jean-Marie 'Histausse' Mineau 2024-03-21 11:52:40 +01:00
parent 125ff08e0f
commit c22ff58394
Signed by: histausse
GPG Key ID: B66AEEDA9B645AD2
4 changed files with 36 additions and 1 deletions

View File

@ -1,3 +1,23 @@
# notes
A typst template/lib for taking notes.
## Usage
Install the package locally:
```
git clone https://git.pains-perdus.fr/Pains-Perdus/typ-notes.git ~/.local/share/typst/packages/local/notes/0.0.1
```
Use it in `typ` files with:
```
#import "@local/notes:0.0.1": *
```
Or to create a new note:
```
typst init @local/notes <directory>
```

2
lib.typ Normal file
View File

@ -0,0 +1,2 @@
#import "@preview/gviz:0.1.0": *
#show raw.where(lang: "dot-render"): it => render-image(it.text)

1
template/main.typ Normal file
View File

@ -0,0 +1 @@
#import "@local/notes:0.0.1": *

12
typst.toml Normal file
View File

@ -0,0 +1,12 @@
[package]
name = "notes"
version = "0.0.1"
entrypoint = "lib.typ"
authors = ["Histausse"]
license = "AGPL-3.0-or-later"
description = "A typst template/lib for taking notes."
repository = "https://git.pains-perdus.fr/Pains-Perdus/notes.git"
[template]
path = "template"
entrypoint = "main.typ"