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

learn more… | top users | synonyms

0
votes
1answer
588 views

How to import SVG or EPS files with LaTeX legends on Inkscape?

I usually plot my functions using Matlab or Python (matplotlib) and set labels with LaTeX. Occasionally, the plots have some rendering problem and I edit their SVG or EPS files using Inkscape. The ...
14
votes
0answers
236 views

Did one manage to get the new dvisvgm driver from PGF 3.0 to work?

Background: PGF 3.0 added a new, direct way to create SVG. It now has a dvisvgm driver (pgfsys-dvisvgm.def) which has fewer (claimed) limitations than the pgfsys-tex4ht.def driver. Except it doesn't ...
5
votes
0answers
120 views

Obtain a PDF animated from SVG animated

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 ...
5
votes
0answers
76 views

svg package interfers with opacity

As soon as I load the package svg, tikz does not handle opacity any longer. Here, an example: \documentclass{article} \usepackage{tikz} \usepackage{svg} \begin{document} \begin{tikzpicture} ...
4
votes
0answers
90 views

svg export from inkscape to latex ruins typesetting

I would like to use the .pdf_tex option for my SVG images exported from Inkscape because it's an amazing feature but it doesn't work as intended. What I do: Export image from Inkscape Integrate ...
4
votes
0answers
162 views

svg package failing to find svg files

I am trying to get the svg package working on an OSX system. If I use inkscape to save the *.svg files as *.pdf and *.pdf_tex, then the sample file from this question works fine: ...
4
votes
0answers
238 views

Workaround for the animations in Beamer? How to convert a pdf presentation to a Sozi svg?

I want to use Beamer to write my presentations, mainly because I can use TikZ code on it. I also use to include png and pdf figures, so I like to compile with pdflatex. However, I'm starting to hate ...
3
votes
0answers
35 views

Scale svg according to font size

Assume this example document: \documentclass[12pt,leqno,a4paper]{article} \usepackage{graphicx} \usepackage{svg} \begin{document} \begin{figure}[htbp] \centering ...
3
votes
0answers
198 views

How not to extract text when using \includesvg?

When using the includesvg macro that is provided by the svg package to include an svg image, all "text components" of the image (see the manual) are separated into a pdf_tex file (which is basically a ...
2
votes
0answers
61 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 ...
2
votes
0answers
217 views

Inserting SVG images in Latex

I need to include some SVG graphics in my latex file. The SVG files have been created with a Python program, they don't come from Inkscape (I know that there are a lot of questions answered about the ...
2
votes
0answers
719 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
98 views

How to use import package to keep relative path references in subfiles and at the same time use svg?

I have the following directory structure: main.tex chapter/ chapter1.tex img/ image.svg This is the content of main.tex: \documentclass{report} \usepackage{svg} \begin{document} ...
2
votes
0answers
168 views

How can I generate a nicely laid out image including text and a png image?

I would like to generate an image which incorporates some text, nicely laid out with a nice font, and a png image which has to be included in the image. I could put this together quite quickly in ...
2
votes
0answers
702 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? % ...
2
votes
0answers
130 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} ...
1
vote
0answers
29 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
23 views

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

Hi all :) This is my first question here, so here goes. 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 ...
1
vote
0answers
114 views

How to escape underscores in the resulting .pdf_tex file?

According to this: http://tex.stackexchange.com/a/2107/41370 I have to use inkscape to generate a PDF file and a corresponding .pdf_tex file. Since my original SVG file contains a class diagram it ...
1
vote
0answers
93 views

Figures in Minipage to avoid multiple pdf's warning, now labels aren't working

I'm trying to include svg graphics in combination with the respective .pdf_txt within my bachelor thesis. So far that works but it triggers the Warning : 'multiple pdf's in a page group'. That Warning ...
1
vote
0answers
62 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
677 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 ...
1
vote
0answers
214 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, ...
1
vote
0answers
188 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? ...
0
votes
0answers
27 views

Can't find svg file

even though i changed PDFLaTex to: pdflatex.exe --shell-escape -synctex=1 -interaction=nonstopmode %.tex i still get those error messages Zeile 16: File fig/vector' not found. } Zeile 16: ...
0
votes
0answers
18 views

Does svg package work on Windows?

The 2012 documentation for the svg package says "Finally, this package will not work on Windows". Is this still true?
0
votes
0answers
54 views

.svg image sharelatex compile error

I am trying to include a .svg image in sharelatex.com is there a way to do this? I have tried the following code but its not working, i get an compile error. svg image: svg image ...
0
votes
0answers
30 views

How to include a pandas boxplot in my document?

Usually, I include matplotlib plots in my tex document like that: I use matplotlib to plot and save the figure as vector graphic (svg) import matplotlib.pyplot as plt plt.figure(figsize=(15, 8)) ...
0
votes
0answers
116 views

Generating sequence of SVG images with Tikz/Beamer

I use Tikz and Beamer a lot when creating slides and I was wondering if there was a simple way of using the same framework to generate a sequence of SVG images (or any other format that could be used ...
0
votes
0answers
84 views

wkhtmltopdf messes up my latex-svg

I have a very strange behaviour when trying to compile latex to an svg and then rendering a pdf with wkhtmltopdf. It prints some weird bars on my svg. In my html it doesn't display anything like this. ...
0
votes
0answers
67 views

invisible special character generated from pdf file

I am trying to insert a pic.pdf file as picture inside my beamer presentation. I used "inkscape" to generate pic.pdf file. There is a special character used inside my svg file (format of the ...
0
votes
0answers
327 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 ...
0
votes
0answers
214 views

How can I change the converter for SVGs previews in LyX?

I've been using SVG files in my LyX documents, on Arch Linux (LyX 2.1.1), but found that when converting to PDF, the default rsvg-convert does a poor job, with many artifacts (e.g. lost text, lost ...
0
votes
0answers
76 views

Position of included svg image

how can I include an .svg image and center it relative to a specific point? There is a specific point in the image that should be equidistant from both the left and the right of the page.