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
0answers
20 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
1answer
38 views

Can i trim a SVG in Latex Code?

I want to trim my figure in latex code. Unfortunately, it is a SVG figure therefore I import it with: \begin{figure}[h] \centering \def\svgwidth{0.8\columnwidth} \input{MessAbsch.eps_tex} \...
1
vote
1answer
300 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
1answer
52 views

Compile pdf/svg/eps image exported from LibreOffice Draw with latex

I want to include a .pdf, .svg or .eps image which I exported from LibreOffice Draw with \includegraphics and compile it with latex (cannot use pdflatex). The latex compile error message I get is ...
0
votes
1answer
47 views

Defining font size in standalone with xelatex

I want to produce svg images of tikz pictures in a standalone environment that match the main document. So far everything works just fine. However, I am struggeling with defining the fontsize of the ...
1
vote
2answers
54 views

pdf_tex file not found error using inkscape generated pdf + pdf_tex files and svg package

I am trying include an Inkscape generated pdf image, with text to be interpreted by LaTeX, into a LaTeX document. When I keep the image files in the same folder as the tex file it works, but I would ...
0
votes
0answers
41 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 ...
6
votes
1answer
759 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 ...
4
votes
2answers
1k views

svg package \includesvg with underscores in sgv

I have an SVG file that includes text with underscores. When I include the svg with the \includesvg command (from svg package), I get an error that results from the .pdf_tex file containing text with ...
0
votes
0answers
25 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
55 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-...
5
votes
4answers
9k views

Importing diagram from draw.io into LaTeX

I created a diagram in draw.io that I'd like to include in my LaTeX file. Draw.io has the option to export as svg, png or pdf. When the svg is included LaTeX re-renders the fonts inside the svg with ...
528
votes
21answers
418k views

How to include SVG diagrams in LaTeX?

I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to ...
0
votes
1answer
238 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
1answer
132 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. ...
1
vote
0answers
93 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%....
0
votes
0answers
87 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} ...
4
votes
1answer
219 views

How to use import package to keep relative path references in subfiles and at the same time use svg?

I have the following directory structure: main.tex chapter/ chapter1.tex img/ image.svg This is the content of main.tex: \documentclass{report} \usepackage{svg} \begin{document} \...
0
votes
1answer
71 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 ...
4
votes
1answer
84 views

SVG as page layout in Latex

I know we can use parshape and the shapepar package to have customized paragraph shapes, but I wonder if it is possible to read an SVG file and use it as page layout? A possible solution might be to ...
0
votes
1answer
175 views

LaTeX changing svg text font

I followed this answer to use a svg image in my LaTeX document, but LaTeX changes the font I used when I created the image. How can I keep the "original" I set in Inkscape?
19
votes
4answers
9k views

What is a good way to draw Dynkin diagrams in LaTeX?

I'm about to start writing something up which includes a fair number of Dynkin diagrams, and I can think of several ways of going about it: Just draw the darn things in, e.g., InkScape, and include ...
1
vote
0answers
80 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 ...
0
votes
0answers
312 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 ...
2
votes
1answer
38 views

Glyph- (not stroke-) based SVG clipped at baseline

If I process the file \documentclass{standalone} \usepackage{DejaVuSans} \renewcommand*\familydefault{\sfdefault} \usepackage[T1]{fontenc} \begin{document} \fontsize{9mm}{10mm}\selectfont {\bfseries ...
2
votes
1answer
86 views

Gnuplot to SVG to LaTeX with formulas

I create plots in gnuplot that I export as svg and include in a LaTeX document. I would like to type simple LaTeX formula directly in gnuplot that appear properly in the LaTeX document. I noticed ...
3
votes
2answers
344 views

Includesvg with % sign

I am using \usepackage{svg} to include an svg file using \includesvg{filename.svg} and compiling using pdflatex --shell-escape file.tex This generally works like a charm. However I encountered a ...
0
votes
0answers
38 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 ...
1
vote
3answers
127 views

Previewing an SVG generated by METAPOST

With v1.8, METAPOST allows one to create an SVG --- unfortunately, there aren't any TeX / code editors which have SVG previewers as far as I can tell. Found: https://code.google.com/archive/p/file-...
1
vote
1answer
228 views

svg package failing to work after update

I can't compile the book I've been working on anymore after a general package update. I restricted the issue to a recent version of the svg package (Oct. 10). In this MWE: % !TeX spellcheck = it_IT % ...
0
votes
0answers
29 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 ...
3
votes
1answer
147 views

Phantom nodes for TikZ animation

I am writing an animation in TikZ, where I often have one node appearing in different contexts and want to animate the path it takes from one setting to the other, for now I am preparing the settings ...
2
votes
1answer
422 views

svg to tex with svg package and inkscape: make the text to wrap inside a shape

I use LuaLaTeX (up to date MikTeX +TexStudio) and wish to use SVG illutsrations in my document, which are created in MS Visio. here is the original image As a quick and dirt fix to my problem with ...
1
vote
1answer
75 views

Adding text on a SVG image with overpic or similar

Is there a possibility to place text on a svg vector image without using Inkscape? For me it is much more convenient to change the text quickly using \overpic and \put than opening Inkscape and ...
9
votes
1answer
403 views

svg package interfers with opacity

As soon as I load the package svg, tikz does not handle opacity any longer. Here, an example: \documentclass{article} \usepackage{tikz} \usepackage{svg} \begin{document} \begin{tikzpicture} \draw[...
0
votes
1answer
95 views

How to align text in inkscape figures (when converted to .pdf_tex files)?

Apologies if this has been already asked (I couldn't find a precise question): I use Inkscape to draw figures I draw a box, and within it a text. I align the text to the center of the box both ...
0
votes
0answers
66 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)?
9
votes
2answers
307 views

Illustrating symmetric key distribution

Can I draw something like this programmatically with LaTeX? I drew these with Adobe Illustrator, but it gets pretty time-consuming. Even with relatively few nodes. What it attempts to demonstrate ...
0
votes
1answer
105 views

Getting started drawing basic 3D objects with TikZ [closed]

Is it possible to draw this with TikZ (or perhaps a similar package related to postscript, metapost, SVG, etc.)? Sorry, I don't have much to offer this time. I usually like to provide a bunch of code ...
57
votes
3answers
204k views

include svg images with the svg package

I'm trying to use the svg package for inserting svg images in my latex file, as suggested in other questions. But now I ran into a problem: For example I have a image figure1.svg, if I write \...
4
votes
2answers
3k views

How to scale text in SVG

I use Inkscape to convert an SVG to pdf latex, after the conversion I want to scale the image so it matches the second image. But the text does not scale accordingly to the boxes. I use the following ...
18
votes
2answers
8k views

Compile TeX (directly) into SVG using the command line

Is there a way to directly compile TeX code into the SVG image format (rather than going the detour over TeX => PDF => SVG)? I found this question: Convert LaTeX to SVG online But I don't want to do ...
7
votes
4answers
5k views

svg package failing to find svg files

I am trying to get the svg package working on an OSX system. If I use inkscape to save the *.svg files as *.pdf and *.pdf_tex, then the sample file from this question works fine: \documentclass{...
1
vote
0answers
64 views

Unwanted text on first page [closed]

I am trying to load svg images into my latex document. I tried using the svg package with \usepackag{svg} and I tried including pdf_tex files from inkscape using \usepackage{color} \usepackage{...
2
votes
1answer
151 views

SVG with TeX mathematics causing unnecessary whitespace

I am trying to include a svg file using the \includesvg command. The svg file looks like this when opened in Illustrator as it includes some math mode text: Now, I would like the image to use the ...
0
votes
0answers
46 views

Include SVG's in an equation [duplicate]

I want to include some svg image within an equation. Until now the code looks like \begin{equation} \def\svcscale{1.5} A = \includesvg{AMC/3J} \end{equation} But with that, the symbol is not in ...
5
votes
1answer
170 views

how to improve SVG for math resolution in tex4ht?

make4ht now supports both mathjax and svg for math. I noticed that the math displayed in the browser when using mathjax mode looks sharper/crisper than when using svg for math. So this question ...
6
votes
3answers
671 views

Faster Metapost SVG Output with TeX?

I am generating some diagrams with METAPOST. I need the output in SVG format. My labels are generated by calls to LaTeX via Tex.mp and its TEX METAPOST definition (also called a macro). My ...
0
votes
0answers
35 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
39 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/...

1
2 3 4 5 6