Giter Site home page Giter Site logo

mgieseki / dvisvgm Goto Github PK

View Code? Open in Web Editor NEW
286.0 8.0 26.0 27.28 MB

A fast DVI, EPS, and PDF to SVG converter

Home Page: https://dvisvgm.de

License: GNU General Public License v3.0

Shell 0.06% C++ 97.80% Makefile 0.45% C 0.46% Python 0.14% XSLT 0.08% M4 0.91% IDL 0.10%
dvi metafont postscript latex xetex svg tex vector-graphics pdf

dvisvgm's Introduction

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:

  • 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.
  • The font data can be embedded in SVG, TrueType, WOFF, or WOFF2 format.
  • 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.
  • Option --pdf allows to convert PDF documents to SVG.
  • Intersections of clipping paths can be computed directly instead of delegating this task to the SVG renderer which increases the compatibility of the generated SVG files.
  • Approximates PostScript color gradient fills not directly supported by SVG 1.1.
  • The generated SVG structure and data can be improved with the built-in SVG optimizer.
  • Optionally creates compressed SVGZ files.
  • Provides options for applying page transformations, like translation, rotation, scaling, and skewing.
  • Evaluates several specials including color, emTeX, tpic, hyperref/HyperTeX, papersize, PDF hyperlink and mapfile, as well as PostScript specials.
  • The converter was successfully tested on various Linux (TeX Live) and Windows (MiKTeX, TeX Live) systems.
  • dvisvgm has been added to TeX Live, MiKTeX, and MacPorts. It is therefore available for a wide range of operating systems.

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:

  • Clipper
    To compute the intersection of two curved paths, dvisvgm flattens the paths to polygons, intersects them using a slightly modified version of Clipper, and reconstructs the curves afterwards. A slightly modified version of Clipper is bundled with the sources.

  • FreeType 2
    This library is used to extract the glyph outlines from vector fonts (PFB, OTF, TTF).

  • Ghostscript
    The PostScript special handler requires the Ghostscript shared library libgs.so.N (Linux) or gsdll32.dll/gsdll64.dll (Windows) to be installed. If the configure script finds the corresponding Ghostscript development files on the system, it directly links against libgs.so.N, where N is the library's ABI version. Otherwise, the library is looked up during runtime, and the PostScript support is enabled only if the shared library can be found. Due to incompatible changes of the Ghostscript API, dvisvgm requires Ghostscript 8.31 or later.

  • Kpathsea
    This library is part of the Web2C package and is usually installed in conjunction with a TeX distribution. Kpathsea provides functions for searching files in the large texmf tree. Please ensure that you use the kpathsea version coming with or matching your TeX system.

  • potracelib
    Peter Selinger's bitmap tracing library is utilized to vectorize Metafont's bitmap output. It's also bundled with the dvisvgm sources.

  • ttfautohint
    dvisvgm can optionally be built with ttfautohint support to allow for autohinting the generated TrueType, WOFF, and WOFF2 fonts. Since this is still an experimental feature, ttfautohint support is disabled by default. To enable it, run configure with option --with-ttfautohint.

  • woff2 and brotli
    These Google libraries are bundled with the dvisvgm sources. They are used to create WOFF2 files from TrueType fonts.

  • xxHash
    The xxHash library provides a fast hash algorithm. dvisvgm uses it to create unique integer values from PostScript character names in order to store them in a compact way together with their Unicode points. A recent version of xxHash is bundled with the dvisvgm sources.

  • zlib
    This library is required to create compressed SVGZ files.

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:

  • ensure that the development packages of all libraries, listed above, are installed
  • type autoreconf -fi if configure is not present in the dvisvgm root folder
  • either type ./configure if you don't want to use the bundled libraries brotli, potrace, woff2, and xxHash but link against the corresponding system libraries,
  • or type ./configure --enable-bundled-libs in order to build and statically link the bundled libraries.
  • type make
  • type make install as root (or sudo make install)

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.

dvisvgm's People

Contributors

aminophen avatar hpreusse avatar johncbowman avatar khaledhosny avatar mgieseki avatar naveen521kk avatar the-shank avatar thesamesam avatar tobywf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dvisvgm's Issues

feature request: new special for accessing the <defs> part of the SVG file

Hi, another feature request entered as a bug report.

For the purposes of TikZ, it would be nice to have three new specials that give access to the <defs> part of the output SVG.

The background is that, for instance, a pattern or a filter is something that should be declared in the <defs> part of the output SVG. Things still work if they are declared right inside the main <g> of the document, but it would be nicer if a special gave access to the <defs> part.

Taking this a step further, what would be ideal are three specials like the following:

\special{dvisvgm:defstart name}
\special{dvisvgm:defend}
\special{dvisvgm:refdef name}

The idea is the following: Everything between the defstart and defend special should not be placed in the main svg stream; rather it should be put "on hold". Later, when the refdef special is encountered for the given name, the stuff that has been put on hold is inserted (once) into the <defs> of the current svg element. If the refdef is encountered a second time on the same page, nothing happens. If the refdef is later encountered on another page, the stuff is inserted once more into the <defs> of that other page.

This would allow one to write things like the following

...
\special{dvisvgm:defstart pattern1}
\special{dvisvgm:raw <pattern id="patternid1"> ... </pattern>}
\special{dvisvgm:defend}
 foobar
...

on page 3:

\special{dvisvgm:refdef pattern1} % ensure that the pattern is present in the defs section of page 3
\special{dvisvgm:raw <g pattern="url(\#patternid1)"> ... </g>}
yadda
\special{dvisvgm:refdef pattern1} % no effect, not inserted again.
\special{dvisvgm:raw <g pattern="url(\#patternid1)"> ... </g>}
...

on page 5:

\special{dvisvgm:refdef pattern1} % insert pattern code into the defs section of page 5
\special{dvisvgm:raw <g pattern="url(\#patternid1)"> ... </g>}
yadda yadda
\special{dvisvgm:refdef pattern1} % no effect, not inserted again on page 5
\special{dvisvgm:raw <g pattern="url(\#patternid1)"> ... </g>}

Launchpad Details: #LP1215878 Till Tantau - 2013-08-23 13:04:06 +0200

DVI error: DVI format 6 not supported

$ xelatex -v
XeTeX 3.14159265-2.6-0.99992 (TeX Live 2015)
kpathsea version 6.2.1
Copyright 2015 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 55.1; using 55.1
Compiled with zlib version 1.2.8; using 1.2.8
Compiled with FreeType2 version 2.5.5; using 2.5.5
Compiled with Graphite2 version 1.2.4; using 1.2.4
Compiled with HarfBuzz version 0.9.40; using 0.9.40
Compiled with libpng version 1.6.17; using 1.6.17
Compiled with poppler version 0.32.0
Compiled with fontconfig version 2.11.93; using 2.11.0

Any plan to support dvi format 6?

gcc 4.4 related patch

gcc 4.4 has some stricter rules to include C-header files. So to compile under gccc 4.4 you need to have #include somewhere in src/GFReader.cpp.

Launchpad Details: #LP925204 haawda - 2009-05-28 12:49:00 +0200

EPS pictures not showing up

I seem to have found a bug in v1.0.8, Ubuntu 10.04, TeXLive 2009-7 (installed from apt)

I've been trying to convert from metapost to SVG. As a test, I create a simple metapost (filefoo.mp) and convert it to EPS.

I then create a simple TeX file:

\documentclass{minimal}
\usepackage[dvips]{graphicx}
\begin{document}
\includegraphics{foo}
\end{document}

Run through latex (comes through with no errors, and seems to produce a fine-looking DVI):
$ latex test.tex

Then I run:
$ dvisvgm -e -n test.dvi

And I get the following output:

processing page 1 [1]
  page is empty
  page written to test.svg
1 of 1 page converted in 0.0109259 seconds

It seems to think the image doesn't exist, and produces an empty/broken SVG file. I have tested with other EPS files from various sources, so I'm confident it's not a metapost issue. If I put other things on the page (text, equations, etc), they show up, but still no image. I've attached a zip archive with all of the relevant files, source and compiled, that might help. Thanks much for your time, and for a fantastic product.

Launchpad Details: #LP925198 adamhartz - 2011-08-01 09:54:00 +0200

Generates wrong sqrt symbol

Hi,

I used dvisvgm version 0.7 on my debian lenny machine with TexLive 2007.

I wanted to render the following tex file:
\documentclass[a4paper,10pt]{article}

\pagestyle{empty}

\begin{document}
$\sqrt{1}$
\end{document}

The generated svg file is wrong (at least in inkscape and konqueror), see the attached file.

bye,
Thomas

Launchpad Details: #LP925182 thomas_braun - 2009-03-03 13:20:00 +0100

feature request: encoding in xml tag

I do not know whether this has already been fixed in the latest release, but I have the following problem: The xml files generated by dvisvgm start with

However, they should start with

Background: When an svn-page is embedded in an html, at least on Safari, higher plane Unicode characters are not rendered properly in the current version, but with the encoding explicitly mentioned as above, it works.

Patch to fix clipping bug

The patch dvisgm.patch included in the attached tarball makes clipping work correctly:
latex venn
dvisvgm -n venn

With this patch, dvisgm now provides an easy way to implement SVG support in Asymptote (http://asymptote.sf.net).

Launchpad Details: #LP925183 jcbowman - 2009-09-16 18:19:00 +0200

feature request: externalize font files

In a multi-page svg document, move the font specifications to a separate file and link to them in each svg page.

Background: The pgfmanual is a 1150 page document that needs some 600 MB (!) of disk space as a sequence of 1150 svg's. About half of this space is taken up by the glyph outlines, which are repeated in each page. It would be a _HUGE_ improvement, if the fonts were put in a separate file and then just linked in each svg page.

missing unit of font size in generated font stylesheets

For a minimal document like this:

\documentclass{article}

\begin{document}

Hallo Welt.

\end{document}

dvisvgm produces an svg like this:

...

<style type='text/css'> </style>

...

Now, the problem is the "font-size:10". It causes the SVG-Viewer in Safari-based browsers (Mac, iOS) to display the fonts incorrectly. The problem disappears, when it is replaced by "font-size:10px".

I tracked this down and according to the SVG specification for the font-size attribute:

"This property refers to the size of the font from baseline to baseline when multiple lines of text are set solid in a multiline layout environment. For SVG, if a is provided without a unit identifier (e.g., an unqualified number such as 128), the SVG user agent processes the as a height value in the current user coordinate system.

If a is provided with one of the unit identifiers (e.g., 12pt or 10%), then the SVG user agent converts the into a corresponding value in the current user coordinate system by applying the rules described in Units."

Now, it seems to me that in "font-size:10" causes "10" to be interpreted in some strange user coordinate system (or not at all since it makes no difference which size is provided), while "10px" is interpreted correctly in the correct system.

I suggest changing line 292 of SVGTree.cpp from

            << ";font-size:"   << it->second->scaledSize() << "}\n";

to
<< ";font-size:" << it->second->scaledSize() << "px}\n";

That should fix the problem.

Launchpad Details: #LP1215857 Till Tantau - 2013-08-23 12:18:35 +0200

svg files generated with dvisvgm -n are blank in OpenOffice

When I generate svg images from dvi equation files using "dvisvgm -n" the resulting files look great in various applications, but, in openoffice they import as completely empty. Using "dvisvgm" without the "-n" imports ok to openoffice but the fonts are all messed up - also "dvisvgm -c 10" is blank again. I "think perhaps the xlink interpretatoin screwed up in openoffice. I tried with --no-styles and every option I could think of, but nothing fixed the problem.

Launchpad Details: #LP925188 nobody - 2010-05-19 03:47:00 +0200

Wrongly composed \underbrace, \overbrace

Hi,

when experimenting with LaTeX math conversion, I encountered a bug of parsing the \underbrace and \overbrace constructions. This problem occurs only when the option --no-fonts is not applied. In such cases, all the chars of which the brace is composed are put in one element and the rules (correctly placed) after this element.

After further testing, the problem seems to be in the sequence "char – rule – char" in the DVI file (with nothing between), since constructions like
x\leaders\hrule\hskip1cm y
exhibit the same behaviour (however, just changing the font of y fixes everything).

Launchpad Details: #LP1276507 Alexander Slávik - 2014-02-05 11:12:26 +0100

color bug

In the attached example, the color of "symptote" is black but should be red.

latex CDlabel
dvisvgm -n CDlabel

Launchpad Details: #LP925184 jcbowman - 2009-09-16 19:09:00 +0200

Problem with ghostscript on Windows 64bit

On Windows 64bit, dvisvgm fails to find ghostscript dll (64bit) automatically when placed in the same folder unless the path is given explicitly (either with --libgs or the environment variable).

width and heigt in pt, but without measurement unit

If dvisvgm creates a svg from a dvi doc, then dvisvgm (a. e.) sets the width to ... and the height to 12
I think with 12 are 12 pt well-meant.
Output: page size: 15.875pt x 12pt (5.57941mm x 4.21752mm)

But if I open the svg file with an text editor there you can see:
<svg height='12' version='1.1' viewBox='77 53.48 15.875 12' width='15.875' ...

but it should be:
<svg height='12pt' version='1.1' viewBox='77 53.48 15.875 12' width='15.875pt' ...

If you open both files with gimp, gimp asks you with how many pixels it should open the svg, and you can choose between pix, mm, pt, ...
Now if you choose pt the first file will show wrong values (width and height) the second show right values.

Gimp chooses at the first file without the measurement unit "pt" pix for calculation, that means for heigt 12 pix and not 12 pt -> thats the Bug

Launchpad Details: #LP925195 stefan-koch - 2011-02-18 14:21:00 +0100

Greek letters from Linux Libertine font not printed with -n option using newxt

I'm not sure whether this is a bug in newxt or in dvisvgm, but I'm filing it here since it works everywhere except with dvisvgm.

The attached very basic .tex document uses newxt to create equations with Linux Libertine font. This works fine when processed to DVI using latex, and also when converting the DVI to PDF or PNG using dvipdf or dvipng. But converting the DVI to SVG using dvisvgm does not work: without the -n option the characters are garbage, and with it greek letters are not visible (others are fine). If I use another font via the newxt package, the problem with -n does not appear (though the characters are still not OK without it).

FWIW, I use this newxt + dvisvgm combination to integrate LaTex equations into a LibreOffice document using TexMaths.

This is on Fedora 18.

Launchpad Details: #LP1191506 Milan Bouchet-Valat - 2013-06-16 13:43:20 +0200

Problem with Metapost picture with label

Hello!

I have MiKTeX2.7 (updated) on Vista Ultimate.

If I compile (in DVI) that file (essai.tex):

\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{graphicx}
\pagestyle{empty}
\makeatletter
\edef\Gin@extensions{\Gin@extensions,.mps}
\DeclareGraphicsRule{.mps}{eps}{*}{}
\makeatother
\begin{document}
\includegraphics{testa}
\end{document}

(testa.mps is a MetaPost output, see the attachment)

and run dvisvgm (version 1.0) on essai.dvi:

dvisvgm.exe --bbox=A4 -n --no-styles -e essai

then dvisvgm crashes with that Windows error message:

Signature du problème :
Nom d’événement de problème:BEX
Nom de l’application:dvisvgm.exe
Version de l’application:0.0.0.0
Horodatage de l'application:4c0e0698
Nom du module par défaut:StackHash_0c15
Version du module par défaut:0.0.0.0
Horodateur du module par défaut:00000000
Décalage de l’exception:02010003
Code de l’exception:c0000005
Données d’exception:00000008
Version du système:6.0.6002.2.2.0.256.1
Identificateur de paramètres régionaux:1036
Information supplémentaire n° 1:0c15
Information supplémentaire n° 2:ebc6a8a0971cacb1df1eeafe42a0039e
Information supplémentaire n° 3:e795
Information supplémentaire n° 4:c348c54b7f39e1c374ca29605e8c7c4a

and the file essai.svg is empty.

If I suppress the label in the metapost file, no problem.

I attach a zip which contains:

testa.mp
testa.mps
testa.log
essai.tex
essai.log

Thank you.

François

Launchpad Details: #LP925189 petiard - 2010-06-08 21:02:00 +0200

Incorrect viewBox in case of documents with tables

Thank you for the great piece of software!

I've been using it to render math formulae on websites.

I've encountered following problem.

If document includes table, then viewBox's top coordinate is large than it should be.
This results in not showing top horizontal border of the table in viewers or when inserting SVG in browsers.

I've used latest dvisvgm 1.0.10 as well as 1.0.8. With TexLive and MikTex - same problem.

Attached example files for reproducing.

test.tex - source
test.svg - output from dvisvgm
test.png - raster image rendered by Inkscape from test.svg. With missing top border.

Besides Inkscape, I tried to render svg in Chrome, Firefox - same result.

If I decrease top in viewBox - it renders properly.

I would appreciate your help on this.

Thank you.

Launchpad Details: #LP948713 Pavel Holoborodko - 2012-03-07 07:03:13 +0100

feature request: use of @font-face

Hi, this is not a bug, but a feature request. However, I did not find a special forum for posting feature requests, so I put this here...

I would like to request that future versions of dvisvgm support the @font-face feature of CSS (http://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions) to embed a link to the original OpenType / Type1 / whatever fonts into the generated SVG files alongside the embedded <font> element.

The idea would be that

\documentclass{article}
\usepackage{lmodern}
\begin{document}
Hallo Welt.
\end{document}

produces something like this:

<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- This file was generated by dvisvgm 1.2.2 (x86_64-apple-darwin10.8.0) -->
<!-- Fri Aug 23 12:45:33 2013 -->
<svg height='630.635pt' version='1.1' viewBox='-46.3263 27.9508 405.479 630.635' width='405.479pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
<defs>
<font horiz-adv-x='0' id='rm-lmr10'>
<font-face ascent='1127' descent='-290' font-family='rm-lmr10' units-per-em='1000'/>
<missing-glyph d=''/>
<glyph d='M192 53...' glyph-name='period' horiz-adv-x='278' unicode='.'/>
<glyph d='M419 0...' glyph-name='one' horiz-adv-x='500' unicode='1'/>
...
</font>
</defs>
<style type='text/css'><![CDATA[
@font-face {
  font-family:rm-lmr10;
  src: url("lmroman10-regular.otf");
}
text.f0 {font-family:rm-lmr10;font-size:10px}
]]>
</style>
<g id='page1' transform='matrix(0.996264 0 0 0.996264 0 0)'>
<text class='f0' x='77' y='63'>Hallo<tspan x='103.389'>W</tspan>
<tspan x='112.833'>elt.</tspan>
<tspan x='232' y='633'>1</tspan>
</text>
</g>
</svg>

Note the added @font-face. At least on Safari, this causes the fonts to be rendered using the real OpenType font, if the font is available at the specified URL and, if not, the embedded font is used as a fallback.

I know this is kind of tough to implement since it is hard to "tell" where the actual fonts are and it is not clear what the URLs should look like (absolute? relative? should the fonts be copied?). However, if one wishes to use SVG as a replacement for PDF during a presentation or for longer text to be read online, high-quality fonts would be a real plus.

Launchpad Details: #LP1215875 Till Tantau - 2013-08-23 12:52:29 +0200

Patch to correct tags

Hello, I successfully compile dvisvgm from hg using clang/clang++ (3.0+) but to make clang happy (with -Wall -Wextra flags) I make this patch. It only cleans tags (if defined as struct, delcare further as struct). GCC (4.6.2) compilnes fine both with and without this patch


WBR, Vladimir Lomov

Launchpad Details: #LP925203 lomov_vl - 2012-01-26 11:04:00 +0100

MiKTeX.Session could not be initialized error in a normal miktex

I downloaded today dvisvgm-1.8-win32.zip and unpacked it in a folder. When I tried
dvisvgm --help I get the error message "MiKTeX.Session could not be initialized".

I don't have a portable miktex.

It is a 32-bit miktex, installed as a single user installation in a normal user account (without admin rights) in D:\miktex2.9. on a 64bit windows 7.

--bbox=min bounding box too tight, cropping issue

when running the dvisvgm with the --bbox=min option,

Sometimes the resulting .svg file is cropped at the top and bottom. It depends on the font size and expression, for example, a mathematical formula.

In the attached example the top part of the digit 3 in the expression (-2)^3+2(-2^3) is cropped, unlike the 3 in the first expression.

changing the values in the generated .svg file viewBox='53.82 109.02 628.827 50.5117' to viewBox='53.82 108.02 628.827 50.5117'
moves the expression down, and the resulting .svg is not cropped.

The following expression was used to generate the example:

\begin{equation*}
\\lim_{x\rightarrow-2}\frac{x^{3}+2x^{3}-1}{5-3x}=\lim_{x\rightarrow-2}f\left(x\right)=f\left(-2\right)=\frac{\left(-2\right)^{3}+2\left(-2\right)^{3}-1}{5-3\left(-2\right)}=-\frac{1}{11}
\end{equation*}

Launchpad Details: #LP925196 hlynd - 2011-03-20 23:50:00 +0100

dvisvgm outputs all letters at origin

The attached DVI file appears as expected when converted to PDF or PS using dvipdf or dvips. However, dcisvgm draws all the letters at the origin.

Launchpad Details: #LP1165559 Luci Sandor - 2013-04-06 23:57:20 +0200

dvisvgm crops integral sign when unicode-math is enabled

When xetex's unicode-math is enabled dvisvgm crops integral sign:

MWE:

\documentclass[border=1pt]{standalone}
% math packages:
\usepackage{amsmath}

% math font:
\usepackage{unicode-math}

\usepackage[active]{preview}

\begin{document}

\begin{preview}
\begin{gather}
\begin{split}
\int \delta(x)  F(x) {\,\mathrm{d} x} = F(0)
\end{split}\notag
\end{gather}
\end{preview}

\end{document}

Compilation:

$ xelatex -no-pdf mwe.tex
$ dvisvgm -n test.xdv

results in:
test-with-um svg-97x9-500- gwenview-99

(note the cropped integral sign)

Where as if I comment unicode-math I get the correct output:
test-no-um svg-97x22-500- gwenview-99

Ghostscript didn't work on windows x64 properly

Hi,
I have a small problem here with dvisvgm on windows 8.1 x64 version, that all SVGs lack of spaces produced by ghostscript which made some characters stick to the SVG after and before.
I Use --libgs option to give the path of ghostscript library to dvisvgm.
NOTE: This issue didn't appear on windows 7 x32 version with the same dvisvgm 9.15 but x32 version and ghost script 9.18 x32.

text after \includegraphics gives broken result

Issuing
dvisvgm -n -e x.dvi

on the file x.dvi produced by latex from the source:

\documentclass{article}
\pagestyle{empty}
\usepackage[dvips]{graphicx}
\begin{document}
A
\par
\includegraphics{Sin}
\end{document}

gives the beautiful result I am used to from the fine tool 'dvisvgm'.

But doing the same on

\documentclass{article}
\pagestyle{empty}
\usepackage[dvips]{graphicx}
\begin{document}
A
\par
\includegraphics{Sin}
\par
B
\end{document}

makes the 'B' appear upside down on the
top of the page.

dvisvgm version 1.0.2 build from source
ghostscript version 8.61
xubuntu 8.04

I attached the Sin.eps.

P.S. Thanks for dvisvgm ! It rocks !

Launchpad Details: #LP925191 noone - 2010-07-23 00:12:00 +0200

unexpected black overlay

i'm not sure if this is my fault, but other generation methods result in the expected output.
the generated svg file contains a black overlay. The attached pdf, generated from the same dvi shows the expected output.

Launchpad Details: #LP925200 charalambos - 2011-11-21 23:28:00 +0100

Document Windows build process

The website provides pre-compiled Windows binaries, but the process to build those binaries is not documented anywhere. I hacked together a MS Visual Studio project to build a custom binary, but I'd like to produce binaries as close as possiple to the official ones, so documenting the process (even better providing the build scripts) is much appreciated.

Wrong unicode character in latex equation

Short description

Compiling a latex equation into svg with dvisvgm results in the wrong unicode character for the latex "\times" code. Showing some chines character instead of multiplication symbol.

Reporting bug found with dvisvgm version 1.8 - I'm volunteering to test with newer releases if there is an ubuntu / debian package I can install.

Long description

As a test case we use dvisvgm to convert the following latex to an svg image:

\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
$$T = 100 \times \frac{L + G}{SR + G}$$
\end{document}

What I get with dvipng is this:
equation1

This is a screenshot of how the svg looks in inkscape:
screenshot from 2016-01-08 14 35 42

As you can see the multiplication symbol is wrong in the svg version. The same rendering is shown by other applications as well, including gnome image viewer and firefox.

When inspecting the source of the svg I see this part:

<glyph d='M389 278L189 477C177 489 175 491 167 491C157 491 147 482 147 471C147 464 149 462 160 451L360 250L160 49C149 38 147 36 147 29C147 18 157 9 167 9C175 9 177 11 189 23L388 222L595 15C597 14 604 9 610 9C622 9 630 18 630 29C630 31 630 35 627 40C626 42 467 199 417 250L600 433C605 439 620 452 625 458C626 460 630 464 630 471C630 482 622 491 610 491C602 491 598 487 587 476L389 278Z' glyph-name='multiply' horiz-adv-x='777' unicode='㐂' vert-adv-y='777'/>

(scroll towards end of line to see unicode property)

The unicode symbol shows is this one: http://unicode.org/cgi-bin/GetUnihanData.pl?codepoint=3402

Looking at possible unicode signs for multiplication I don't understand how this mix up can happen. See e.g. https://en.wikipedia.org/wiki/Multiplication_sign#Unicode

Attached a zipfile with both dvipng and dvisvgm generated images:
test_dvisvgm.zip

Hope this description is helpful for reproducing the issue and pinpointing it.

Missing opt2cpp.xsl

I'm trying to hack on dvisgm adding a new option, but the opt2cpp.xsl file used to generate CommandLine.[cpp|h] is missing so I have to edits those files by hand which is not ideal and makes the resulting patch (that I plan to submit) not as clean as it should.

Launchpad Details: #LP1322955 Khaled Hosny - 2014-05-25 08:40:33 +0200

potracelib.h not found

'make' aborts after gcc doesn't find potracelib.h in GFTracer.cpp

That seems to be a problem with the include-path.

SOLUTION: <potracelib.h> -> <potracelib/potracelib.h>

Launchpad Details: #LP925179 ojennrich - 2007-03-27 13:33:00 +0200

error: ghostscript/iapi.h: No such file or directory

Hello,

When i try to compile dvisvgm 0.9.1 on FreeBSD 8.0-STABLE, i get the the following error :

gmake[2]: entrant dans le répertoire « /sequoia/dvisvgm/dvisvgm-0.9.1/src »
g++ -DHAVE_CONFIG_H -I. -I.. -I../potracelib -I../../potracelib -Wall -Wnon-virtual-dtor -g -O2 -MT DVIToSVG.o -MD -MP -MF .deps/DVIToSVG.Tpo -c -o DVIToSVG.o DVIToSVG.cpp
In file included from PSInterpreter.h:28,
from PsSpecialHandler.h:27,
from DVIToSVG.cpp:59:
Ghostscript.h:33:33: error: ghostscript/iapi.h: No such file or directory
In file included from PSInterpreter.h:28,
from PsSpecialHandler.h:27,
from DVIToSVG.cpp:59:
Ghostscript.h:71: error: expected )' before 'Stdin' Ghostscript.h:72: error: expected)' before 'Stdout'
Ghostscript.h:73: error: expected `)' before 'Stderr'
Ghostscript.h:80: error: 'gsapi_revision_t' has not been declared
Ghostscript.h:82: error: 'Stdin' has not been declared
Ghostscript.h:82: error: 'Stdout' has not been declared
Ghostscript.h:82: error: 'Stderr' has not been declared
In file included from PsSpecialHandler.h:27,
from DVIToSVG.cpp:59:
PSInterpreter.h:90: error: expected ';' before 'input'
PSInterpreter.h:91: error: expected ';' before 'output'
PSInterpreter.h:92: error: expected ';' before 'error'
gmake[2]: *** [DVIToSVG.o] Erreur 1
gmake[2]: quittant le répertoire « /sequoia/dvisvgm/dvisvgm-0.9.1/src »
gmake[1]: *** [all-recursive] Erreur 1
gmake[1]: quittant le répertoire « /sequoia/dvisvgm/dvisvgm-0.9.1 »
gmake: *** [all] Erreur 2

The file "ghostscript/iapi.h" is in the directory /usr/local/include/ and i used the following configuration :

setenv CPPFLAGS "-I /usr/local/include/";
setenv CFLAGS "-I /usr/local/include/";
setenv LDFLAGS "-L /usr/local/lib/";
./configure --prefix=/usr/local --includedir=/usr/local/include

Thanks for your help.

Regards,
Stephane Legrand

Launchpad Details: #LP925187 nobody - 2010-05-07 21:35:00 +0200

text after \includegraphics gives broken result

The bug I posted is fixed now. Thanks for that and thanks for doing it so quickly !

Unfortunately I still can't get it to work.

I build dvisvgm from a clone of the mercurial repository.
The rest of my system data is unchanged.

If one issues dvisvgm -n x.dvi, where x.dvi is produced
from latex by compiling the file x.tex that contains

\documentclass{article}
\pagestyle{empty}
\usepackage[dvips]{graphicx}
\begin{document}
A
\par
\includegraphics{Sin}
\par
B
\par
\includegraphics{Tan}
\end{document}

The second image appears upside down and a bit too far on the left side.

I attached an archive containg the images, the tex and the produced svg.

Sorry to get on your nervs with that !

P.S.: I wasn't able to add this as another comment to the previous issue. Probably because it's closed ?
P.P.S: Thanks for your interest ! I'll let you know when the TeXTwitter is up and running.

Launchpad Details: #LP925192 noone - 2010-07-31 02:33:00 +0200

Cannot run dvisvgm.exe 1.0.3 in W2K+SP4

Hi, I downloaded dvisvgm-1.0.3-win32.zip, extracted the files and added path to PATH.

Running dvisvgm.exe from console results in error ".\dvisvgm.exe ist keine gültige Win32-Anwendung" (".\dvisvgm.exe is not a valid win32 application") as popup message and on console "Zugriff verweigert" ("access denied").

Am I missing something?

OS is Microsoft Windows 2000 with SP4

Launchpad Details: #LP925193 sprintersb - 2010-08-07 09:18:00 +0200

EPS file not converting correctly.

The following EPS file converts incorrectly when using the dvisvgm version from MacPorts (1.5.2_1):

%!PS-Adobe-3.0 EPSF-3.0
%%Creator: xpdf/pdftops 3.00
%%LanguageLevel: 2
%%BoundingBox: 0 0 181 36
%%DocumentSuppliedResources: (atend)
%%EndComments
%%BeginProlog
%%BeginResource: procset xpdf 3.00 0
/xpdf 75 dict def xpdf begin
% PDF special state
/pdfDictSize 15 def
/pdfSetup {
  3 1 roll 2 array astore
  /setpagedevice where {
    pop 3 dict begin
      /PageSize exch def
      /ImagingBBox null def
      /Policies 1 dict dup begin /PageSize 3 def end def
      { /Duplex true def } if
    currentdict end setpagedevice
  } {
    pop pop
  } ifelse
} def
/pdfStartPage {
  pdfDictSize dict begin
  /pdfFillCS [] def
  /pdfFillXform {} def
  /pdfStrokeCS [] def
  /pdfStrokeXform {} def
  /pdfFill [0] def
  /pdfStroke [0] def
  /pdfFillOP false def
  /pdfStrokeOP false def
  /pdfLastFill false def
  /pdfLastStroke false def
  /pdfTextMat [1 0 0 1 0 0] def
  /pdfFontSize 0 def
  /pdfCharSpacing 0 def
  /pdfTextRender 0 def
  /pdfTextRise 0 def
  /pdfWordSpacing 0 def
  /pdfHorizScaling 1 def
  /pdfTextClipPath [] def
} def
/pdfEndPage { end } def
% PDF color state
/cs { /pdfFillXform exch def dup /pdfFillCS exch def
      setcolorspace } def
/CS { /pdfStrokeXform exch def dup /pdfStrokeCS exch def
      setcolorspace } def
/sc { pdfLastFill not { pdfFillCS setcolorspace } if
      dup /pdfFill exch def aload pop pdfFillXform setcolor
     /pdfLastFill true def /pdfLastStroke false def } def
/SC { pdfLastStroke not { pdfStrokeCS setcolorspace } if
      dup /pdfStroke exch def aload pop pdfStrokeXform setcolor
     /pdfLastStroke true def /pdfLastFill false def } def
/op { /pdfFillOP exch def
      pdfLastFill { pdfFillOP setoverprint } if } def
/OP { /pdfStrokeOP exch def
      pdfLastStroke { pdfStrokeOP setoverprint } if } def
/fCol {
  pdfLastFill not {
    pdfFillCS setcolorspace
    pdfFill aload pop pdfFillXform setcolor
    pdfFillOP setoverprint
    /pdfLastFill true def /pdfLastStroke false def
  } if
} def
/sCol {
  pdfLastStroke not {
    pdfStrokeCS setcolorspace
    pdfStroke aload pop pdfStrokeXform setcolor
    pdfStrokeOP setoverprint
    /pdfLastStroke true def /pdfLastFill false def
  } if
} def
% build a font
/pdfMakeFont {
  4 3 roll findfont
  4 2 roll matrix scale makefont
  dup length dict begin
    { 1 index /FID ne { def } { pop pop } ifelse } forall
    /Encoding exch def
    currentdict
  end
  definefont pop
} def
/pdfMakeFont16 {
  exch findfont
  dup length dict begin
    { 1 index /FID ne { def } { pop pop } ifelse } forall
    /WMode exch def
    currentdict
  end
  definefont pop
} def
% graphics state operators
/q { gsave pdfDictSize dict begin } def
/Q {
  end grestore
  /pdfLastFill where {
    pop
    pdfLastFill {
      pdfFillOP setoverprint
    } {
      pdfStrokeOP setoverprint
    } ifelse
  } if
} def
/cm { concat } def
/d { setdash } def
/i { setflat } def
/j { setlinejoin } def
/J { setlinecap } def
/M { setmiterlimit } def
/w { setlinewidth } def
% path segment operators
/m { moveto } def
/l { lineto } def
/c { curveto } def
/re { 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto
      neg 0 rlineto closepath } def
/h { closepath } def
% path painting operators
/S { sCol stroke } def
/Sf { fCol stroke } def
/f { fCol fill } def
/f* { fCol eofill } def
% clipping operators
/W { clip newpath } def
/W* { eoclip newpath } def
% text state operators
/Tc { /pdfCharSpacing exch def } def
/Tf { dup /pdfFontSize exch def
      dup pdfHorizScaling mul exch matrix scale
      pdfTextMat matrix concatmatrix dup 4 0 put dup 5 0 put
      exch findfont exch makefont setfont } def
/Tr { /pdfTextRender exch def } def
/Ts { /pdfTextRise exch def } def
/Tw { /pdfWordSpacing exch def } def
/Tz { /pdfHorizScaling exch def } def
% text positioning operators
/Td { pdfTextMat transform moveto } def
/Tm { /pdfTextMat exch def } def
% text string operators
/cshow where {
  pop
  /cshow2 {
    dup {
      pop pop
      1 string dup 0 3 index put 3 index exec
    } exch cshow
    pop pop
  } def
}{
  /cshow2 {
    currentfont /FontType get 0 eq {
      0 2 2 index length 1 sub {
        2 copy get exch 1 add 2 index exch get
        2 copy exch 256 mul add
        2 string dup 0 6 5 roll put dup 1 5 4 roll put
        3 index exec
      } for
    } {
      dup {
        1 string dup 0 3 index put 3 index exec
      } forall
    } ifelse
    pop pop
  } def
} ifelse
/awcp {
  exch {
    false charpath
    5 index 5 index rmoveto
    6 index eq { 7 index 7 index rmoveto } if
  } exch cshow2
  6 {pop} repeat
} def
/Tj {
  fCol
  1 index stringwidth pdfTextMat idtransform pop
  sub 1 index length dup 0 ne { div } { pop pop 0 } ifelse
  pdfWordSpacing pdfHorizScaling mul 0 pdfTextMat dtransform 32
  4 3 roll pdfCharSpacing pdfHorizScaling mul add 0
  pdfTextMat dtransform
  6 5 roll Tj1
} def
/Tj16 {
  fCol
  2 index stringwidth pdfTextMat idtransform pop
  sub exch div
  pdfWordSpacing pdfHorizScaling mul 0 pdfTextMat dtransform 32
  4 3 roll pdfCharSpacing pdfHorizScaling mul add 0
  pdfTextMat dtransform
  6 5 roll Tj1
} def
/Tj16V {
  fCol
  2 index stringwidth pdfTextMat idtransform exch pop
  sub exch div
  0 pdfWordSpacing pdfTextMat dtransform 32
  4 3 roll pdfCharSpacing add 0 exch
  pdfTextMat dtransform
  6 5 roll Tj1
} def
/Tj1 {
  0 pdfTextRise pdfTextMat dtransform rmoveto
  currentpoint 8 2 roll
  pdfTextRender 1 and 0 eq {
    6 copy awidthshow
  } if
  pdfTextRender 3 and dup 1 eq exch 2 eq or {
    7 index 7 index moveto
    6 copy
    currentfont /FontType get 3 eq { fCol } { sCol } ifelse
    false awcp currentpoint stroke moveto
  } if
  pdfTextRender 4 and 0 ne {
    8 6 roll moveto
    false awcp
    /pdfTextClipPath [ pdfTextClipPath aload pop
      {/moveto cvx}
      {/lineto cvx}
      {/curveto cvx}
      {/closepath cvx}
    pathforall ] def
    currentpoint newpath moveto
  } {
    8 {pop} repeat
  } ifelse
  0 pdfTextRise neg pdfTextMat dtransform rmoveto
} def
/TJm { pdfFontSize 0.001 mul mul neg 0
       pdfTextMat dtransform rmoveto } def
/TJmV { pdfFontSize 0.001 mul mul neg 0 exch
        pdfTextMat dtransform rmoveto } def
/Tclip { pdfTextClipPath cvx exec clip newpath
         /pdfTextClipPath [] def } def
% Level 2 image operators
/pdfImBuf 100 string def
/pdfIm {
  image
  { currentfile pdfImBuf readline
    not { pop exit } if
    (%-EOD-) eq { exit } if } loop
} def
/pdfImM {
  fCol imagemask
  { currentfile pdfImBuf readline
    not { pop exit } if
    (%-EOD-) eq { exit } if } loop
} def
/pdfImClip {
  gsave
  0 2 4 index length 1 sub {
    dup 4 index exch 2 copy
    get 5 index div put
    1 add 3 index exch 2 copy
    get 3 index div put
  } for
  pop pop rectclip
} def
/pdfImClipEnd { grestore } def
% shading operators
/colordelta {
  false 0 1 3 index length 1 sub {
    dup 4 index exch get 3 index 3 2 roll get sub abs 0.004 gt {
      pop true
    } if
  } for
  exch pop exch pop
} def
/funcCol { func n array astore } def
/funcSH {
  dup 0 eq {
    true
  } {
    dup 6 eq {
      false
    } {
      4 index 4 index funcCol dup
      6 index 4 index funcCol dup
      3 1 roll colordelta 3 1 roll
      5 index 5 index funcCol dup
      3 1 roll colordelta 3 1 roll
      6 index 8 index funcCol dup
      3 1 roll colordelta 3 1 roll
      colordelta or or or
    } ifelse
  } ifelse
  {
    1 add
    4 index 3 index add 0.5 mul exch 4 index 3 index add 0.5 mul exch
    6 index 6 index 4 index 4 index 4 index funcSH
    2 index 6 index 6 index 4 index 4 index funcSH
    6 index 2 index 4 index 6 index 4 index funcSH
    5 3 roll 3 2 roll funcSH pop pop
  } {
    pop 3 index 2 index add 0.5 mul 3 index  2 index add 0.5 mul
    funcCol sc
    dup 4 index exch mat transform m
    3 index 3 index mat transform l
    1 index 3 index mat transform l
    mat transform l pop pop h f*
  } ifelse
} def
/axialCol {
  dup 0 lt {
    pop t0
  } {
    dup 1 gt {
      pop t1
    } {
      dt mul t0 add
    } ifelse
  } ifelse
  func n array astore
} def
/axialSH {
  dup 0 eq {
    true
  } {
    dup 8 eq {
      false
    } {
      2 index axialCol 2 index axialCol colordelta
    } ifelse
  } ifelse
  {
    1 add 3 1 roll 2 copy add 0.5 mul
    dup 4 3 roll exch 4 index axialSH
    exch 3 2 roll axialSH
  } {
    pop 2 copy add 0.5 mul axialCol sc
    exch dup dx mul x0 add exch dy mul y0 add
    3 2 roll dup dx mul x0 add exch dy mul y0 add
    dx abs dy abs ge {
      2 copy yMin sub dy mul dx div add yMin m
      yMax sub dy mul dx div add yMax l
      2 copy yMax sub dy mul dx div add yMax l
      yMin sub dy mul dx div add yMin l
      h f*
    } {
      exch 2 copy xMin sub dx mul dy div add xMin exch m
      xMax sub dx mul dy div add xMax exch l
      exch 2 copy xMax sub dx mul dy div add xMax exch l
      xMin sub dx mul dy div add xMin exch l
      h f*
    } ifelse
  } ifelse
} def
/radialCol {
  dup t0 lt {
    pop t0
  } {
    dup t1 gt {
      pop t1
    } if
  } ifelse
  func n array astore
} def
/radialSH {
  dup 0 eq {
    true
  } {
    dup 8 eq {
      false
    } {
      2 index dt mul t0 add radialCol
      2 index dt mul t0 add radialCol colordelta
    } ifelse
  } ifelse
  {
    1 add 3 1 roll 2 copy add 0.5 mul
    dup 4 3 roll exch 4 index radialSH
    exch 3 2 roll radialSH
  } {
    pop 2 copy add 0.5 mul dt mul t0 add axialCol sc
    exch dup dx mul x0 add exch dup dy mul y0 add exch dr mul r0 add
    0 360 arc h
    dup dx mul x0 add exch dup dy mul y0 add exch dr mul r0 add
    0 360 arc h f*
  } ifelse
} def
end
%%EndResource
%%EndProlog
%%BeginSetup
xpdf begin
%%BeginResource: font NNOWVO+greciliae
/NNOWVO+greciliae_sfnts [
<00010000000B0080000300306376742000210279000000BC000000046670676D
00000000000000C000000000676C7966CD09E464000000C00000016468656164
03DE960F0000022400000036686865610B83FE5F0000025C00000024686D7478
0376002100000280000000D66C6F63610EFA0EA4000003580000008E6D617870
008C0081000003E8000000207072657000000000000004080000000076686561
000203E90000040800000024766D747803E800000000042C0000011800>
<0021027900>
<000200210000012A029A00030007002EB101002F3CB2070400ED32B10605DC3C
B2030200ED3200B103002F3CB2050400ED32B2070601FC3CB2010200ED323311
211127331123210109E8C7C7029AFD662102580000>
<0001FFFFFFD800A701EF00190000172E0135113436331E011D01272623220614
1633323F011514066C323A3A321C1E0A1D2D1E2A2A1E2E1C0A22280137320146
3235011B15B0091A2C402C180AB1181A00>
<00010000FFDC00A600A90008000037321D01262207353452541B701BA92F9E1C
1C9E2F0000>
<00010000FFC70086005F000B0000373216140F010623223537365F0C1A097604
010149095F0E1D07640105821000000000>
<0002FFFFFFDC00A700AA000A00130000372206141633323635342627321D0126
2207353453182323181B22221C541B701B812234242519192329309E1C1C9E3000>
<00010012000100970088000A00003722061416333236353426531A26261A1D26
2688273828281C1C2700000000>
<00010000000100002912C5925F0F3CF5028B03E800000000CEE8AA5500000000
CEE8AA55FF81F9C904EF06B700000008000000000000000000>
<0001000006B7F9C9005A04EFFF81FF8104EF0001000000000000000000000000
0000002500>
<016C0021000000000000000000A6000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00A6000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000006000000A60000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000012000000>
<0000002A002A002A005200520052005200520052005200520052005200520052
0052006400640064006400640064006400640064006400640064006400640064
0064006400640064007C007C007C007C007C007C007C007C007C007C007C007C
007C007C007C007C007C007C007C007C007C007C007C007C007C007C007C007C
007C007C007C009C009C009C00B2000000>
<0001000000460050000400000000000200000001000100000040002E0000000000>
<0001000000000000000003E80000000000000000000100000000000000000000
0000000100>
<03E8000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000>
] def
10 dict begin
/FontName /NNOWVO+greciliae_00 def
/FontType 42 def
/FontMatrix [1 0 0 1 0 0] def
/FontBBox [-127 -1591 1263 1719] def
/PaintType 0 def
/sfnts NNOWVO+greciliae_sfnts def
/Encoding 256 array
dup 0 /c00 put
dup 1 /c01 put
dup 2 /c02 put
dup 3 /c03 put
dup 4 /c04 put
dup 5 /c05 put
dup 6 /c06 put
dup 7 /c07 put
dup 8 /c08 put
dup 9 /c09 put
dup 10 /c0a put
dup 11 /c0b put
dup 12 /c0c put
dup 13 /c0d put
dup 14 /c0e put
dup 15 /c0f put
dup 16 /c10 put
dup 17 /c11 put
dup 18 /c12 put
dup 19 /c13 put
dup 20 /c14 put
dup 21 /c15 put
dup 22 /c16 put
dup 23 /c17 put
dup 24 /c18 put
dup 25 /c19 put
dup 26 /c1a put
dup 27 /c1b put
dup 28 /c1c put
dup 29 /c1d put
dup 30 /c1e put
dup 31 /c1f put
dup 32 /c20 put
dup 33 /c21 put
dup 34 /c22 put
dup 35 /c23 put
dup 36 /c24 put
dup 37 /c25 put
dup 38 /c26 put
dup 39 /c27 put
dup 40 /c28 put
dup 41 /c29 put
dup 42 /c2a put
dup 43 /c2b put
dup 44 /c2c put
dup 45 /c2d put
dup 46 /c2e put
dup 47 /c2f put
dup 48 /c30 put
dup 49 /c31 put
dup 50 /c32 put
dup 51 /c33 put
dup 52 /c34 put
dup 53 /c35 put
dup 54 /c36 put
dup 55 /c37 put
dup 56 /c38 put
dup 57 /c39 put
dup 58 /c3a put
dup 59 /c3b put
dup 60 /c3c put
dup 61 /c3d put
dup 62 /c3e put
dup 63 /c3f put
dup 64 /c40 put
dup 65 /c41 put
dup 66 /c42 put
dup 67 /c43 put
dup 68 /c44 put
dup 69 /c45 put
readonly def
/CharStrings 257 dict dup begin
/.notdef 0 def
/c00 0 def
/c01 1 def
/c02 2 def
/c03 3 def
/c04 4 def
/c05 5 def
/c06 6 def
/c07 7 def
/c08 8 def
/c09 9 def
/c0a 10 def
/c0b 11 def
/c0c 12 def
/c0d 13 def
/c0e 14 def
/c0f 15 def
/c10 16 def
/c11 17 def
/c12 18 def
/c13 19 def
/c14 20 def
/c15 21 def
/c16 22 def
/c17 23 def
/c18 24 def
/c19 25 def
/c1a 26 def
/c1b 27 def
/c1c 28 def
/c1d 29 def
/c1e 30 def
/c1f 31 def
/c20 32 def
/c21 33 def
/c22 34 def
/c23 35 def
/c24 36 def
/c25 37 def
/c26 38 def
/c27 39 def
/c28 40 def
/c29 41 def
/c2a 42 def
/c2b 43 def
/c2c 44 def
/c2d 45 def
/c2e 46 def
/c2f 47 def
/c30 48 def
/c31 49 def
/c32 50 def
/c33 51 def
/c34 52 def
/c35 53 def
/c36 54 def
/c37 55 def
/c38 56 def
/c39 57 def
/c3a 58 def
/c3b 59 def
/c3c 60 def
/c3d 61 def
/c3e 62 def
/c3f 63 def
/c40 64 def
/c41 65 def
/c42 66 def
/c43 67 def
/c44 68 def
/c45 69 def
end readonly def
FontName currentdict end definefont pop
16 dict begin
/FontName /NNOWVO+greciliae def
/FontType 0 def
/FontMatrix [1 0 0 1 0 0] def
/FMapType 2 def
/Encoding [
0
] def
/FDepVector [
/NNOWVO+greciliae_00 findfont
] def
FontName currentdict end definefont pop
%%EndResource
/F7_0 /NNOWVO+greciliae 0 pdfMakeFont16
%%EndSetup
pdfStartPage
[] 0 d
1 i
0 j
0 J
10 M
1 w
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
false op
false OP
q
q
[1 0 0 1 -35 -707] cm
q
[1 0 0 1 0 0] cm
0 0 252 792 re
W
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
q
[1 0 0 1 36 732.167] cm
[] 0 d
0 J
0.504 w
0 0 m
180 0 l
S
Q
q
[1 0 0 1 36 724.027] cm
[] 0 d
0 J
0.504 w
0 0 m
180 0 l
S
Q
q
[1 0 0 1 36 715.886] cm
[] 0 d
0 J
0.504 w
0 0 m
180 0 l
S
Q
q
[1 0 0 1 36 707.746] cm
[] 0 d
0 J
0.504 w
0 0 m
180 0 l
S
Q
[1 0 0 1 0 0] Tm
0 0 Td
[1 0 0 1 36 726.288] Tm
0 0 Td
/F7_0 25.843 Tf
(\000\003) 1 4.28994 Tj16
/DeviceRGB {} cs
[1 1 1] sc
/DeviceRGB {} CS
[1 1 1] SC
[1 0 0 1 52.924 722.218] Tm
0 0 Td
/F7_0 25.843 Tf
(\000E) 1 4.28994 Tj16
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
[1 0 0 1 52.924 722.218] Tm
0 0 Td
/F7_0 25.843 Tf
(\000B) 1 4.28994 Tj16
[1 0 0 1 69.849 718.147] Tm
0 0 Td
/F7_0 25.843 Tf
(\000\020) 1 4.28994 Tj16
[1 0 0 1 80.901 722.218] Tm
0 0 Td
/F7_0 25.843 Tf
(\000\020) 1 4.28994 Tj16
[1 0 0 1 91.953 726.288] Tm
0 0 Td
/F7_0 25.843 Tf
(\000\020) 1 4.28994 Tj16
[1 0 0 1 94.021 739.597] Tm
0 0 Td
/F7_0 25.843 Tf
(\000#) 1 0.155058 Tj16
/DeviceRGB {} cs
[1 1 1] sc
/DeviceRGB {} CS
[1 1 1] SC
[1 0 0 1 103.005 722.218] Tm
0 0 Td
/F7_0 25.843 Tf
(\000E) 1 4.28994 Tj16
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
[1 0 0 1 103.005 722.218] Tm
0 0 Td
/F7_0 25.843 Tf
(\000B) 1 4.28994 Tj16
q
[1 0 0 1 117.404 707.494] cm
[] 0 d
0 J
0.491 w
0 0 m
0 24.926 l
S
Q
/DeviceRGB {} cs
[1 1 1] sc
/DeviceRGB {} CS
[1 1 1] SC
[1 0 0 1 0 0] Tm
0 0 Td
[1 0 0 1 133.385 722.218] Tm
0 0 Td
/F7_0 25.843 Tf
(\000E) 1 4.28994 Tj16
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
[1 0 0 1 133.385 722.218] Tm
0 0 Td
/F7_0 25.843 Tf
(\000B) 1 4.28994 Tj16
[1 0 0 1 150.31 718.147] Tm
0 0 Td
/F7_0 25.843 Tf
(\000\020) 1 4.28994 Tj16
[1 0 0 1 161.362 722.218] Tm
0 0 Td
/F7_0 25.843 Tf
(\000\020) 1 4.28994 Tj16
[1 0 0 1 172.414 726.288] Tm
0 0 Td
/F7_0 25.843 Tf
(\000\020) 1 4.28994 Tj16
[1 0 0 1 183.466 718.147] Tm
0 0 Td
/F7_0 25.843 Tf
(\000\020) 1 4.28994 Tj16
[1 0 0 1 185.534 739.597] Tm
0 0 Td
/F7_0 25.843 Tf
(\000#) 1 0.155058 Tj16
/DeviceRGB {} cs
[1 1 1] sc
/DeviceRGB {} CS
[1 1 1] SC
[1 0 0 1 194.519 710.007] Tm
0 0 Td
/F7_0 25.843 Tf
(\000E) 1 4.28994 Tj16
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
[1 0 0 1 194.519 710.007] Tm
0 0 Td
/F7_0 25.843 Tf
(\000B) 1 4.28994 Tj16
q
[1 0 0 1 212.162 707.494] cm
[] 0 d
0 J
0.491 w
0 0 m
0 24.926 l
S
Q
q
[1 0 0 1 215.754 707.494] cm
[] 0 d
0 J
0.491 w
0 0 m
0 24.926 l
S
Q
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
/DeviceGray {} cs
[0] sc
/DeviceGray {} CS
[0] SC
Q
Q
Q
showpage
%%PageTrailer

not valid win32 file - win XP

Downloaded dvisvgm-1.2.2-win32 and unzipped. When dvisvgm.exe is double-clicked, windows says that it is not a valid win32 file.

Running Windows XP; miktex 2.9 installed.

(The win64 version works fine on my laptop.)

To be honest, really not sure whether this is a bug in dvisvgm or something missing from my win XP computer.

Launchpad Details: #LP1236846 William McIlhagga - 2013-10-08 15:04:59 +0200

gcc 4.4.1 patch for 0.8

Hi,
with gcc 4.4.1 I had to apply a patch for release 0.8 of dvisvgm.

Sorry for not answering last time.

Launchpad Details: #LP925205 haawda - 2009-07-27 19:03:00 +0200

wont compile because #include guard resued

The #include guard FONTMAP_H is used both in dvisvgm/src/FontMap.h and kpathsea/fontmap.h. Thatswhy FileFinder.cpp won't compile under linux (it can't see the definition of FontMap::Entry). I have changed it to DIVSVGM_FONTMAP_H, and it works now.

Launchpad Details: #LP1258781 V F - 2013-12-07 16:18:56 +0100

Texts in converted svg files not selectable

test.tex: the following LaTeX source code:

\documentclass{article}

\pagestyle{empty}

\begin{document}
Hi this is some texts.
\end{document}

Generate the dvi file:

latex test.tex

Convert it to svg:

dvisvgm -n test.tex

Open the file in a web browser, I found the texts are not selectable. However, if I converted it with inkscape (dvi-->pdf-->svg path), the texts are selectable.

Conflict between getopt.h and kpathsea/getopt.h

In KPSFileFinder.cpp:

/usr/include/kpathsea/getopt.h:128: error: declaration of C function 'int KPS::getopt()' conflicts with
./getopt.h:47: error: previous declaration 'int KPS::getopt(int, char* const_, const char_)' here

Shouldn't that be caught by configure?

Launchpad Details: #LP925180 ojennrich - 2007-03-27 13:35:00 +0200

color bug

In the attached example, the color of "symptote" is black but should be red.

latex CDlabel
dvisvgm -n CDlabel

Launchpad Details: #LP925185 jcbowman - 2009-09-16 19:24:00 +0200

Compilation aborts with "invalid conversion"

I am unable to compile dvisvgm; the make process aborts with an "invalid conversion" error.

I'm running openSUSE 10.2 on an i686 system. I have the latest versions of the FreeType, kpathsea, potrace, and zlib libraries installed via SuSE RPMs. (Note that potrace does not install its library by default, so I had to manually build it and copy it into /usr/local/lib.)

Here's the output of configure and make:

psy@polecat:/tmp/dvisvgm-0.4.2]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for kpse_find_file in -lkpathsea... yes
checking for FT_Init_FreeType in -lfreetype... yes
checking for sqrt in -lm... yes
checking for potrace_trace in -lpotrace... yes
checking for gzopen in -lz... yes
checking for getopt_long... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether closedir returns void... no
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for memset... yes
checking for strcasecmp... yes
checking for strtol... yes
checking for freetype-config... /usr/bin/freetype-config
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/dvisvgm.1
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[psy@polecat:/tmp/dvisvgm-0.4.2]$ make    
                                      make  all-recursive
make[1]: Entering directory `/tmp/dvisvgm-0.4.2'
Making all in src
/tmp/dvisvgm-0.4.2/src
make[2]: Entering directory `/tmp/dvisvgm-0.4.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT Bitmap.o -MD -MP -MF ".deps/Bitmap.Tpo" -c -o Bitmap.o Bitmap.cpp; \
        then mv -f ".deps/Bitmap.Tpo" ".deps/Bitmap.Po"; else rm -f ".deps/Bitmap.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT BoundingBox.o -MD -MP -MF ".deps/BoundingBox.Tpo" -c -o BoundingBox.o BoundingBox.cpp; \
        then mv -f ".deps/BoundingBox.Tpo" ".deps/BoundingBox.Po"; else rm -f ".deps/BoundingBox.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT Calculator.o -MD -MP -MF ".deps/Calculator.Tpo" -c -o Calculator.o Calculator.cpp; \
        then mv -f ".deps/Calculator.Tpo" ".deps/Calculator.Po"; else rm -f ".deps/Calculator.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT cmdline.o -MD -MP -MF ".deps/cmdline.Tpo" -c -o cmdline.o cmdline.c; \
        then mv -f ".deps/cmdline.Tpo" ".deps/cmdline.Po"; else rm -f ".deps/cmdline.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT CharmapTranslator.o -MD -MP -MF ".deps/CharmapTranslator.Tpo" -c -o CharmapTranslator.o CharmapTranslator.cpp; \
        then mv -f ".deps/CharmapTranslator.Tpo" ".deps/CharmapTranslator.Po"; else rm -f ".deps/CharmapTranslator.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT DVIReader.o -MD -MP -MF ".deps/DVIReader.Tpo" -c -o DVIReader.o DVIReader.cpp; \
        then mv -f ".deps/DVIReader.Tpo" ".deps/DVIReader.Po"; else rm -f ".deps/DVIReader.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT dvisvgm.o -MD -MP -MF ".deps/dvisvgm.Tpo" -c -o dvisvgm.o dvisvgm.cpp; \
        then mv -f ".deps/dvisvgm.Tpo" ".deps/dvisvgm.Po"; else rm -f ".deps/dvisvgm.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT DVIToSVG.o -MD -MP -MF ".deps/DVIToSVG.Tpo" -c -o DVIToSVG.o DVIToSVG.cpp; \
        then mv -f ".deps/DVIToSVG.Tpo" ".deps/DVIToSVG.Po"; else rm -f ".deps/DVIToSVG.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT DVIToSVGActions.o -MD -MP -MF ".deps/DVIToSVGActions.Tpo" -c -o DVIToSVGActions.o DVIToSVGActions.cpp; \
        then mv -f ".deps/DVIToSVGActions.Tpo" ".deps/DVIToSVGActions.Po"; else rm -f ".deps/DVIToSVGActions.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT FileFinder.o -MD -MP -MF ".deps/FileFinder.Tpo" -c -o FileFinder.o FileFinder.cpp; \
        then mv -f ".deps/FileFinder.Tpo" ".deps/FileFinder.Po"; else rm -f ".deps/FileFinder.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT FileSystem.o -MD -MP -MF ".deps/FileSystem.Tpo" -c -o FileSystem.o FileSystem.cpp; \
        then mv -f ".deps/FileSystem.Tpo" ".deps/FileSystem.Po"; else rm -f ".deps/FileSystem.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -g -O2 -MT FontEngine.o -MD -MP -MF ".deps/FontEngine.Tpo" -c -o FontEngine.o FontEngine.cpp; \
        then mv -f ".deps/FontEngine.Tpo" ".deps/FontEngine.Po"; else rm -f ".deps/FontEngine.Tpo"; exit 1; fi
FontEngine.cpp: In member function ‘bool FontEngine::traceOutline(unsigned char, FEGlyphCommands&, bool) const’:
FontEngine.cpp:254: error: invalid conversion from ‘int (*)(FT_Vector*, void*)’ to ‘int (*)(const FT_Vector*, void*)’
FontEngine.cpp:254: error: invalid conversion from ‘int (*)(FT_Vector*, void*)’ to ‘int (*)(const FT_Vector*, void*)’
FontEngine.cpp:254: error: invalid conversion from ‘int (*)(FT_Vector*, FT_Vector*, void*)’ to ‘int (*)(const FT_Vector*, const FT_Vector*, void*)’
FontEngine.cpp:254: error: invalid conversion from ‘int (*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)’ to ‘int (*)(const FT_Vector*, const FT_Vector*, const FT_Vector*, void*)’
make[2]: *** [FontEngine.o] Error 1
make[2]: Leaving directory `/tmp/dvisvgm-0.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/dvisvgm-0.4.2'
make: *** [all] Error 2

Launchpad Details: #LP925178 psychonaut25 - 2006-12-12 01:26:00 +0100

Some unicode math characters are missing

Hello again,

when using XeLaTeX + unicode-math package, some characters don't make it from the XDV file to resulting SVG – one example of this is an integral inside display math ($$\int$$) or bigger delimiters ($\big($).

The problem seems to be in the naming of glyphs in SVG; four bytes are just not enough for complicated fonts like STIX or LM Math.

Launchpad Details: #LP1276689 Alexander Slávik - 2014-02-05 17:31:17 +0100

Circuits OR gate broken

I'm using circuit_macros v7.1 by J. D. Aplevich to create latex drawings. Using dvips creates a proper drawing, but dvisvgm messes up the OR gate. This system only allows one file attachment, so I have provided the svg.

Launchpad Details: #LP925201 rplantz - 2012-01-08 20:55:00 +0100

compile error (Arch Linux x86_64, gcc 4.3.2)

Hello,

dvisvgm 0.6 did not compile.

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking kpathsea/kpathsea.h usability... yes
checking kpathsea/kpathsea.h presence... yes
checking for kpathsea/kpathsea.h... yes
checking for kpse_find_file in -lkpathsea... yes
checking kpathsea version... "kpathsea version 3.5.7"
checking dvipdfm.map... "kpathsea version 3.5.7"
checking for FT_Init_FreeType in -lfreetype... yes
checking for gzopen in -lz... yes
checking for getopt_long... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether closedir returns void... no
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for memset... yes
checking for strcasecmp... yes
checking for strtol... yes
checking for freetype-config... /usr/bin/freetype-config
configure: creating ./config.status
config.status: creating Makefile
config.status: creating potracelib/Makefile
config.status: creating src/Makefile
config.status: creating doc/dvisvgm.1
config.status: creating doc/Makefile
config.status: creating rpm/dvisvgm.spec
config.status: creating rpm/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
patching file src/InputBuffer.h
make all-recursive
make[1]: Entering directory /home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6' Making all in potracelib make[2]: Entering directory/home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6/potracelib'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Leaving directory /home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6/potracelib' Making all in src make[2]: Entering directory/home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/freetype2 -I../potracelib -I../../potracelib -Wall -march=x86-64 -mtune=generic -O2 -pipe -MT FontEncoding.o -MD -MP -MF .deps/FontEncoding.Tpo -c -o FontEncoding.o FontEncoding.cpp
In file included from FontEncoding.cpp:25:
InputBuffer.h: In member function »virtual void StringInputBuffer::skip(unsigned int)«:
InputBuffer.h:92: Fehler: keine passende Funktion für Aufruf von »min(unsigned int&, long unsigned int)«
make[2]: *** [FontEncoding.o] Fehler 1
make[2]: Leaving directory /home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6/src' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory/home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6'
make: *** [all] Fehler 2
==> FEHLER: Build fehlgeschlagen.
Breche ab ...

Launchpad Details: #LP925181 nobody - 2009-01-25 15:13:00 +0100

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.