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
3 votes
0 answers
51 views

How to make LuaLaTeX use ImageMagick Instead of Inkscape for converting SVGs?

I need to use ImageMagick instead of Inkscape for converting svgs to pdfs in order to include graphics to my document. I've found this paragraph in the svg and svg-extract manual: This is what I've ...
Mykola Tetiuk's user avatar
1 vote
1 answer
37 views

Optimise rendering of multiple copies of the same .svg file

I am using the svg package to include flag emojis as .svg files in my text with \includesvg{}. However, since I need to render a lot of flags which are the same, and each flag takes a lot of time, it ...
Toivo Säwén's user avatar
1 vote
0 answers
56 views

Librarys in TikZJax

https://tikzjax.com/ https://tikzjax-demo.glitch.me/ Is it possible to use librarys in TikZJax? I testet \tikzset{ background rectangle/.style={fill=red, rounded corners}, show background ...
cis's user avatar
  • 7,497
1 vote
1 answer
43 views

Horizontally centering and vertically filling svg

I am trying to fill the remaining space of a page with a tcbox wrapped includesvg item. There is funny behavior when I do this. When including a tall svg, one which will not fill the entire width of ...
Logan's user avatar
  • 113
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 ...
ttsc's user avatar
  • 319
0 votes
0 answers
22 views

XeLaTeX passes to Inkscape wrong path when exporting svg

Here's my .tex file: \documentclass[12pt]{article} \author{} \usepackage{svg} \usepackage{graphicx} \graphicspath { {./images/svg/} } \begin{document} \newpage \includesvg{src/images/svg/demo....
Mykola Tetiuk's user avatar
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 `...
harshavardhan's user avatar
-1 votes
1 answer
63 views

SVG is not rendered if (obsolete?) AUX files are deleted beforehand

In my document I use a SVG file in the header (fancyhdr) and the same SVG is used independently on the title page. More or less like this: ... \fancyhead[C]{ \includesvg[]{images/my-svg-file} } \...
Sim Son's user avatar
  • 264
1 vote
2 answers
2k views

How to draw an eagle?

I would like to draw an eagle with TiKz, with one continuous curve. The eagle can be simpler, but basically like this with symmetric wings. The tikz code is needed to replace the bird below with the ...
Epa's user avatar
  • 3,365
0 votes
0 answers
36 views

Is there a way to generate single stroke path from latex math like Hershey fonts?

I am trying to create an automated text animation tool. For regular text, I can use a single-stroked font like Hershey font in Inkscape and then I can export it to svg from which I can get the path ...
xyz's user avatar
  • 13
0 votes
0 answers
35 views

SVG font rendered offset

I'm generating figures in MATLAB (MWE below), loading them into LaTeX (Overleaf), and then making them very small. Is there something I can/should be doing to control the text anchoring such that the ...
Danny Garside's user avatar
0 votes
1 answer
49 views

How to align the icon in an itemize environment? [duplicate]

I'd like to align the icon with the text. I prefer to put the icon outside the text instead of changing the line height. The svg file https://svgur.com/s/vr6 \documentclass{article} \...
zEn feeLo's user avatar
  • 175
1 vote
0 answers
83 views

How to delete duplicate points in computer generated tikz image

I used an svg file of an image as the basis for a program (this one, I think) to generate a tikz version of the image. The tikz code it produced compiles correctly and the image looks good, but the ...
Brian's user avatar
  • 149
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, ...
Piroooh's user avatar
  • 1,197
2 votes
0 answers
80 views

svg can't call Inkscape from LuaLaTeX

The following MWE fails with LuaLaTeX but runs fine with pdfLaTeX on an up to date MiKTeX installation. Both cases work on a different machine with a TeX Live installation. Any idea what the problem ...
schtandard's user avatar
  • 14.5k
0 votes
0 answers
50 views

how to extract SVG images/tables from Beamer multi-page PDF?

I have a 50-page PDF from Beamer in which I found a typo that I need to correct before a job interview. I no longer have access to the image files included via includesvg and table files included by ...
con's user avatar
  • 299
0 votes
0 answers
72 views

Wrap a svg figure with text?

I searched on the Internet but I couldn't find an answer. To have figures with more quality, I uploaded a few svg files into my LaTeX project. However, it seems to be impossible to wrap a figure, ...
Guillaume's user avatar
0 votes
1 answer
94 views

Horizontal lines in SVG are not rendered

I'm trying to include a SVG image in a TeX document (on Overleaf, if that matters). Here's the image: https://svgshare.com/s/rcv (created using Inkscape, the LaTeX is from TeXText) The horizontal ...
Tanny Sieben's user avatar
0 votes
0 answers
18 views

Error in including svg figure to my tex files [duplicate]

I am trying to include an svg figure to my .tex file but I end up getting this error. Package svg Error: File '56turns_compar_svg-tex.pdf' missing Here is a MWE: \documentclass[ 11=2pt, % The default ...
Wallflower's user avatar
0 votes
0 answers
43 views

svg package takes the bounding box of the original SVG as opposed to the bounding box resulting from the text conversion

As a follow up to SVG extracted using `svg-extract` looks nothing like the original SVG The following \documentclass{standalone} \usepackage{svg} \usepackage{relsize} \usepackage{amsmath} \begin{...
user32882's user avatar
  • 1,574
0 votes
1 answer
84 views

SVG extracted using `svg-extract` looks nothing like the original SVG

Here's my SVG drawing: I include it in my LaTeX document using the svg package as follows: \documentclass{article} \usepackage{svg} \begin{document} \includesvg{idea.svg} \end{document} Which ...
user32882's user avatar
  • 1,574
0 votes
0 answers
66 views

How to crop resulting PDF to the size of the SVG?

I have a latex file containing the following: \documentclass{article} \usepackage{graphicx} \usepackage[inkscapearea=page]{svg} \begin{document} \begin{figure} \includesvg[scale=1.0]{...
user32882's user avatar
  • 1,574
0 votes
1 answer
131 views

Replacing PNG format with SVG due to low resolution

I need to show two diagram in PNG format next to each other and I did it using the following code, but the resolution and quality of the figure is not good as it should be. I have their SVG format too,...
Questioner's user avatar
1 vote
0 answers
112 views

Scale down svg without breaking the image

I want to resize included svg, and it partially works. Svg takes less space, but it's "squeezed" and a lot of elements in svg image overlap each other. Here is what I have but with \...
walter54's user avatar
1 vote
1 answer
117 views

Why does an .svg work in some overleaf projects (using beamer) but not others? [closed]

I have encountered a frustrating and baffling error while trying to include .svg images generated by Inkscape in a beamer project, compiling on Overleaf. I have one project in which .svg files are ...
StarWombat's user avatar
0 votes
1 answer
38 views

Cross reference items inside an SVG figure using LaTeX's default counter mechanism

This is based on a previous question in which I was trying to use the svg package to reference items inside of an SVG drawing, but never received a complete answer. I tried to take a different ...
user32882's user avatar
  • 1,574
1 vote
0 answers
83 views

Incorrect rendering of included svg

I am trying to include an svg file using the package svg. The process works, but the final output is not correct. The svg file looks like this in Inkscape: The LaTeX file is as follows: \...
mas's user avatar
  • 1,311
0 votes
1 answer
146 views

Why SVG insertion is different from the source file?

I would like to insert this svg file with its style: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{svg} \begin{document} \begin{figure}[h!] \centering \scalebox{...
Zebra125's user avatar
  • 137
0 votes
1 answer
94 views

Cross reference items inside a figure using `svg` package?

Is it possible to cross reference items inside a figure using the svg package? EDIT Here's an explanation of what I'm looking for. Suppose I have an SVG which when rendered looks like the following: ...
user32882's user avatar
  • 1,574
0 votes
1 answer
418 views

How to insert an Inkscape SVG file in LaTeX with different font size?

I am new in Inkscape/SVG world and I encountered some problems when I insert an SVG file created with Inkscape in my LaTeX document. LaTeX font size is the default one, say 13pt, and I wrote some 22pt ...
FueledByPizza's user avatar
1 vote
1 answer
147 views

Convert display equations alone to SVG format using TeX4ht

My codes are follows: \documentclass{book} \usepackage{amsmath} \begin{document} This is for test $a+b=c$ \begin{align} \sum+\prod=\int \end{align} \end{document} I need to convert the inline math ...
MadyYuvi's user avatar
  • 13.2k
0 votes
0 answers
273 views

How to fix text in my svg file?

I am working in Overleaf with a memoir document class. Recently I have already inserted successfully in my document an svg image that comes from a simple download on internet. This time I had to draw ...
FueledByPizza's user avatar
1 vote
0 answers
89 views

Minus sign in SVG rendered as "K" [closed]

When generating a basic plot in Maple 2022: Expr := x; with(plots): inequal(Expr < y, x = -3 .. 3, y = -3 .. 3); I get the expected output: But when exporting the plot as an .svg file and adding ...
ZA_'s user avatar
  • 13
0 votes
0 answers
61 views

emacs-tex-inkscape workaround

everyone. I'm using emacs to edit my latex files (to write my abstract in university), but it sometimes takes a lot of time to stop editing text, open inkscape, create a picture, then insert it's path ...
Ivan I. Ovchinnikov's user avatar
1 vote
1 answer
116 views

Convert equations into Outlined EPS or SVG format by using TeX4ht

I've tried with: \documentclass{book} \usepackage{amsmath} \begin{document} This is for test $a+b=c$ \begin{align*} \int+\prod=\sum \end{align*} This is for test $d+e=f$ \begin{align*} \alpha+\beta=...
MadyYuvi's user avatar
  • 13.2k
0 votes
1 answer
340 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'. \...
Abdel Ruvalcaba's user avatar
0 votes
0 answers
37 views

How include pdf_tex files from subfolders?

I am trying to write a separate document in several tex files with several graphics, the organization of my files is as follows: chapter1 | -->chapter1.tex -->pictures | -->...
Zebra125's user avatar
  • 137
2 votes
0 answers
75 views

LaTeX comfortable usage of vectorgraphics

Right now I am writing a project paper (with TexMaker in LaTeX), therefore I need vectorgraphics (created them with Inkscape). After saving, there were three files created: 1x *.svg 1x *.pdf 1x *...
terminalmoraine's user avatar
0 votes
0 answers
89 views

Is there a way to convert TeX to Markdown with SVGs for equations and PGF/TikZ?

I'm building a static blog with Jekyll and I've got some TeX documents which I'd like to convert to Markdown. I tried using pandoc but most of the inline equations (especially those with aligned ...
Jiewei Xiong's user avatar
0 votes
1 answer
88 views

Delete /svg-inkscape directory with latexmk cleanup

I'm using the svg package to include graphics in my document. When I compile using latexmk -pdf -silent -synctex=1 "myFile", my working directory fills with all of the typically generated ...
Ben Zelnick's user avatar
0 votes
0 answers
98 views

Resize text in SVG without cramming?

I imported an .svg image inside my document using the svg package. Since the image is too big, I used \resizebox{}{}{} to scale down both the image and its inside text at once. But I want the image's ...
AehkGuu's user avatar
1 vote
0 answers
122 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 ...
xounamoun's user avatar
  • 221
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=-...
xounamoun's user avatar
  • 221
1 vote
2 answers
169 views

TikZ: scale and shift SVG path

I drew a curve in an external program and exported it to an SVG path (I used Python's matplotlib, it would have been difficult to draw using TikZ). Now I would like to integrate this path in a TikZ ...
japamat's user avatar
  • 123
1 vote
0 answers
109 views

Is it possible to access and modify SVG paths with PGF/TikZ?

I have drawn a diagram in Inkscape (with a little help from Blender) and saved it as a SVG file. I want my labels on the diagram to match my document's (both typeface and size) and my labels also ...
sigsegv's user avatar
  • 531
1 vote
0 answers
167 views

About converting SVG to PSTRICKS to TIKZ

I'm going to convert a SVG image that I found on internet through a method that I found on the pgfornaments (on the last sections) package and I need to know if there is any downside: I. First I grab ...
Fernando Coelho's user avatar
2 votes
0 answers
79 views

svg path incorrectly rendered by tikz

I have a self-intersecting path that does not render properly with the svg.path tikz library. Is there some setting I'm getting wrong in the tikz code? The SVG was created in Inkscape. The following ...
David Purton's user avatar
  • 25.7k
0 votes
0 answers
227 views

using svg in LaTex (not Overleaf) [duplicate]

I used Overleaf for long times and I was able to use the svgpackage for my pictures in this way: \includesvg[width=65mm]{pics/example.svg} I moved for the first time to offline Latex with MikTex and ...
Fox033's user avatar
  • 1
0 votes
3 answers
1k views

Overleaf not interpreting .svg image correctly

I'm trying to add this .svg image to my tex file but for some reason, it's not being interpreted correctly by Overleaf. The image I'm trying to add - Here's the .svg code - <svg xmlns="http://...
Vedant Rana's user avatar
2 votes
1 answer
244 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 ...
FunkiePhil's user avatar

1
2 3 4 5
8