Giter Club home page Giter Club logo

Comments (4)

mgieseki avatar mgieseki commented on August 17, 2024

If you call dvisvgm without option -n, you get an SVG file with font and text elements rather than graphics paths. The text of these files is usually selectable in the browser or SVG viewer. However, most web browsers don't support font elements so that the result looks wrong.

I don't quite understand how you convert the files to SVG using Inkscape. Do you call pdflatex and then use Inkscape's function File > Import? What additional options do you select in the import dialog?

from dvisvgm.

xuhdev avatar xuhdev commented on August 17, 2024

@mgieseki I made the conversion using the following steps:

pdflatex test.tex
pdfcrop test.pdf
inkscape -z test-crop.pdf --export-plain-svg=test.svg

I can understand your point, but I still don't know why inkscape works...

from dvisvgm.

xuhdev avatar xuhdev commented on August 17, 2024

I see that inkscape does not convert some complicated texts well, which should be the same as dvisvgm without -n option. Thanks for your reply.

from dvisvgm.

mgieseki avatar mgieseki commented on August 17, 2024

Thanks for the additional info.
Inkscape doesn't embed the glyph data into the SVG file but references external font files. So the browser loads the font file and takes the glyphs from there. Unfortunately, this doesn't work in all cases. There are TeX fonts containing glyphs that are not reachable by Unicode, e.g. big integral or sum signs (also see this question at TeX.SX). I'm already looking for a way to find a solution for this problem.

from dvisvgm.

Related Issues (20)

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.