Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [dvisvgm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
32 views

dvisvgm won't create text, only paths, no matter what option

Hope you're all doing well. I'm sorry if this isn't the right place for this, but I'm creating a piece of software and it requires an SVG to work, but the user must input a PDF. I am trying to use ...
user avatar
2 votes
1 answer
47 views

dvisvgm invoked multiply for saved boxes with 4ht

With the following MWE, I observe dvisvgm is called twice instead of once: \documentclass{scrbook} \usepackage{blindtext} \usepackage{pgfornament} \tikzset{ myfroufrou/.pic={ \node {\...
user avatar
0 votes
1 answer
96 views

Overfull hbox before producing SVG output

My MWE still fools me. I have only these lines in the .tex file: \documentclass[dvisvgm]{minimal} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{tikz} \...
user avatar
  • 107
1 vote
1 answer
82 views

How to specify backgroundcolor with dvisvgm

I am trying to convert a DVI to SVG with some white background. How do I need to specify the color? I have tried to convert the following example using latex (generating the DVI) and dvisvgm (...
user avatar
1 vote
1 answer
122 views

Producing SVG output

I have been using LaTeX, TikZ and MiKTeX on Windows 10 Pro since 2015 to successfully produce PDF files. The current version of the TikZ manual 3.1.9a has a simple example in section 10.2.4 Producing ...
user avatar
  • 107
2 votes
1 answer
63 views

how to scale math in tex4ht?

I need to scale some math using tex4ht. I assume this will only work when compiling latex to HTML when telling tex4ht to use svg for math equations and not mathjax. ps. (if math can scale using ...
user avatar
  • 18.1k
1 vote
1 answer
84 views

How to include a pdf when using dvisvgm

I'm trying to make SVG versions of my TikZ pictures with the dvisvgm driver described in the manual, but I'm stuck on pictures that include PDF images. Example: Content of red_circle.tex, to make the ...
user avatar
  • 704
1 vote
1 answer
95 views

Emoji in DVI? (dvilualatex, dvisvgm and twemojis)

Motivation I want to use emojis in Manim, an animation software which uses LaTeX for rendering in the background. The pipeline is: generate a TeX file run dvilualatex on it to convert it to DVI run ...
user avatar
  • 271
1 vote
1 answer
65 views

Bad SVG when two TikZ pictures are placed side by side in a figure environment - make4ht

When I use make4ht index.tex "xhtml" to compile the file \documentclass{report} \ifdefined\HCode \def\pgfsysdriver{pgfsys-dvisvgm4ht.def} \fi \usepackage{tikz} \begin{document} \...
user avatar
  • 753
0 votes
1 answer
92 views

SVG animation using data file

I am trying to create a simple SVG animation using the animate package: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{animate} \usepackage{multido} \usepackage{...
user avatar
  • 753
1 vote
1 answer
99 views

How to specify SVG classes with TikZ and graph drawing when converting to SVG?

I am trying to build upon this previous question. I can successfully specify node and edge SVG classes with dvisvgm specials when drawing a regular graph. With this MWE: \documentclass[tikz,dvisvgm]{...
user avatar
1 vote
1 answer
61 views

\animategraphics (animate package) and PDFs with rasterized effects result in artifacts

Preparing a SVG animated slide from a multi-page PDF with \animategraphics (animate package) in LaTeX Beamer I find issues with the rasterized effects embedded in the PDF, resulting in artifacts in ...
user avatar
1 vote
1 answer
167 views

Tikz patterns library and dvisvgm4ht

Does the dvisvgm4ht driver with make4ht support the TikZ Patterns library? The following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{patterns} \def\pgfsysdriver{pgfsys-dvisvgm4ht....
user avatar
  • 753
0 votes
0 answers
58 views

Anki cloze card do not work with LaTeX [duplicate]

I am trying to get Anki to work with LaTeX. I have a custom card type with the following header: \documentclass[12pt]{article} \special{papersize=3in,5in} \usepackage[utf8]{inputenc} \usepackage{...
user avatar
1 vote
1 answer
127 views

Link style in svg by dvisvgm output

dvisvgm converts my presentation with links indicated by a frame around it. My test file is named Hyper_Test.tex. I get this with following commands sequence: latex Hyper_Test.tex latex Hyper_Test....
user avatar
0 votes
0 answers
110 views

How can I modify the SVG's viewBox while using dvisvgm

I have been converting tex files into svg: lualatex --output-format=dvi flowchart.tex dvisvgm flowchart.dvi but the SVG's attributes always holds a view box with min-x, min-y value of viewBox='-72....
user avatar
2 votes
1 answer
194 views

why does dvisvgm fail on this tikz figure?

\documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[scale=1.3] \draw[help lines] grid (5, 5); \draw[fill=magenta!10] (1, 1) rectangle (2, 2); \draw[fill=magenta!10] (2, 1) rectangle ...
user avatar
  • 75
3 votes
1 answer
577 views

Making dvisvgm and Ghostscript from MacTeX talk to each other

I am trying to use dvisvgm to convert pdf files to svg files. When I call dvisvgm --pdf test.pdf (for example), I get the response ERROR: Ghostscript is required to process PDF files. Both programs ...
user avatar
  • 31
0 votes
1 answer
192 views

Bad pdf conversion using dvisvgm [closed]

I'm trying to convert this pdf file to svg file. Using dvisvgm (2.9.1) with dvisvgm --pdf testfile.pdf, it gives me this ugly result. Using pdf2svg (0.2.3) gives me this better result. I tried some ...
user avatar
  • 955
6 votes
0 answers
235 views

Using OpenType font with `dvilualatex` and `dvisvgm`

From the manual page of dvisvgm I learned that dvisvgm can convert and embed OpenType fonts in SVG output. Indeed, this perfectly works with the example code listed below, if I process it with ...
user avatar
  • 50.9k
10 votes
2 answers
392 views

How to get the opposite of {?x} and {?y}?

For certain applications, such as transformations of SVG objects, I need the opposite (times -1) of the current position's x and y coordinates, such as in \special{dvisvgm:raw <g id='myGroup' ...
user avatar
  • 50.9k
3 votes
1 answer
783 views

LaTeX3 error "Backend request inconsistent" when using xelatex + dvisvgm

The following example aims to produce an svg output, using tikz library animations. % main.tex \documentclass[tikz, dvisvgm]{standalone} \usetikzlibrary{animations} \begin{document} \tikz \node :...
user avatar
  • 20.7k
3 votes
1 answer
123 views

Generating SVG with element IDs

I'm creating a family tree using the genealogytree package. I intend to use the output for both print and an interactive web page. For the web page, I can generate an SVG by using dvilualatex and ...
user avatar
  • 161
1 vote
0 answers
612 views

dvisvgm: DVI to SVG issue

I am trying to convert a DVI to SVG on Manjaro / Arch Linux, but it just won't work. I use the following latex (test.tex) to create a dvi file (test.div) \documentclass{standalone} \usepackage{tikz} ...
user avatar
  • 21
2 votes
1 answer
152 views

Why does dvisvgm produce faulty svg code for some expressions involving fractions and certain fonts?

I would like to ask for help with figuring out exactly what triggers a weird phenomenon concerning rendering of textstyle fractions in certain fonts with dvisvgm (version 2.6.3, distributed as part of ...
user avatar
2 votes
1 answer
77 views

Glyph- (not stroke-) based SVG clipped at baseline

If I process the file \documentclass{standalone} \usepackage{DejaVuSans} \renewcommand*\familydefault{\sfdefault} \usepackage[T1]{fontenc} \begin{document} \fontsize{9mm}{10mm}\selectfont {\bfseries ...
user avatar
  • 1,441
2 votes
0 answers
302 views

Compilation in DVI with driver 'dvisvgm' is not successful in MiKTeX [closed]

Environment: Windows 10 (x64); MiKTeX 2.9.7206-x64, GPL Ghostscript 9.25 (2018-09-13) Shared TeX installation; 'animate' package 2019/08/22; 'dvisvgm' 2.6.3 (utility from MiKTeX); 2017/...
user avatar
  • 21
1 vote
0 answers
340 views

beamer and latex + dvisvgm

I have the following .tex file \documentclass{beamer} \begin{document} \frame{\frametitle{Title} \begin{itemize} \item On both pages \pause \item Only appears on the second page ...
user avatar
  • 111
5 votes
1 answer
968 views

Phantom nodes for TikZ animation

I am writing an animation in TikZ, where I often have one node appearing in different contexts and want to animate the path it takes from one setting to the other, for now I am preparing the settings ...
user avatar
  • 578
2 votes
0 answers
188 views

how to fix inline math alignment in svg mode when using tex4ht?

fyi, reported also to tex4ht bug tracking https://puszcza.gnu.org.ua/bugs/index.php?424 This is a problem I knew about for years now, and never got the chance to ask about it except now. When using ...
user avatar
  • 18.1k
5 votes
1 answer
440 views

how to improve SVG for math resolution in tex4ht?

make4ht now supports both mathjax and svg for math. I noticed that the math displayed in the browser when using mathjax mode looks sharper/crisper than when using svg for math. So this question ...
user avatar
  • 18.1k
3 votes
0 answers
154 views

Missing text when using dvisvgm in conjunction with an eps file

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. \documentclass{standalone} \usepackage{...
user avatar
  • 53
1 vote
2 answers
5k views

MikTeX, Anki and Latex in Windows 10. Error executing dvipng. Sorry, but dvipng did not succeed

I have installed Anki and MikTeX in Windows 10 to create anki flashcards with LaTeX. I have installed MikTeX because I read that it's the best way to install dvipng and dvisvgm. After creating a ...
user avatar
  • 111
3 votes
2 answers
699 views

How to fix PostScript error "undefined in resourcestatus"?

I created a batch file animator.bat taking two parameters (a TeX input filename without extension and the number of pages). rem animator.bat rem %1 TeX filename without extension rem %2 The number ...
user avatar
  • 2,383
3 votes
1 answer
1k views

How to create an SVG animation from a single common input file that is also used by others?

I have a single input file as follows. % input.tex \documentclass[pstricks]{standalone} \usepackage{pst-plot} \begin{document} \multido{\i=25+25,\r=2.5+2.5}{144}{% \pspicture[algebraic,plotpoints=\i,...
user avatar
  • 2,383
2 votes
1 answer
109 views

tex4ht conflict with math in table vs. outside table when using SVG

I found a problem using tex4ht with SVG for math. I needed to make a table and put math in it. I found that the same math inside the table looks bad compared to the math outside the table. After ...
user avatar
  • 18.1k
0 votes
0 answers
283 views

How to export a tikzpicture to svg with text tags? [duplicate]

Premise I don't know if this was already asked but I searched for it and only found something relevant but nothing that solved my problem. Probably the most related question is How to create non-...
user avatar
  • 2,500
1 vote
0 answers
321 views

How can I make dvisvgm work with non-default fonts?

When running dvisvgm to convert a dvi to svg, I get the error WARNING: can't embed font 'mi-kurierri'. (Or something corresponding to any non-default font I try) It used to work, but I tried to ...
user avatar
4 votes
1 answer
410 views

Different SVG Output for mathematics symbols with dvisvgm used with htlatex or make4ht

The tex file with the following code is to be converted into html. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \(\implies\) and \(\iff\) \\ \(a \implies b\) \...
user avatar
  • 1,421