When running dvisvgm to convert a dvi file to svg I'm loosing the text information which is part of the eps file.

When running pdflatex the output is correct.


Below the output:

Output of pdflatex and dvisvgm

Attached the eps file which is included: https://app-factory.ethz.ch/images/figureA.eps

Edit: I ended up with the following workaround:

ps2pdf  -dEPSCrop  figureA.eps figureA.pdf
gs -dNoOutputFonts -sDEVICE=pdfwrite -o v_figureA.pdf figureA.pdf
pdf2ps v_figureA.pdf figureA2.eps

This converts fonts in to outlines and I will used the vectorized eps file.

See here: How to convert text in a PDF file from fonts/text to outlines?

New contributor
itart is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Welcome to TeX.SE! – Kurt Mar 15 at 23:02
  • Welcome to TeX.SE! I can confirm what you observe. How was the figureA.eps generated? – ShreevatsaR Mar 15 at 23:27
  • 1
    In the EPS file PS operator xyshow is used to trigger text output. dvisvgm doesn't support this operator yet. Sorry. – Martin Mar 16 at 10:33
  • 1
    I just added support for PS operators xshow, yshow, and xyshow to dvisvgm. So, as of the next version, the missing text will appear in the generated SVG. – Martin Mar 16 at 21:31

Your Answer

itart is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.