https://github.com/rfdonnelly/docker-tikz2svg
A Docker image for converting PGF/TikZ to SVG
https://github.com/rfdonnelly/docker-tikz2svg
docker dvisvgm jpeg jpg latex pdf png svg tikz tikz2svg
Last synced: about 2 months ago
JSON representation
A Docker image for converting PGF/TikZ to SVG
- Host: GitHub
- URL: https://github.com/rfdonnelly/docker-tikz2svg
- Owner: rfdonnelly
- License: mit
- Created: 2023-01-20T19:56:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-21T18:45:21.000Z (6 months ago)
- Last Synced: 2025-04-21T19:42:12.824Z (6 months ago)
- Topics: docker, dvisvgm, jpeg, jpg, latex, pdf, png, svg, tikz, tikz2svg
- Language: Shell
- Homepage:
- Size: 1.68 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= docker-tikz2svg
A Docker image that converts PGF/TikZ to JPEG, PDF, PNG, or SVG.
== Build
docker build -t tikz2svg .
== Run
=== JPEG
docker run --rm -i tikz2svg jpeg output.jpeg
docker run --rm -i tikz2svg pdf output.pdf
=== PNG
docker run --rm -i tikz2svg png output.png
=== SVG
docker run --rm -i tikz2svg svg output.svg
== Examples
=== Complete Graph
.Generated from: link:examples/complete-graph/input.tex[]
image::examples/complete-graph/output.svg[]=== Karnaugh Diagram
.Generated from: link:examples/karnaugh-diagram/input.tex[]
image::examples/karnaugh-diagram/output.svg[]=== Timing Diagram
.Generated from: link:examples/timing-diagram/input.tex[]
image::examples/timing-diagram/output.svg[]=== Focused Ion Beam System
.Generated from: link:examples/focused-ion-beam-system/input.tex[]
image::examples/focused-ion-beam-system/output.svg[]=== Periodic Table
.Generated from: link:examples/periodic-table/input.tex[]
image::examples/periodic-table/output.svg[]=== Fourier Series
.Generated from: link:examples/fourier-series/input.tex[]
image::examples/fourier-series/output.svg[width=100%]== References
The following references were helpful in developing this.
* Various recommendations TikZ to SVG
+
https://tex.stackexchange.com/questions/51757/how-can-i-use-tikz-to-make-standalone-svg-graphics* Post on dvisvgm integration
+
https://www.andrewheiss.com/blog/2021/08/27/tikz-knitr-html-svg-fun/