Compare commits

..

No commits in common. "a9633f25a35513141a4aaac84dc158ab39f456c0" and "6f502f2e18778be6dc1a6c45ea927a98aef56d38" have entirely different histories.

13 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#import "@preview/cetz:0.3.1": draw #import "@preview/cetz:0.2.2": draw
#import "../src/lib.typ": schema #import "../src/lib.typ": schema
#import "../src/util.typ" #import "../src/util.typ"

10
gallery.bash Executable file → Normal file
View File

@ -16,7 +16,7 @@ cnt="$#"
i=1 i=1
for f for f
do do
f2="${f%.typ}.png" f2="${f/typ/png}"
echo "($i/$cnt) $f -> $f2" echo "($i/$cnt) $f -> $f2"
typst c --root ./ "$f" "$f2" typst c --root ./ "$f" "$f2"
i=$((i+1)) i=$((i+1))
@ -27,12 +27,12 @@ then
echo echo
echo "Generating gallery PDFs" echo "Generating gallery PDFs"
files=$(find ./gallery -type f -name "*.typ") set -- ./gallery/*.typ
cnt=$(echo "$files" | wc -l) cnt="$#"
i=1 i=1
for f in $files for f
do do
f2="${f%.typ}.pdf" f2="${f/typ/pdf}"
echo "($i/$cnt) $f -> $f2" echo "($i/$cnt) $f -> $f2"
typst c --root ./ "$f" "$f2" typst c --root ./ "$f" "$f2"
i=$((i+1)) i=$((i+1))

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 378 KiB

After

Width:  |  Height:  |  Size: 376 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 303 KiB

After

Width:  |  Height:  |  Size: 302 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 KiB

After

Width:  |  Height:  |  Size: 487 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
#import "@preview/cetz:0.3.1": canvas, draw #import "@preview/cetz:0.2.2": canvas, draw
#import "range.typ" as rng #import "range.typ" as rng
#import "structure.typ" #import "structure.typ"
@ -373,7 +373,7 @@
// Draw rectangle around structure // Draw rectangle around structure
shapes += draw-rect(border-col, bits-x, bits-y, bits-width, bit-h, thickness: 2) shapes += draw-rect(border-col, bits-x, bits-y, bits-width, bit-h, thickness: 2)
let indices = range(struct.start, struct.start + struct.bits) let indices = range(struct.bits)
if not config.all-bit-i { if not config.all-bit-i {
indices = () indices = ()
for r in struct.ranges.values() { for r in struct.ranges.values() {

View File

@ -1,7 +1,7 @@
[package] [package]
name = "rivet" name = "rivet"
version = "0.2.0" version = "0.1.0"
compiler = "0.12.0" compiler = "0.11.0"
repository = "https://git.kb28.ch/HEL/rivet-typst" repository = "https://git.kb28.ch/HEL/rivet-typst"
entrypoint = "src/lib.typ" entrypoint = "src/lib.typ"
authors = [ authors = [