Skip to content

Commit

Permalink
Bump to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jneug committed Mar 18, 2024
1 parent 012210f commit 28310be
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# codelst (v2.0.0)
# codelst (v2.0.1)

**codelst** is a [Typst](https://github.com/typst/typst) package for rendering sourcecode with line numbers and some other additions.

Expand All @@ -7,13 +7,13 @@
Import the package from the typst preview repository:

```js
#import "@preview/codelst:2.0.0": sourcecode
#import "@preview/codelst:2.0.1": sourcecode
```

After importing the package, simply wrap any fenced code block in a call to `#sourcecode()`:

````js
#import "@preview/codelst:2.0.0": sourcecode
#import "@preview/codelst:2.0.1": sourcecode

#sourcecode[```typ
#show "ArtosFlow": name => box[
Expand Down
Binary file modified example.pdf
Binary file not shown.
Binary file modified manual.pdf
Binary file not shown.
10 changes: 5 additions & 5 deletions manual.typ
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
subtitle: [A *Typst* package to render source code],
authors: "Jonas Neugebauer",
url: "https://github.com/jneug/typst-codelst",
version: "2.0.0",
version: "2.0.1",
date: "2023-07-19",
abstract: [
#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.
Expand Down Expand Up @@ -44,22 +44,22 @@ See `example.typ`/`example.pdf` for some quick examples how to use CODELST.

For Typst 0.9.0 and later, CODELST can be imported from the preview repository:
#sourcecode(numbering:none)[```typ
#import "@preview/codelst:2.0.0": sourcecode
#import "@preview/codelst:2.0.1": sourcecode
```]

Alternatively, the package can be downloaded and saved into the system dependent local package repository.

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:
#codesnippet[
```shell-unix-generic
git clone https://github.com/jneug/typst-codelst.git codelst-2.0.0
git clone https://github.com/jneug/typst-codelst.git codelst-2.0.1
```]

In either case, make sure the files are placed in a folder with the correct version number: `codelst-2.0.0`
In either case, make sure the files are placed in a folder with the correct version number: `codelst-2.0.1`

After installing the package, just import it inside your `typ` file:
#codesnippet[```typ
#import "@local/codelst:2.0.0": sourcecode
#import "@local/codelst:2.0.1": sourcecode
```]

== Use as a module
Expand Down
2 changes: 1 addition & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
github_url = "https://github.com/jneug/typst-codelst/"

[version]
current = "2.0.0"
current = "2.0.1"

# Example of a semver regexp.
# Make sure this matches current_version before
Expand Down
2 changes: 1 addition & 1 deletion typst.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "codelst"
version = "2.0.0"
version = "2.0.1"
entrypoint = "codelst.typ"
authors = ["Jonas Neugebauer"]
license = "MIT"
Expand Down

0 comments on commit 28310be

Please sign in to comment.