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
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- debian bookworm: texlive-pictures 2022.20230122-3
- debian trixie: texlive-pictures 2024.20250309-1
- fedora 43: texlive-tikztosvg 11:svn60289-93.fc43 Β· GPL-3.0-only
- fedora 43: texlive-tikztosvg 11:svn60289-95.fc43.1 Β· GPL-3.0-only
- fedora 44: texlive-tikztosvg 12:svn60289-105.fc44 Β· GPL-3.0-only
- fedora 44: texlive-tikztosvg 12:svn60289-111.fc44 Β· GPL-3.0-only
- opensuse-leap 16.0: texlive-tikztosvg-doc 2025.221.0.0.3.0svn60289-160000.3.1 Β· GPL-2.0-or-later
- ubuntu jammy: texlive-pictures 2021.20220204-1
- ubuntu noble: texlive-pictures 2023.20240207-1
- ubuntu questing: texlive-pictures 2024.20250309-1
- ubuntu resolute: texlive-pictures 2025.20260124-1
- ubuntu stonking: texlive-pictures 2026.20260711-2
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms