Skip to main content
The 2024 Developer Survey results are live! See the results

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
2 votes
1 answer
46 views

SVG package and \AddToHook

I've just noticed a weird behavior of the SVG package when combined with Hook. If I run the following code, which just write a simple text to each page of a document \documentclass{article} \AddToHook{...
Laurent Jacques's user avatar
5 votes
2 answers
354 views

Inserting image as character

I have asked before in Using my svg images as blackboard bold characters about how to use an entire alphabet of svg images. I will now simplify my question to only one character (and no phantom ...
Pedro G. Mattos's user avatar
0 votes
0 answers
60 views

Asymptote sphere is "blotchy" and conversion from PDF to SVG is fuzzy and marred by lines

I am just starting to use Asymptote to generate a ball diagram of nitric oxide. My MWE is a file called ball.asy: settings.tex = "lualatex"; settings.outformat = "pdf"; settings....
chandra's user avatar
  • 3,104
0 votes
0 answers
57 views

Using my svg images as blackboard bold characters

I've become dissatisfied with AMS's blackboard bold after noticing the R and Q differ a lot from Latin Modern's (and for its lack of bold numbers). I then learned it is not based on Computer Modern/...
Pedro G. Mattos's user avatar
2 votes
1 answer
153 views

How to make cmyk colors work with dvisvgm?

I have a tex file like this: \documentclass{standalone} \usepackage[cmyk]{xcolor} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[green] circle (3); \end{tikzpicture} \end{document}...
ttsc's user avatar
  • 415
0 votes
0 answers
66 views

I'm trying to use latex to generate pdf and svg formats of the pictures I made, but the useage of the dvisvgm tool will make my pdf file look weird

Thank you for reading my question Introduction My latex compile environment is VSCode + Texlive + LaTeX workshop. I want to use the tikz toolkit in latex to draw some pictures and generate .pdf and ...
BqBPdx's user avatar
  • 39
1 vote
0 answers
28 views

includesvg only displays graph axes and not data

I have two similar graphs that I'm trying to display using \includesvg on Overleaf. One renders perfectly, the other renders the axes but none of the data. An example project is linked here. The svg ...
Alex Gower's user avatar
0 votes
0 answers
82 views

svg not rendering properly using `\includesvg`

I am using Overleaf with LuaLaTex as my compiler. I have an svg which renders properly in a browser and looks like this: However, when using the command \includesvg[width=\colwidth]{image.svg}, the ...
codeing_monkey's user avatar
1 vote
0 answers
58 views

How to generate SVG beamer slides with interp shaded 3D plots?

I am trying to create an SVG beamer presentation that will eventually embed videos using media4svg. While the video embedding works great, 3D plots are giving me trouble. Any ideas to export the ...
Rushi's user avatar
  • 837
0 votes
0 answers
42 views

Adding SVG White Space [duplicate]

The questions I have seen similar to this have been about removing white space from SVGs, but I would like to keep mine. I have a 3x3 grid of SVGs. Each has the same viewBox dimensions. However, ...
pdeqx's user avatar
  • 1
1 vote
1 answer
288 views

Processing document with SVGs for submission to arXiv

I use the svg package in Overleaf, with the pdfLaTeX compiler, to include SVGs in my document. I am preparing to upload to arXiv, but images have to be JPEGs, PNGs, or PDFs. One benefit of using the ...
Daniel's user avatar
  • 113
1 vote
0 answers
214 views

Requesting advice on using package "svg" with MikTex

I have spend a good chunk of today reading up on how to implement vector graphics in LaTeX and still cannot get it to work. I have: Installed the svg-package Installed Inkscape Added Inkscape's bin-...
Stefan's user avatar
  • 73
0 votes
1 answer
94 views

Is there a way of creating truer scalable vector graphics with Tikz? (Or is that a limitation of PDF itself?) [closed]

I'm trying to create graphics with TikZ, but the results I on my screen disappoint me a bit. I don't know if it's TikZ or maybe a PDF limitation. Here's an example, zoomed in at 1,000% (I'm using VS ...
psygo's user avatar
  • 438
0 votes
0 answers
31 views

Is there a tool for converting a bitmap of a simple "shape outline" to a TikZ path? [duplicate]

I've got the outline of a simple shape in a png. Is there a tool or technique for converting this to a TikZ outline that I can stroke with different colors and line widths etc? Online "vectorizer&...
Anna's user avatar
  • 837
0 votes
1 answer
190 views

XeLaTeX and svg - Package transparent Warning: Loading aborted, because pdfTeX is not running in PDF mode

I am using XeLaTex to compile the following LaTeX-code: \documentclass[]{book} \usepackage[UKenglish]{babel} % main language \usepackage{xeCJK} % for Japanese fonts (requires XeLaTeX) \...
edgar's user avatar
  • 21
0 votes
1 answer
51 views

includesvg for files with the same name in different folders/directories

I have two separate files, in different folders/directories, but with the same file name. \begin{figure}[htp] \includesvg[width = \textwidth]{/home/con/identify.target/A/svg/msa.svg} \caption{} \label{...
con's user avatar
  • 351
0 votes
0 answers
80 views

Problems with svg2Tikz

I want to use the svg2tikz to export figures to tikz. I have installed this extension on inkscape correctly. When I convert the following image, a problem occur: When I see the output (tikz code) ...
Angelo Aliano Filho's user avatar
0 votes
1 answer
329 views

Including SVG in TexStudio (texlive) [duplicate]

I got some problems moving from Overleaf to local compilers. Earlier, in Overleaf, I could just use \usepackage{svg} ... \hspace*{0.2\textwidth} \includesvg[width=0.5\textwidth]{optic} But now, in ...
Antoine Russ's user avatar
1 vote
1 answer
130 views

svg generated by animate package is not displayed in the browser

I am trying to generate svg file from a multipage pdf using 'aniamte' package but without success! \documentclass[dvisvgm]{standalone} \usepackage{animate} \usepackage{graphicx} \begin{...
Hafid Boukhoulda's user avatar
0 votes
0 answers
45 views

Why the plots are not using full width of the page?

I want to have a 2 x 2 grid to present four plots. The width of the plots should be automatically adjusted to utilize the full width of the page (keeping decent margins on the sides). The maximum ...
skm's user avatar
  • 960
0 votes
1 answer
40 views

Metadata info with escape characters when converting into SVG

I am developing a math animation software that renders LaTeX strings into svg objects using dvisvgm. I want the library to be able to identify which svg shapes belong to certain tokens (like "x&...
David Gutiérrez Rubio's user avatar
0 votes
1 answer
57 views

I am trying to pass a command array to the new command or a definition with a `for` loop with `includesvg`

I have learned from the following questions: "For loop" in newcommand Use pgffor to define a new command? \foreach with \newcommand how to use them together? I was trying to pass an ...
Oo'-'s user avatar
  • 269
4 votes
0 answers
174 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
50 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
1 answer
298 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
  • 8,922
1 vote
1 answer
301 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
110 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
  • 415
0 votes
0 answers
39 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
80 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
72 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,481
0 votes
0 answers
55 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
74 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
63 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
91 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
37 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,207
3 votes
0 answers
154 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
  • 15.4k
0 votes
0 answers
73 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
  • 351
0 votes
0 answers
248 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
1 vote
1 answer
152 views

Horizontal lines in SVG are not rendered [closed]

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
20 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
1 answer
108 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,594
0 votes
0 answers
103 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,594
0 votes
1 answer
297 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
227 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
413 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
47 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,594
1 vote
0 answers
100 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,332
1 vote
1 answer
335 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
  • 147
0 votes
1 answer
162 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,594

1
2 3 4 5
8