Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
a9633f25a3 | |||
a929f506ac | |||
aa9a082ba5 |
@ -1,4 +1,4 @@
|
||||
#import "@preview/cetz:0.2.2": draw
|
||||
#import "@preview/cetz:0.3.1": draw
|
||||
#import "../src/lib.typ": schema
|
||||
#import "../src/util.typ"
|
||||
|
||||
|
10
gallery.bash
Normal file → Executable file
10
gallery.bash
Normal file → Executable file
@ -16,7 +16,7 @@ cnt="$#"
|
||||
i=1
|
||||
for f
|
||||
do
|
||||
f2="${f/typ/png}"
|
||||
f2="${f%.typ}.png"
|
||||
echo "($i/$cnt) $f -> $f2"
|
||||
typst c --root ./ "$f" "$f2"
|
||||
i=$((i+1))
|
||||
@ -27,12 +27,12 @@ then
|
||||
echo
|
||||
echo "Generating gallery PDFs"
|
||||
|
||||
set -- ./gallery/*.typ
|
||||
cnt="$#"
|
||||
files=$(find ./gallery -type f -name "*.typ")
|
||||
cnt=$(echo "$files" | wc -l)
|
||||
i=1
|
||||
for f
|
||||
for f in $files
|
||||
do
|
||||
f2="${f/typ/pdf}"
|
||||
f2="${f%.typ}.pdf"
|
||||
echo "($i/$cnt) $f -> $f2"
|
||||
typst c --root ./ "$f" "$f2"
|
||||
i=$((i+1))
|
||||
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 376 KiB After Width: | Height: | Size: 378 KiB |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 302 KiB After Width: | Height: | Size: 303 KiB |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 487 KiB After Width: | Height: | Size: 490 KiB |
Binary file not shown.
BIN
gallery/test.pdf
BIN
gallery/test.pdf
Binary file not shown.
BIN
manual.pdf
BIN
manual.pdf
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
#import "@preview/cetz:0.2.2": canvas, draw
|
||||
#import "@preview/cetz:0.3.1": canvas, draw
|
||||
|
||||
#import "range.typ" as rng
|
||||
#import "structure.typ"
|
||||
@ -373,7 +373,7 @@
|
||||
// Draw rectangle around structure
|
||||
shapes += draw-rect(border-col, bits-x, bits-y, bits-width, bit-h, thickness: 2)
|
||||
|
||||
let indices = range(struct.bits)
|
||||
let indices = range(struct.start, struct.start + struct.bits)
|
||||
if not config.all-bit-i {
|
||||
indices = ()
|
||||
for r in struct.ranges.values() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "rivet"
|
||||
version = "0.1.0"
|
||||
compiler = "0.11.0"
|
||||
version = "0.2.0"
|
||||
compiler = "0.12.0"
|
||||
repository = "https://git.kb28.ch/HEL/rivet-typst"
|
||||
entrypoint = "src/lib.typ"
|
||||
authors = [
|
||||
|
Loading…
Reference in New Issue
Block a user