We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbae4ec commit 9401b3aCopy full SHA for 9401b3a
tikz2svg
@@ -19,4 +19,7 @@ xelatex -interaction=batchmode -output-directory="/tmp" -jobname="$intermediate"
19
pdf2svg "/tmp/$intermediate.pdf" "$filename.svg"
20
# Clean up intermediates.
21
rm /tmp/$intermediate*
22
+# Rewrite IDs to prevent collisions between generated SVGs.
23
+sed -i '' "s/ id=\"/ id=\"$filename-/g; s/\"#/\"#$filename-/g" "$filename.svg"
24
+
25
blog info "Wrote $filename.svg"
0 commit comments