Compare commits
No commits in common. "dev" and "main" have entirely different histories.
@ -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
10
gallery.bash
Executable file → Normal 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.
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.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() {
|
||||||
|
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user