2 Commits

Author SHA1 Message Date
pencelheimer 09b4d3aa44 feat(README): added instructions for local typst package setup 2025-03-01 01:15:13 +02:00
pencelheimer 0d526d4f58 feat: restructured files accrording to typst package format
- added typst.toml
- moved templates to "template" folder
- renamed files according to convention
2025-03-01 01:10:05 +02:00
8 changed files with 24 additions and 2 deletions
+13 -2
View File
@@ -26,11 +26,22 @@ This template:
## Usage
To use the template, include it in your project and utilize the provided functions:
### As a local typst package
1. Clone this repository into ~/.local/share/typst/packages/:
```bash
git clone https://gitea.linerds.us/pencelheimer/typst_nure_template.git ~/.local/share/typst/packages/nure_template/0.0.0
```
2. Init your project with Typst:
```bash
typst init @local/nure_template:0.0.0 project-name
```
### As a file in your project
Include lib.typ in your project and utilize the provided functions:
```typst
// Import the template
#import "path/to/template.typ": *
#import "lib.typ": *
// Setup the document
#show: lab-pz-template.with(
Binary file not shown.
BIN
View File
Binary file not shown.
View File
View File
+11
View File
@@ -0,0 +1,11 @@
[package]
name = "nure"
version = "0.0.0"
entrypoint = "template.typ"
authors = ["linerds"]
license = "GPL-3.0"
description = "Typst NURE package"
[template]
path = "template"
entrypoint = "lab.typ"