mgieseki / dvisvgm

A fast DVI, EPS, and PDF to SVG converter
https://dvisvgm.de
GNU General Public License v3.0
310 stars 34 forks source link
dvi latex metafont pdf postscript svg tex vector-graphics xetex

dvisvgm – A fast DVI to SVG converter

C/C++ CI Build Status Copr Status Code Status License Releases

Description

dvisvgm is a utility for TeX/LaTeX users. It converts DVI, EPS, and PDF files to the XML-based scalable vector graphics format SVG. The latest releases support standard DVI files (version 2) as well as DVI output created by pTeX in vertical mode (version 3), and XeTeX (versions 5 to 7, also known as XDV).

To get an impression of the conversion results, have a look at the examples created with dvisvgm.

Short overview of the main features:

Usage

For detailed information about the command-line interface and all available options of dvisvgm, see the manual page.

Dependencies

dvisvgm relies on the following free libraries:

Building dvisvgm from source

dvisvgm is written in C++11 (ISO C++ standard 2011) and requires an appropriate compiler, like GCC 4.9, Clang 3.3, or any later version. The configure script checks for the availability of C++11 support and adds the proper compiler options if necessary.

Quick installation info:

For generic configuration instructions see the file INSTALL.

The configure script should recognize all necessary parameters. If a library is installed but not detected, specify its location as command-line parameter of configure, e.g. ./configure --with-freetype=/usr/local/freetype (all available options can be displayed with ./configure --help)

The tracer module calls Metafont in case of lacking TFM or PFB files via a system call. Please ensure that Metafont is installed and reachable through the system's search path.

If you don't like compiling the sources yourself, you can download pre-compiled binaries for Windows and MiKTeX from the project website instead.

Additional Information

This package is available from CTAN, and can be downloaded from the project website as well. There you find the sources, pre-compiled binaries, the manual page, FAQs and further information about the converter and related topics.

If you've found a bug, please let me know. You can either send me an email or preferably use the bug tracker at GitHub.

Copyright

Copyright © 2005–2024 Martin Gieseking

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.