TIKZTOSVG(1)
π TIKZTOSVG(1) π
β¨ NAME β¨
tikztosvg, bestie, is the tool that turns your TikZ diagrams into SVG. Literally that's the whole job π¦
π SYNOPSIS π
tikztosvg [OPTION]... INPUT_PATH
π DESCRIPTION π
okay so the tikztosvg(1) command renders your TikZ diagrams into SVG and it is so good at it π
If INPUT_PATH is -, it reads your input from stdin. no file needed, we're giving main character energy πΈ
π· OPTIONS π·
-o,--output=OUTPUT_PATHβ this is where your SVG lands π§ Write toOUTPUT_PATH. If you set it to-, it prints to stdout instead. If you don't pick one, it uses the base name of your input file with.svgslapped on the end. The path is resolved relative to the working directory, so keep that in mind π-p,--package=+PACKAGEβ want an extra package? Add it here and it gets\usepackage{PACKAGE}when the diagram renders π¦ Just so you know,tikz,tikz-cd,pgfplots,amsmathandamssymbare always included by default, so you don't need to ask for them π-l,--library=+_LIBRARYβ same energy as above, but for TikZ libraries. It adds\usetikzlibrary{LIBRARY}to your render π¨-q,--quietβ shh π This silences the application log messages and script warnings, so it's nice and calm--lualatexβ uses LuaTeX as your TeX engine. Fair warning, LuaTeX is already the default, so this flag doesn't really do much π--xelatexβ switches to XeTeX as your TeX engine β¨--pdflatexβ switches to pdfTeX as your TeX engine π-h,--helpβ prints a help message when you need a little reminder π«Ά-v,--versionβ prints the version info π₯
π§ ENVIRONMENT π§
okay this is important bestie: tikztosvg needs XeTeX and pdf2svg installed before it can do anything. Also make sure any extra LaTeX packages are installed before you use them in a diagram, or it's gonna be a whole mess π
π¦ EXIT STATUS π¦
0β success, we did it π1β failure. This one covers syntax or usage errors and configuration errors π[n]β failure during document processing π
π AUTHORS π
tikztosvg was written by Pablo, pablo-escobar@riseup.net π«Ά
pdf2svg was written by David Barton, davebarton@cityinthesky.co.uk, and Matthew Flaschen, matthew.flaschen@gatech.edu π
π RESOURCES π
- Git source repository on sourcehut:
https://git.sr.ht/~pablo-pie/tikztosvgπ¦ - Bug tracker:
https://todo.sr.ht/~pablo-pie/tikztosvgπ - CTAN package:
https://www.ctan.org/pkg/tikztosvgπ¦ - TeXLive:
https://tug.org/texlive/πΈ - LuaTeX:
http://luatex.org/π - XeTeX:
http://xetex.sourceforge.net/β - pdfTeX:
https://www.tug.org/applications/pdftex/π
π COPYING π
Copyright (C) 2021 Pablo. Free use of this software is granted under the terms of the GPL-3.0 License. Share it, use it, be iconic with it β¨
bestie, that's the whole page π This was the TIKZTOSVG(1) manual, last updated 2021-08-19. Go make some gorgeous diagrams π§π π
π¦ where this page comes from
- alpine 3.24: texmf-dist-pictures-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms