Questions tagged [svg]

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

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
1k views

Obtain an animated PDF from an animated SVG

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 ...
6
votes
1answer
835 views

SVG 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 into ...
3
votes
1answer
81 views
+500

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

What's the purpose of the dvisvgm option/driver of PGF/TikZ?

I was trying to create SVG output from TikZ and ran into some problems. These have now been resolved, but the result is that I'm asking myself where my misunderstanding is or if the manual is wrong. ...
2
votes
0answers
154 views

Inkscape SVG to PSTricks Commandline

With Inkscape I can save an .svg files to PSTricks (.tex) via the Save As dialogue. Is there a possibility to manage this via command line? I only find export to latex which is no PSTricks format.
2
votes
0answers
383 views

SVG-image colour dependent on text colour, without external tools?

I have a decorative SVG-figure, and I want to change just one variable, to alter both text- and SVG-colour Working in Sharelatex, using pdfLatex to compile SVG to retain its scaling properties MWE ...
2
votes
0answers
179 views

How to make dvisvgm output colors properly (wrong text color on dark background)?

Example code: \documentclass{standalone} \usepackage[alignedleftspaceno]{amsmath} \usepackage{tikz} \pagecolor{black} \begin{document} \begin{tikzpicture} \path node[text=white] ...
2
votes
0answers
26 views

Is there a way to automaticly get the label- and objectnames from an included svg file?

I'm pretty sure I read a solution for my problem a while back, but I can't find it anymore. What I need is, that when I include an SVG image and make one (or more) build prozess, the names of all the ...
2
votes
0answers
5k 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
146 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} \end{...
1
vote
0answers
102 views

keyboard layout

I need a library|package for creating keyboard layout. Is any example or package for them? Now exist many form: japanese are different than normal, exist some smalest keyboard for example 80 keys 60%....
1
vote
0answers
117 views

dvisvgm: DVI to SVG issue

I am trying to convert a DVI to SVG on Manjaro / Arch Linux, but it just won't work. I use the following latex (test.tex) to create a dvi file (test.div) \documentclass{standalone} \usepackage{tikz} ...
1
vote
0answers
123 views

Using SVG package in Latex (pdflatex) on macOS Catalina

Compilation fails after inkscape: command not found but I'm able to convert svg manually in terminal. The following command works 👍 and produce the img.pdf file. inkscape img.svg --export-type=pdf ...
1
vote
1answer
400 views

Issue with auto export of SVG using Inkscape shell-escape

I am currently struggling with exporting an svg that I prepared in Inkscape and would really appreciate any help or hints. I have been using the MWE from the SVG package documentation ( https://ctan....
1
vote
0answers
34 views

SVG image renders incorrectly when scaled

I have exported a chemical structure as a SVG using MarvinSketch, and included it like so: \documentclass{article} \usepackage{svg} \begin{document} \includesvg[width=0.5\linewidth]{test.svg} \end{...
1
vote
0answers
38 views

arara skripting to convert svg to pdf through inkscape?

I read about the arara cli and some scripting capabilities and im wondering if its possible to make arara use inkscape to convert svg to pdf before includeing them with \includegraphics. A frend ...
1
vote
0answers
1k views

Mactex svg package error: graphaside_svg-tex.pdf is missing

I have a .svg graphic in a tex document. I am getting the following error when I use mactex: Package svg Warning: You didn't enable shell escape' (orwrite18') (svg) so it wasn't ...
1
vote
0answers
424 views

tikz externalise as svg instead of pdf

i'm using the \tikzexternalize command to export all my tikz pictures out of my big (main-)document. For some reasons i need these pictures in svg-format. Is there a way to externalize the files ...
1
vote
0answers
165 views

Replace svg with svg-inkscape to get rid of subfig

I would like to include SVG images in my LaTeX document. I also would like to use subcaption for subfigures. I am using the following folder structure: <project path>/Document/document.tex for ...
1
vote
0answers
623 views

Including .svg images error

Why this code doesn't work? \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage[ a4paper, margin=15mm, bindingoffset=2mm, ...
1
vote
0answers
209 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
50 views

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

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 in it. This really should be automated and with no user ...
1
vote
0answers
223 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 "---"...
1
vote
0answers
2k 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 ...
1
vote
0answers
395 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
1k 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 \documentclass[a4paper,10pt,twoside,openright]{report}...
1
vote
0answers
632 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, PFB,...
1
vote
0answers
497 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? ...
1
vote
0answers
2k 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? % ...
0
votes
0answers
18 views

How to define the dimensions of the svg figure in Latex?

I am trying to include svg figure in latex. I am using the following commands, \begin{figure} \centering \def\svgwidth{\columnwidth} \input{image.pdf\_tex} \caption{} \label{fig} \end{figure} I am ...
0
votes
0answers
48 views

includesvg does not scale the svg file properly in overleaf

I created an svg file in lucid chart and exported it to overleaf. I used the following code to load the svg picture: \documentclass{article} \usepackage{svg} \usepackage{graphicx} \begin{document} \...
0
votes
0answers
46 views

Converting a PNG graph into tikz code

I'm a complete beginner in LaTeX and need to have this graph in tikz code for my work. I tried converting it to SVG with Inkscape and then to TikZenter code here with inkscape2tikz but that didn't ...
0
votes
0answers
29 views

Svg files do not work in Beamer

I am building a beamer for a project, where i want some svg images. i have included 2 svg files and they work fine, but when i insert more they will not work. \begin{frame}{Cooling demand}{Weight ...
0
votes
1answer
88 views

Unecessary white space around .svg figure

I have to write a report for school and I need to include a UML class diagram for a Java assignment. I am using the PlantUML integration within IntelliJ to create a beautiful diagram without any ...
0
votes
2answers
610 views

How to enable `shell escape' (or `write18') - Visual Studio Code (Latex Workshop extension)

I am working on a .tex file inside Visual Studio Code with the Latex Workshop extension installed. I get following error message when I want Latex to compile .svg files for me, following this post ...
0
votes
0answers
43 views

Uploading Files in Overlead in PDF

I have made pictures using Inkscape and I am trying to upload it in PDF or SVG format. Basically, any format that keeps the work intact. I tried using.PNG but the pixels are blotting. Anyone who can ...
0
votes
0answers
30 views

How can I include an svg graphic into a tufte-book document?

I've used Inkscape to create this figure (though perhaps not to a sane scale). I can edit this and export it to whatever file format might make things easiest. I'm also willing to use other tools to ...
0
votes
0answers
75 views

SVG output from Metapost with opentype fonts

Is there any way to produce SVG output from Metapost and use opentype fonts for labels (like luatex allows with luamplib and pdf output)?
0
votes
1answer
62 views

Center SVG made with Inkscape in PDF document exported by Lyx

I have a SVG made with Inkscape (Windows) imported into my Lyx document, https://www.lyx.org/ but the exported PDF shows the image beyond the page boundary PDF here https://github.com/pedro-...
0
votes
0answers
38 views

Converting images within latex in windows

I have LaTeX code which works well in Linux, but I need to make it work in Windows. MWE: \documentclass[a4paper,12pt]{book} \usepackage{graphicx} \DeclareGraphicsExtensions{.pdf,.png,.jpg,.svg} \...
0
votes
0answers
51 views

Combine graphicspath and import

I would like to use the import package to specify my image location by using the graphicspath command. So instead of \begin{figure}[H] \begin{center} \def\svgwidth{\textwidth} \import{/path/to/...
0
votes
0answers
84 views

Integration between web languages and TeX derived languages

What possible integrations between languages and packages derived from or related to TeX (e.g.: PGF/TiKz and pstricks) currently exist that allow achieving the aesthetic effect of the figure below in ...
0
votes
0answers
94 views

How to draw SVG from XML Structure file?

I extracted the XML description of a Chart from a Word Document. It is about 500 lines of code so I will not append it. How can I draw the SVG for the XML file in Latex ?
0
votes
1answer
149 views

TeXnicCenter and svg

I'm wondering why I can't use the package svg with teXnicCenter. I've seen that one must use shell escape to make it functions. I've also downloaded the latest version of inkscape and of ImageMagick. ...
0
votes
0answers
125 views

Cannot correctly render symbols in latex SVG

I'm trying to import some diagrams I made using Tikz into Inkscape. However, whilst the text displays fine, the symbols seem to change when they are converted into the SVG. Most notably, '-' turns ...
0
votes
1answer
283 views

Same font in figues as in document text, CorelDraw 2 pgf?

Dear stackoverflow community, I am in the midst of writing my thesis and I want my figures to have the same font as my text in Latex. I have a lot of figures, so I would like the process to be ...
0
votes
0answers
54 views

Can I expect WYSIWYG for SVG-PDFs embedded as images in LaTeX?

I embed a lot of scalable illustrations by creating them in Inkscape as SVG, then exporting them to PDF and finally including that PDF in (Xe)LaTeX. Given I am happy with the illustration-PDF ...
0
votes
0answers
136 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 inkscape)....
0
votes
0answers
176 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 ...
0
votes
0answers
499 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 ...