Questions tagged [svg]

SVG, short for Scalable Vector Graphics, is a language used for describing two-dimensional vector graphics.

67 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
0answers
2k views

Obtain an animated PDF from an animated SVG

I have read Animations in LaTeX, but my question (I think) is different. I have an SVG animated file and I want to create the same animation in LaTeX, without rewriting the code. An example is this ...
4
votes
0answers
538 views

Svg to Tikz doesn't work

I'm using inkscape to draw a simple picture and i saved with svg extension I want to convert this svg file to Tikz code for latex I download the extensions from github https://github.com/paaguti/...
3
votes
0answers
59 views

Very thick text when using svg

I'm using mathcha.io for create some figures. I exported them as svg. If I see on any browser looks perfect. But, if I render this svg at tex file, all text if so thick and I can't solve this, I ...
3
votes
0answers
190 views

keyboard layout

I need a library|package for creating keyboard layout. Is any example or package for them? Now exist many form: japanese are different than normal, exist some smalest keyboard for example 80 keys 60%....
3
votes
0answers
324 views

What's the purpose of the dvisvgm option/driver of PGF/TikZ?

I was trying to create SVG output from TikZ and ran into some problems. These have now been resolved, but the result is that I'm asking myself where my misunderstanding is or if the manual is wrong. ...
2
votes
0answers
382 views

Using SVG package in Latex (pdflatex) on macOS Catalina

Compilation fails after inkscape: command not found but I'm able to convert svg manually in terminal. The following command works 👍 and produce the img.pdf file. inkscape img.svg --export-type=pdf ...
2
votes
0answers
222 views

Inkscape SVG to PSTricks Commandline

With Inkscape I can save an .svg files to PSTricks (.tex) via the Save As dialogue. Is there a possibility to manage this via command line? I only find export to latex which is no PSTricks format.
2
votes
0answers
722 views

SVG-image colour dependent on text colour, without external tools?

I have a decorative SVG-figure, and I want to change just one variable, to alter both text- and SVG-colour Working in Sharelatex, using pdfLatex to compile SVG to retain its scaling properties MWE ...
2
votes
0answers
279 views

How to make dvisvgm output colors properly (wrong text color on dark background)?

Example code: \documentclass{standalone} \usepackage[alignedleftspaceno]{amsmath} \usepackage{tikz} \pagecolor{black} \begin{document} \begin{tikzpicture} \path node[text=white] ...
2
votes
0answers
26 views

Is there a way to automaticly get the label- and objectnames from an included svg file?

I'm pretty sure I read a solution for my problem a while back, but I can't find it anymore. What I need is, that when I include an SVG image and make one (or more) build prozess, the names of all the ...
2
votes
0answers
5k views

Inkscape and --shell-escape with TexStudio

My purpose is to show fig1.svg in latex. Here is my code: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{listings} \lstset{language=Matlab} \lstset{tabsize=2} \usepackage{graphicx} \...
2
votes
0answers
149 views

Why do some of the characters in my included PDF file show up transparent?

I'm trying to include a PDF file in my LaTeX document (I'm using pdflatex), which looks as follows: \documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics[page=1]{fdt1} \end{...
1
vote
1answer
52 views

insert a scalable graphic which doesn't affect file size to much

at the moment I've inserted graphics into my document using PNG. This works good but the graphics are to blurry. To avoid this I wanted to use a scalable file like .pdf pder .svg. Using .pdf results ...
1
vote
0answers
47 views

correctly scaling the output of svg2tikz for using in a tikzpicture

I am pretty new to tikz. I would like to use a simple external image inside a tikzpicture environment, like in the following mwe \documentclass[tikz,border=5]{standalone} \begin{document} \begin{...
1
vote
1answer
218 views

What is the best way to include matplotlib plots?

I work on both Windows and Linux. I already include SVG graphics that I create in Inkscape with \usepackage{svg}. For maintainablitly reasons I would welcome to re-use that for matplotlib plots, but I ...
1
vote
0answers
181 views

Can't include SVG image in LuaLaTex (MikTeX)

I have problems including an .svg image into my document (I'm using MikTeX on Windows 10). I found relevant Q&As here and I think I know which steps I need to take in order to import svg images: ...
1
vote
2answers
284 views

pdf to svg conversion puzzle

I am looking for a reliable way to convert a pdf from a latex file to SVG for display in a browser \documentclass{article} \pagenumbering{gobble} \usepackage{blkarray} \usepackage{xcolor} \...
1
vote
0answers
288 views

Package SVG animate in Beamer does not animate

I recently discovered that I can use the dvisvgm engine to work in SVG presentations and have them play in my browser. So I found this new package animate here and I am attempting to have my own ...
1
vote
0answers
77 views

Compilation error embedding figures by media4svg in beamer

I am experimenting with the new promising package media4svg which supposedly allows me to embed videos in a beamer presentation almost effortlessly, and then play the presentation in a common modern ...
1
vote
0answers
427 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} ...
1
vote
0answers
41 views

SVG image renders incorrectly when scaled

I have exported a chemical structure as a SVG using MarvinSketch, and included it like so: \documentclass{article} \usepackage{svg} \begin{document} \includesvg[width=0.5\linewidth]{test.svg} \end{...
1
vote
0answers
43 views

arara skripting to convert svg to pdf through inkscape?

I read about the arara cli and some scripting capabilities and im wondering if its possible to make arara use inkscape to convert svg to pdf before includeing them with \includegraphics. A frend ...
1
vote
1answer
2k views

Mactex svg package error: graphaside_svg-tex.pdf is missing

I have a .svg graphic in a tex document. I am getting the following error when I use mactex: Package svg Warning: You didn't enable shell escape' (orwrite18') (svg) so it wasn't ...
1
vote
0answers
549 views

tikz externalise as svg instead of pdf

i'm using the \tikzexternalize command to export all my tikz pictures out of my big (main-)document. For some reasons i need these pictures in svg-format. Is there a way to externalize the files ...
1
vote
0answers
184 views

Replace svg with svg-inkscape to get rid of subfig

I would like to include SVG images in my LaTeX document. I also would like to use subcaption for subfigures. I am using the following folder structure: <project path>/Document/document.tex for ...
1
vote
0answers
729 views

Including .svg images error

Why this code doesn't work? \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage[ a4paper, margin=15mm, bindingoffset=2mm, ...
1
vote
0answers
268 views

tcolorbox and svg package shadow error/bug

There's a bug with the shadows of tcolorboxes when using tcolorbox and svg packages together. Top is with svg package not loaded while bottom one is with svg package loaded. Here's a mwe: \...
1
vote
0answers
55 views

Exporting all display formulas from Lyx to separate SVG files on Mac

I'm using Lyx on my Mac. I would like to use some sort of script which takes file.lyx as input and outputs SVGs of all of the display formulas in it. This really should be automated and with no user ...
1
vote
0answers
252 views

SVG drawing created by Inkscape not displayed properly on Lyx

I created an SVG figure using Inkscape and inserted it into my Lyx paper. But the figure is not properly display either on lyx or the pdf it generated. For example, an arrow "--->" becomes a line "---"...
1
vote
0answers
2k views

File SVG not found in windows texstudio

I was using latex for a while on Linux and I was using SVG. I remember it was a very hard time to fix the errors specially the one saying File "./somesvg" not found Now, installed TeXStudio and ...
1
vote
0answers
434 views

Latex SVG with variable Text

-this question is a dublicate of a stackoverflow-question- I would like to write a document with figures containing variable text. In the combination of SVG and Latex, I tried to acomplish this: In ...
1
vote
0answers
1k views

Include SVG does not detect file

I am trying to render an .svg image using the svg.sty package in latex. When I run the following code I get three errors. Posted below the code \documentclass[a4paper,10pt,twoside,openright]{report}...
1
vote
0answers
738 views

How to convert font file to a series of Bézier curves?

While we are solving this question How to get intersection point(s) of two glyphs?, we are facing some interesting subproblems. This is the first one. How we could convert any font file (OTF, TTF, PFB,...
1
vote
0answers
522 views

Convert color SVG / PDF to greyscale, using hatching patterns

I have a couple of charts which are in PDF or SVG format. I want to embed them as figures, but I want to replace colors with different types of hatching patterns. Is it possible to do this with LaTeX? ...
1
vote
0answers
2k views

Is this a bug with Inkscape and/or LaTeX or am I missing something?

I want to include figures generated by inkscape which include transparency. When I change the width of the figures, things get weird. Have you ever noticed this and is there a better way to do? % ...
0
votes
0answers
38 views

How to convert a LateX code to Image using a vector template

I want to use illustrator to create a fancier look for my algorithm boxes. Is there any way that I can set a script (or any other way really) to take the algorithmic text on latex and convert it to ...
0
votes
0answers
29 views

Insert svg image in latex as figure: excessive spacing around it

Good afternoon, I have a problem related to insert .svg images in latex as a figure. I have tried to insert an image but it leaves too much spacing before the image, and it is not centered either. I ...
0
votes
0answers
43 views

About one error when I induced SVG figure

I tried to include SVG image into the LaTex. My code is as follows: \documentclass[a4paper,12pt]{book} \usepackage{svg} \begin{document} \begin{figure}[ht] \centering \includesvg[width=0.4\...
0
votes
1answer
130 views

SVG package runs Inkscape with invalid command line args

There are many questions on \includesvg already, so yes, I have added --shell-escape to latexmk, lualatexmk and pdflatex in .vscode\settings.json. Alternatively I have also put set_tex_cmds( '--shell-...
0
votes
0answers
29 views

Where to add shellescape in texstudio when using latexmk?

For using svg images in pdflatex, I have to enable shell-escape. I am using texstudio and latexmk. Where to set shell-escape?
0
votes
0answers
23 views

includesvg newly generates pfd_tex files every time it is executed

I'm using the svg package and includesvg to include svgs in my document. As I need so escape % signs in my pictures, I need to edit the .pfd_tex files in the svg-inkscape directory (as explained here)....
0
votes
0answers
19 views

\includesvg is showing three copies of whatever the first image is

I'm using the following bit of code in a project: \begin{tabular}{ccc} \includesvg{Image1.svg} & \includesvg{Image2.svg} & \includesvg{Image3.svg} \end{tabular} The three images it'...
0
votes
0answers
152 views

Can't export SVG image to Tikz file from Inkscape 1.0.1 on Windows using Inkscape2Tikz extension

I am trying to export an image from Inkscape to a .tex file with the extension Inkscape2Tikz downloaded from GitHub, but it won't work. I managed to include the extension in Inkscape and when I try to ...
0
votes
0answers
100 views

includesvg and trim

currently designing a package which allows to work with several image format options, including svg, it happens that \includegraphics allows me to trim, but not \includesvg : \ifdefequal{\mscgen@T}{\...
0
votes
0answers
186 views

Trying to use mathjax in svg

I'm trying to make a svg gràfic in my web page. I want to write in it a LaTeX formula using mathjax but it doesn't work. Here is my code, althought I think it is not the problem. Can anyone help me? ...
0
votes
0answers
71 views

30 page document takes one hour to compile

I know that there are multiple questions of the kind "file takes too long to compile", but one whole hour for a 30-pages document seems abnormal to me. I'm using a custom LaTeX package, ...
0
votes
1answer
101 views

svg package not rendering svg containing math

I have an svg file of an equation as follows <svg xmlns="http://www.w3.org/2000/svg" xmlns:wrs="http://www.wiris.com/xml/cvs-extension" height="29" width="85"...
0
votes
0answers
74 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....
0
votes
0answers
15 views

hyperlink item in list with corresponding part in (svg) image

I need to hyperlink item in list with corresponding part in (svg) image or vice-versa. Based on the available options, only page links can be added in svg image for each object; but not to specific ...
0
votes
0answers
89 views

Is there a way to avoid conversion to glyph paths?

I have been playing with tikz lately and I was wondering is there a way to export to svg, so I have delved into the recent well written user manual, on page 121 stumble upon: lualatex --output-format=...