dvisvgm

A DVI to SVG converter

What is dvisvgm?

The command-line utility dvisvgm is a tool for TeX/LaTeX users. It converts DVI files to the XML-based scalable vector graphics format SVG. SVG files can be displayed with Adobe's old SVG browser plug-in or the Java-based Squiggle SVG browser from the Apache Batik project, for example. A subset of the current SVG standard 1.1 is also supported by most Web browsers as well as the free vector graphics editor Inkscape.

Features

  • Supports classic DVI files (format 2), pTeX DVI files (format 3), and XDV files as generated by XeTeX (format 5).
  • Complete font support including virtual fonts, evaluation of font encodings, CMap files, sub-font definitions and font maps.
  • Glyph outlines of all required fonts are embedded into the generated SVG files.
  • Glyph outlines of fonts that are not available in a vector format are generated on-the-fly by vectorizing METAFONT's bitmap output.
  • dvisvgm allows to replace font elements by paths so that applications without SVG font support are enabled to render dvisvgm's output properly.
  • Computes tight bounding boxes for the generated graphics, but supports common paper formats and arbitrary user-defined sizes as well.
  • Option --eps allows to convert EPS files to SVG.
  • Intersections of clipping paths can be computed directly in order to increase the compatibility of the generated SVG files.
  • Optionally creates compressed SVGZ files.
  • Provides options for applying page transformations, like translation, rotation, scaling, and skewing.
  • Evaluation of color, emTeX, tpic, hyperref/HyperTeX, PDF mapfile, and PostScript specials.
  • The converter was successfully tested on various Linux (TeX Live) and Windows (MiKTeX) systems.
  • dvisvgm has been added to TeX Live and is therefore available for a wide range of operating systems.
  • See the manual page for a complete list of command-line options.

License

dvisvgm is developed by Martin Gieseking and published under the terms of the GNU General Public License, version 3 (or later).