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
12 views

.gitignore for svg-inkscape

I managed to get SVG to work with LuaTeX. However, in my working folder, there's a new folder named svg-inkscape. Is this a mandatory folder? Can I ignore it, and if so, is there a proper .gitignore ...
2
votes
1answer
16 views

Bad SVG output when using htlatex

I am trying to compile some minimal test.tex using htlatex test.tex "xhtml,svg", but the SVG generated from tikz pictures does not seem to work. \documentclass[11pt]{article} \usepackage{tikz} \...
3
votes
1answer
156 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. ...
1
vote
1answer
78 views

Inkscape 1.0 not able to export files needed for svg package

After updating Inkscape for the 1.0 version the svg package invocation of inkscape leads to the following message in the log file: Package svg Info: Calling Inkscape on input line 19. runsystem(...
0
votes
1answer
23 views

How to remove attached grid line from SVG file for putting in latex? [closed]

I have a ".svg" file that has a grid line in the background. Is there any way that I can remove the background from the SVG file?? the file is in this LINK Thanks in Advance.
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
49 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
81 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
56 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
52 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
71 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
48 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 ...
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
119 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
95 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 ...
1
vote
0answers
126 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
1answer
91 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
648 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
41 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
123 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 ...
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 ...
1
vote
1answer
266 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 % ...
1
vote
1answer
411 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....
0
votes
0answers
31 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 ...
4
votes
1answer
232 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 ...
1
vote
1answer
100 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 ...
0
votes
1answer
319 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?
0
votes
1answer
129 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
76 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
1answer
107 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 ...
1
vote
0answers
73 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{...
9
votes
2answers
315 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 ...
2
votes
1answer
179 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
47 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
192 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 ...
1
vote
3answers
137 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-...
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
52 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 ?
3
votes
1answer
155 views

Error when rendering svg

I'm trying to generate a svg image of a reaction mechanism. However I keep receiving the error: ! Undefined control sequence. \pgfsys@svg@newline ->\Hnewline when running the command make4ht -u "...
0
votes
1answer
151 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
127 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
0answers
57 views

Include SVG file on frame in latex beamer [duplicate]

I have an svg file foo.svg which I would like to present in a presentation using latex beamer. Please give me a minimal working example that accomplishes that. None of the solutions I have found on ...
2
votes
1answer
553 views

How to include LaTeX with PStrick macros figure generated using Inkscape?

I generated a PStrick macros .tex file from a .svg using Inkscape 0.91 (Shift+Ctr+S, save as LaTeX with PStrick macros) but I am not able to include it in my document I have tried: \documentclass{...
2
votes
1answer
680 views

Texmaker (& similar) - How to \usepackage{svg} especially on Mac OS

I'm using TexMaker on Mac and try to include some svg's to my document. I think my question is very similar to this one svg package failing to find svg files But I can't solve my problem. I already ...
1
vote
1answer
788 views

SVG and inkscape

I have the following example: \documentclass{article} \usepackage{svg} \begin{document} \begin{figure}[htbp] \centering \includesvg{fig1} \caption{svg image} \end{figure} \end{document} I ...
1
vote
1answer
403 views

Is it possible to go directly from LaTeX to SVG?

I have a situation where I'm calling latex.exe in the background and then dvipng on it and then loading the file into a QGraphicsScene using QGraphicsImageItem and the result is horrible upon zooming ...

1
2 3 4 5 6