|
8 | 8 | subtitle: [A *Typst* package to render source code], |
9 | 9 | authors: "Jonas Neugebauer", |
10 | 10 | url: "https://github.com/jneug/typst-codelst", |
11 | | - version: "2.0.0", |
| 11 | + version: "2.0.1", |
12 | 12 | date: "2023-07-19", |
13 | 13 | abstract: [ |
14 | 14 | #package[codelst] is a *Typst* package inspired by LaTeX packages like #package[listings]. It adds functionality to render source code with line numbers, highlighted lines and more. |
@@ -44,22 +44,22 @@ See `example.typ`/`example.pdf` for some quick examples how to use CODELST. |
44 | 44 |
|
45 | 45 | For Typst 0.9.0 and later, CODELST can be imported from the preview repository: |
46 | 46 | #sourcecode(numbering:none)[```typ |
47 | | -#import "@preview/codelst:2.0.0": sourcecode |
| 47 | +#import "@preview/codelst:2.0.1": sourcecode |
48 | 48 | ```] |
49 | 49 |
|
50 | 50 | Alternatively, the package can be downloaded and saved into the system dependent local package repository. |
51 | 51 |
|
52 | 52 | Either download the current release from GitHub#footnote[#link("https://github.com/jneug/typst-codelst/releases/latest")] and unpack the archive into your system dependent local repository folder#footnote[#link("https://github.com/typst/packages#local-packages")] or clone it directly: |
53 | 53 | #codesnippet[ |
54 | 54 | ```shell-unix-generic |
55 | | -git clone https://github.com/jneug/typst-codelst.git codelst-2.0.0 |
| 55 | +git clone https://github.com/jneug/typst-codelst.git codelst-2.0.1 |
56 | 56 | ```] |
57 | 57 |
|
58 | | -In either case, make sure the files are placed in a folder with the correct version number: `codelst-2.0.0` |
| 58 | +In either case, make sure the files are placed in a folder with the correct version number: `codelst-2.0.1` |
59 | 59 |
|
60 | 60 | After installing the package, just import it inside your `typ` file: |
61 | 61 | #codesnippet[```typ |
62 | | -#import "@local/codelst:2.0.0": sourcecode |
| 62 | +#import "@local/codelst:2.0.1": sourcecode |
63 | 63 | ```] |
64 | 64 |
|
65 | 65 | == Use as a module |
|
0 commit comments