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
1
vote
1answer
26 views

Paper size when using svg package [duplicate]

My texlive debian is set to a4 paper size (paperconf -p a4). Using pdflatex on the following simple document \documentclass{article} %\usepackage{svg} \begin{document} test \end{document} I either ...
1
vote
0answers
25 views

\includesvg choosing the wrong image? [duplicate]

I have a question regarding the paths of \includesvg. My Folder structur: -MAIN -Test.tex -images -example_A -0_image.svg -1_image.svg -example_B ...
1
vote
1answer
50 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
1answer
79 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
0answers
27 views

Simple way to include .svg images [duplicate]

I come to your rescue because I screwed up the only reference I had of an SVG file that I had successfully included in a document (somehow copied the file and it got deleted. Pretty sure I did not &...
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 ...
1
vote
3answers
103 views

tikz - curly bracket implementation

I would like to know details about tikz curly bracket implementation then wish to get a equivalent version with svg by d3.js. For example \documentclass{article} \usepackage{tikz, pgfplots} \begin{...
0
votes
1answer
38 views

Inkscape's textext plugin unable to produce LaTeX symbol

Typesetting \[\LaTeX\] in textext extension/plugin of InScapes throws the following error. Question: Is something additional that needs to be done here, and/or, are there any workaround to resolve the ...
1
vote
1answer
66 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
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
1answer
130 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
484 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
287 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
60 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
47 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
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
128 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
84 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
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 ...
0
votes
0answers
28 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
54 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
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{...
0
votes
1answer
42 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
92 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 ...
1
vote
1answer
89 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
64 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
214 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
154 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
178 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
254 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
22 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
112 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
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
1answer
156 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
97 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
47 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
1k 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
184 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
100 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
89 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
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....
1
vote
2answers
271 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
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=...
0
votes
0answers
243 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
132 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
88 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
2 3 4 5
7