Compare commits

..

No commits in common. "ac3e577020bbd0bd2943d5e148ab99dc38609e22" and "60898d1e6001db03125a08d4da99b876ad5207fb" have entirely different histories.

4 changed files with 2 additions and 55 deletions

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))
@ -32,7 +32,7 @@ then
i=1 i=1
for f 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: 81 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -81,57 +81,4 @@
element.gate-xnor( element.gate-xnor(
x: 9, y: -6, w: 2, h: 2, id: "xnor" x: 9, y: -6, w: 2, h: 2, id: "xnor"
) )
element.resistor(
x: 0, y: -8, w: 2, h: 0.5, id: "res1"
)
element.capacitor(
x: 3, y: (from: "res1-port-1", to: "0"),
w: 2, h: 0.6,
id: "cap1",
scales: (100%, 80%),
symbols: ([+], [-])
)
element.resistor(
x: (rel: 1, to: "cap1-port-1"),
y: (from: "cap1-port-1", to: "0"),
w: 0.5, h: 2,
id: "res2",
vertical: true,
zigzags: 8
)
element.capacitor(
x: (rel: 1, to: "res2.east"),
y: (from: "res2-port-1", to: "1"),
w: 0.5, h: 2,
id: "cap2",
vertical: true,
symbols: ([a], [b])
)
element.resistor(
x: (rel: 1, to: "cap2-port-0"),
y: (from: "cap2-port-0", to: "0"),
w: 2, h: 0.5,
id: "res3",
zigzags: none
)
element.resistor(
x: (rel: 1, to: "res3-port-1"),
y: (from: "res3-port-1", to: "0"),
w: 0.5, h: 2,
id: "res4",
zigzags: none,
vertical: true
)
wire.wire("w4", ("res1-port-1", "cap1-port-0"))
wire.wire("w5", ("cap1-port-1", "res2-port-0"))
wire.wire("w6", ("res2-port-1", "cap2-port-1"))
wire.wire("w7", ("cap2-port-0", "res3-port-0"))
wire.wire("w8", ("res3-port-1", "res4-port-0"))
}) })