Skip to main content

Questions tagged [dvisvgm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
91 views

make4ht unable to compile with TikZ pictures

I am having troubles making make4ht working with Tikz pictures. My computer is a Mac M1 Sonoma 14.2.1, I have TeX Live 2024 and Ghostscript 10.03.0 on my computer: lualatex --version This is LuaHBTeX, ...
mistral's user avatar
  • 105
1 vote
1 answer
45 views

How to use alternative make for parallelizing dvisvgm in make4ht on windows

On linux, make4ht is able to parallelize the build of SVGs in dvisvgm. It looks like dvisvgm_hashes.lua expects to run exactly "make -j". I'm stuck with jom (https://wiki.qt.io/Jom) for ...
Allen's user avatar
  • 25
1 vote
1 answer
35 views

Increase SVG size in make4ht

I would like to increase the default scale of dvisvgm as invoked from the make4ht scripts. Is there a way to pass the "scale" option to dvisvgm_hashes from the command line? Thanks, Allen
Allen's user avatar
  • 25
1 vote
0 answers
68 views

Different output from pdflatex, dvipdfm, dvisvgm and dvips. (TikZ arrowhead)

Why do TikZ arrowheads in this example look different depending on which way I compile the file? I'm using TeX Live 2023 on Ubuntu. My source test.tex looks like this: \documentclass{standalone} \...
ttsc's user avatar
  • 415
2 votes
1 answer
153 views

How to make cmyk colors work with dvisvgm?

I have a tex file like this: \documentclass{standalone} \usepackage[cmyk]{xcolor} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[green] circle (3); \end{tikzpicture} \end{document}...
ttsc's user avatar
  • 415
0 votes
0 answers
65 views

I'm trying to use latex to generate pdf and svg formats of the pictures I made, but the useage of the dvisvgm tool will make my pdf file look weird

Thank you for reading my question Introduction My latex compile environment is VSCode + Texlive + LaTeX workshop. I want to use the tikz toolkit in latex to draw some pictures and generate .pdf and ...
BqBPdx's user avatar
  • 39
6 votes
2 answers
166 views

Unable to use dvisvgm when l3draw drawing contains scoped box

I found a strange issue when experimenting with dvisvgm trying to create SVG files from DVI files. I found that if I append a box (or a coffin) to a drawing created with the l3draw package and this ...
Jasper Habicht's user avatar
1 vote
0 answers
58 views

How to generate SVG beamer slides with interp shaded 3D plots?

I am trying to create an SVG beamer presentation that will eventually embed videos using media4svg. While the video embedding works great, 3D plots are giving me trouble. Any ideas to export the ...
Rushi's user avatar
  • 837
2 votes
0 answers
74 views

How can I pass PDF special to dvisvgm?

From dvisvgm documentation: SUPPORTED SPECIALS dvisvgm supports several special commands that enrich the DVI command set with additional instructions for features, like color, graphics, ...
user202729's user avatar
  • 7,573
1 vote
2 answers
57 views

make4ht and dvisvgm generates a '.svg' file that contains text regarding using option '-dNEWPDF'

I'm generating .svg files with mahe4ht and dvisvgm. The .svg is generated but contains text at the beginning regarding the use of option -dNEWPDF: The old, written in PostScript, PDF interpreter has ...
flpo's user avatar
  • 41
1 vote
1 answer
83 views

'dvisvgm' doesn't detect 'libgs' with MacTex 2023 and 'libgs' installed - MacOS 12.7.2 (Monterey)

I want to convert my LaTeX file using package 'tikz' into a HTML file using 'make4ht', which itself runs 'dvisvgm', which itself needs 'libgs'. Everything should run automatically as given by auto-...
flpo's user avatar
  • 41
2 votes
0 answers
143 views

How to update dvisvgm to the last release not yet availble in texlive 2023

In my previous question about creating svg file with the animate package it is sugested that I upgrade dvisvgm to version 3.1 which is available on ctan but not in texlive 2023. Unfortunately I don't ...
Hafid Boukhoulda's user avatar
1 vote
1 answer
128 views

svg generated by animate package is not displayed in the browser

I am trying to generate svg file from a multipage pdf using 'aniamte' package but without success! \documentclass[dvisvgm]{standalone} \usepackage{animate} \usepackage{graphicx} \begin{...
Hafid Boukhoulda's user avatar
2 votes
1 answer
166 views

Use dvisvgm within standalone convert options

I am trying to enable "one click" generation of PDF and SVG image files from the standalone class due to having a large number of images. This worked perfectly on my Intel Macintosh ...
purplechemist's user avatar
6 votes
1 answer
189 views

Incorrect tikzpicture size when using dvisvgm output driver (PGF/TikZ)

I want to produce an SVG file with a node shape, e.g. rectangle. I use the following LaTeX code: \def\pgfsysdriver{pgfsys-dvisvgm.def} \documentclass{article} \usepackage[usenames]{color} \pagestyle{...
Christos Sevastiadis's user avatar
4 votes
1 answer
110 views

TikZ animations key `end on` is interpreted as `begin on`

PGF/TikZ Manual describes a key called /tikz/animate/options/end on. I understood that it should define a trigger for ending the timeline. However, I haven't been able to make it work. When I try to ...
ttsc's user avatar
  • 415
0 votes
1 answer
78 views

I'm getting this error of 'cannot find .svg file in the directory' while it was there in the directory

"errorSummary": { "error": [ "! Package svg Error: File `emptystar.svg' is missing.\n", "! Package svg Error: File `...
harshavardhan's user avatar
2 votes
0 answers
192 views

Can I use a different version of dvisvgm than the one bundled with TeX Live 2023?

I downloaded TeX Live 2022 using these instructions, and upgraded to TeX Live 2023 using these instructions. The dvisvgm that ends up getting installed on my system is 3.03. I want to use 3.1. Is ...
user41177's user avatar
  • 375
1 vote
0 answers
37 views

dvisvgm conversion renders differently on browser than on inkscape

I'm converting some TikZ pictures in SVG file with standalone class. To achieve that, I'm compiling with : latex \jobname.tex dvisvgm --font-format=woff2 \jobname.dvi Although with easy tikzpicture, ...
Piroooh's user avatar
  • 1,207
0 votes
1 answer
130 views

How can I make dvisvgm calling kpathsea find the texmf.cnf file in a nonstandard directory?

dvisvgm calling kpathsea cannot find the texmf.cnf file, but this does exist, though at a presumably nonstandard directory location. What to do to let the texmf.cnf file be located? To convert a .dvi ...
zylitoL's user avatar
  • 149
0 votes
1 answer
539 views

Error using svg package related to "clean" function

I am using the package svg to upload images. I have installed the package, and when I compiled the .tex file an error is been displayed saying "Unknown option clean' for package svg'. \...
Abdel Ruvalcaba's user avatar
1 vote
0 answers
244 views

Animategraphics, beamer and svg outputs

I am trying to adapt the answer of AlexG to this post in order to get a beamer presentation which includes an animation. The problem is that I use some personnalized beamer theme slide and for some ...
xounamoun's user avatar
  • 221
0 votes
0 answers
120 views

Hypertex option and borders

Using the answer of AlexG to this post, I have the following example code (example.tex), which has to be compiled with latex example latex example dvisvgm --font-format=woff2 --bbox=papersize --zoom=-...
xounamoun's user avatar
  • 221
2 votes
1 answer
361 views

Problem with \includegraphics and dvisvgm

I'm using XeLatex and dvisvgm to produce a .svg file. I want to include a .png image with \includegraphics but it doesn't work: there is a replacement image instead of the one I want. Here is what I ...
FunkiePhil's user avatar
3 votes
1 answer
184 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 ...
Jamie Adams's user avatar
2 votes
1 answer
85 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 {\...
Oliver Freyermuth's user avatar
0 votes
1 answer
189 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} \...
Aendie's user avatar
  • 265
1 vote
1 answer
266 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 (...
Uwe Ziegenhagen's user avatar
1 vote
1 answer
1k 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 ...
Aendie's user avatar
  • 265
2 votes
1 answer
280 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 ...
Nasser's user avatar
  • 20.3k
1 vote
1 answer
158 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 ...
jeremie's user avatar
  • 774
1 vote
1 answer
263 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 ...
csha's user avatar
  • 281
1 vote
1 answer
90 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} \...
Rushi's user avatar
  • 837
0 votes
1 answer
160 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{...
Rushi's user avatar
  • 837
1 vote
1 answer
163 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]{...
Zameer Manji's user avatar
1 vote
1 answer
123 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 ...
Emilio J. Padrón's user avatar
1 vote
1 answer
234 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....
Rushi's user avatar
  • 837
0 votes
0 answers
62 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{...
Hermetically Sealed Halibut's user avatar
1 vote
1 answer
267 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....
Harald Lichtenstein's user avatar
0 votes
0 answers
253 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....
JammingThebBits's user avatar
3 votes
1 answer
436 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 ...
ea42_gh's user avatar
  • 83
5 votes
3 answers
2k 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 ...
Paige's user avatar
  • 51
0 votes
1 answer
459 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 ...
MB4E's user avatar
  • 1,106
8 votes
0 answers
474 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 ...
AlexG's user avatar
  • 55.4k
10 votes
2 answers
435 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' ...
AlexG's user avatar
  • 55.4k
3 votes
1 answer
1k 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 :...
muzimuzhi Z's user avatar
3 votes
1 answer
178 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 ...
TimD's user avatar
  • 161
1 vote
0 answers
1k 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} ...
swap's user avatar
  • 21
2 votes
1 answer
239 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 ...
Hans Lundmark's user avatar
2 votes
1 answer
113 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 ...
Calaf's user avatar
  • 1,481