Last active
March 23, 2026 12:14
-
-
Save Hermann-SW/fd11d39ca63bc95879e1949b977ff6f8 to your computer and use it in GitHub Desktop.
Combine PARI/GP script Graphviz output for several input values as SVGs into single row HTML table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # gps2svgs psp2.gp 341 561 645 1105 1387 1729 1905 2047 > tst.html | |
| # shell checked | |
| # | |
| scr=$1;shift | |
| echo "<html><body><table border=1><tr>" | |
| for n in "$@"; do echo "<td>$(dot -Tsvg <(n=$n gp -q < "$scr"))</td>"; done | |
| echo "</tr></table></body></html>" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scaled to 25% (firefox) fullpage screenshot of tst.html created with: