Questions tagged [svg]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

Scale SVG by text size

I have this file \documentclass{article} \usepackage{svg} \newcommand\mtg[1]{% \includesvg[height=8px]{#1.svg} } \begin{document} This magic card costs \mtg{R} mana \end{document} Where R.svg is: &...
0
votes
0answers
26 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
1answer
31 views

Text in svg is not wrapping around a box

I am trying to include an sag image in Latex like the following. \begin{figure}[H] \centering \includesvg[inkscapelatex=false, width=0.7\pdfpagewidth]{figure.svg} \end{figure} <?xml version=&...
0
votes
1answer
29 views

SVG text overflow, rendered with ellipsis

This is my SVG, drawn in draw.io. https://drive.google.com/file/d/1hVWrAL8CysF9wlDvZa3D3XfXwNy4Y3iV/view?usp=sharing A MWE, I use inkscapelatex=false to keep the font: \documentclass{report} \...
1
vote
3answers
80 views

Matplotlib, Inkscape, TeXStudio workflow SVG figures

When I create an SVG figure in matplotlib import numpy as np import matplotlib.pyplot as plt import matplotlib new_rc_params = {'text.usetex': False, "svg.fonttype": 'none' } matplotlib....
1
vote
0answers
41 views

\includesvg leads to overlapping elements in pdf [closed]

I include svg's like this: \begin{figure}[H] \centering \includesvg[inkscapelatex=false, width = \columnwidth]{batterie_normal_kw4} \caption{Verlauf von Batteriestand, Autarkie und Energieverbrauch ...
0
votes
1answer
38 views

SVG incorrectly rendered, but looks fine in Chrome & Inkscape

Can anyone check what is wrong with this svg? This is the file from a famous article, rendered correctly in both Chrome and Inkscape: My MWE in Overleaf: \documentclass{article} \usepackage{svg} \...
0
votes
0answers
36 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
44 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-...
1
vote
2answers
56 views

How to include SVG with dots in file name?

I'm trying to include SVG images with dots/periods in the file name. \documentclass{article} \usepackage{svg} \begin{document} \includesvg[width=\textwidth]{xgb.clf.output/Images/no.missing.data....
3
votes
0answers
51 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 ...
0
votes
0answers
25 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?
1
vote
1answer
51 views

ConTeXt: External SVG images using XML setups

Background Include an external SVG image from an HTML img element, using ConTeXt LMTX. Code Here's main.tex: \startbuffer[document] <body><img src="circle.svg"/></body> \...
1
vote
0answers
36 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{...
0
votes
1answer
25 views

Automatic pdf_tex export from svg via inkscape and svg package on Windows

I have the following code: \documentclass[12pt]{article} \usepackage{svg} \setsvg{inkscape=inkscape -z -D, inkscapeversion=1, svgpath=figures/} \begin{document} \begin{figure} \...
2
votes
1answer
89 views

Print as many images in a row as fit the page

I have a svg image for a tile in a board game. I want to print this 3 times so that I can print the page and cut out the tiles for my game. However, I cannot figure out how to print as many tiles next ...
0
votes
1answer
48 views

Wrong SVG files are rendered in document

I am trying to display two figures, which both contain two SVG images in separate minipages each: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{svg} \begin{...
1
vote
1answer
46 views

Handling subequations with make4ht

When compiling with make4ht and using svg parameter, the equation, drawn from subequation using align environment, is not converted into SVG. If I change to mathjax, the HTML displays the warning: ...
1
vote
1answer
113 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 ...
2
votes
1answer
94 views

inkscape: PDF inclusion: required page does not exist <1>

Just like here Inkscape produces a pdf_tex file that contains higher page numbers then the generated PDF contains. Deleting the line in question in the file fixes the issue. User Martin Schröder ...
1
vote
0answers
86 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
1answer
178 views

Inkscape svg converted to pdf, too much white space under figure

I made an svg file with Inkscape, which I saved as a pdf with the "Omit text in PDF and create LaTeX file" option. I also checked "Use exported Object's size". When using the ...
0
votes
0answers
21 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)....
2
votes
1answer
73 views

Intervals on the real line. How to construct the symbolic diagrams of real intervals on the real line?

I'm trying to elaborate on my student's exercises on interval notation on the number line. I tried using the LaTeX code of this response here to draw intervals on the number line identical to those in ...
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
119 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
1answer
99 views

Problem when exporting .svg to TikZ code on MacOS

I'm trying to convert a svg file into tikz code using Inkscape and the svg2tikz extension downloaded from https://github.com/kjellmf/svg2tikz. I've done this before under Windows 10, but this time I'm ...
0
votes
0answers
74 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
1answer
37 views

Genealogytree export to SVG file [duplicate]

I have a simple family tree defined in Latex and package genealogytree: \documentclass{article} \usepackage[all]{genealogytree} \begin{document} \begin{tikzpicture} \genealogytree[template=formal ...
1
vote
0answers
272 views

SVG Figure in Latex Overleaf [duplicate]

I am struggling to import a figure.SVG in Overleaf. I tried with \usepackage{svg} but it doesn't work. I read a few times about Inkscape, however I work on Overleaf and I have no idea how to install ...
0
votes
0answers
131 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
69 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
58 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
1answer
76 views

Screaming ghost symbol in tex

I recently came across this screaming ghost graphic in the book of "The Elements of Statistical Learning". I searched for tex packages for this but could not find one. Are there any ...
4
votes
1answer
64 views

Convert a SVG draw to a symbol

I have the following SVG graphic that I would like to convert to a standard symbol. Can I do that ? I am not afraid of using command line tools. <svg version="1.1" xmlns="http://www....
0
votes
0answers
59 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
2answers
206 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} \...
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
87 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=...
0
votes
0answers
208 views

Problems with render fonts of a .svg file using Overleaf

I already seen some questions about this but I can't figure a solution. My problem is that when I insert a .svg file it not render like in Mozilla or GIMP. In Overleaf looks like this: And in Mozilla ...
1
vote
1answer
94 views

With the SVG package, is it possible to set the output folder to be the same as the input folder?

I am trying to use the svg package for LaTeX, which in my case also relies on Inkscape 1.0, to easily include SVG files in my compiled PDF. However, it wants to create all of its outputs in one folder ...
0
votes
1answer
64 views

Document Class “convert” does not work with SVG Package

When creating a standalone document to convert it into a PNG file, I get an error if I include the SVG package. MWE %\documentclass{standalone} \documentclass[convert={density=720,outext=.png}]{...
1
vote
2answers
125 views

Is there a way to avoid deeply nested groups in SVGs created from TikZ PDFs?

Say I have a document with many individual TikZ pictures (in my cases, dozens): \documentclass{standalone} \usepackage{tikz} \begin{document} \foreach \i in {1,...,20} {% \begin{tikzpicture} ...
0
votes
0answers
27 views

Pre-convert figures into a specific format?

I have a set of figures with different formats: jpg, png, svg, pdf. Most figures are produced by me (plots) so I have a choice as to the format in which to save them in. I'm not sure if I should pre-...
1
vote
0answers
241 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
63 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 ...
4
votes
0answers
442 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/...
1
vote
1answer
48 views

.gitignore for svg-inkscape

I managed to get SVG to work with LuaTeX. However, in my working folder, there's a new folder named svg-inkscape. Is this a mandatory folder? Can I ignore it, and if so, is there a proper .gitignore ...
2
votes
1answer
69 views

Bad SVG output when using htlatex

I am trying to compile some minimal test.tex using htlatex test.tex "xhtml,svg", but the SVG generated from tikz pictures does not seem to work. \documentclass[11pt]{article} \usepackage{tikz} \...
4
votes
1answer
416 views

Math font as single stroke, no fill

I'm trying to create a hand-writing animation effect for video presentations. The standard open tool trick for this is to draw SVG paths and animate the dash pattern from 0 to the end of the path. ...

1
2 3 4 5
7