Questions tagged [dvisvgm]
The dvisvgm tag has no usage guidance.
49
questions
6
votes
1
answer
132
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{...
4
votes
1
answer
96
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 ...
0
votes
1
answer
44
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 `...
2
votes
0
answers
75
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 ...
1
vote
0
answers
27
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, ...
0
votes
1
answer
65
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 ...
0
votes
1
answer
341
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'. \...
1
vote
0
answers
123
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 ...
0
votes
0
answers
98
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=-...
2
votes
1
answer
245
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 ...
1
vote
1
answer
116
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 ...
2
votes
1
answer
71
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 {\...
0
votes
1
answer
157
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}
\...
1
vote
1
answer
196
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 (...
1
vote
1
answer
670
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 ...
2
votes
1
answer
175
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 ...
1
vote
1
answer
137
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 ...
1
vote
1
answer
227
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 ...
1
vote
1
answer
85
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}
\...
0
votes
1
answer
135
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{...
1
vote
1
answer
154
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]{...
1
vote
1
answer
112
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 ...
1
vote
1
answer
214
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....
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{...
1
vote
1
answer
233
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....
0
votes
0
answers
192
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....
3
votes
1
answer
348
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 ...
4
votes
2
answers
1k
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 ...
0
votes
1
answer
385
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 ...
8
votes
0
answers
397
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
...
10
votes
2
answers
399
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' ...
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
:...
3
votes
1
answer
155
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 ...
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}
...
2
votes
1
answer
212
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 ...
2
votes
1
answer
109
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 ...
2
votes
0
answers
387
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/...
1
vote
0
answers
493
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
...
6
votes
1
answer
1k
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 ...
2
votes
0
answers
263
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 ...
5
votes
1
answer
591
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 ...
3
votes
0
answers
190
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{...
1
vote
2
answers
8k
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 ...
3
votes
2
answers
829
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 ...
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,...
2
votes
1
answer
119
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 ...
0
votes
0
answers
291
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-...
1
vote
0
answers
413
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 ...
4
votes
1
answer
497
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\) \...