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
2answers
47 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
39 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
24 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
91 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
61 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
72 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
63 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
59 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
0answers
194 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
37 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
70 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
35 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
201 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
259 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
27 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
111 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
69 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
131 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
87 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
65 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
51 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
101 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
60 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
298 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
142 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
160 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
126 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
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
33 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
81 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
81 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
128 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
122 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
114 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
50 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
333 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
527 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
560 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
340 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
vote
1answer
615 views

Package SVG: the result is missing some parts [duplicate]

I managed to setup the SVG package so it would successfully import an SVG file. Here is the full config: \RequirePackage[width=\textwidth]{svg} % In my custom package \PassOptionsToPackage{...
2
votes
1answer
91 views

tex4ebook: stack not empty at end of page?

I tried to compile an article, the source code of which is downloadable, to an ebook with tex4ebook. After some trivial modifications: --- ../formal.orig.tex 2018-11-23 17:05:07.032134691 +0100 +++ ...
3
votes
2answers
316 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
1answer
224 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 ...
1
vote
0answers
32 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
1answer
215 views

First slide of Beamer to SVG

I have a Beamer presentation. I've always converted it to PDF with: pdflatex -interaction=nonstopmode -halt-on-error slides.tex How can I export the first slide of a Beamer presentation to SVG?
1
vote
0answers
36 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 ...
0
votes
1answer
97 views

includesvg: automatic generated .pdf and .pdf_tex files vs. quotation marks

I want to include a .svg-file, which contains a excel-table, which i exported to an pdf.file and imported it into inkscape. I am using a few quotation marks (") in the excel-table and after importing ...
2
votes
0answers
135 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.
1
vote
1answer
1k views

Sharelatex - “Package svg error file is missing” while I have not changed anything

I was using Sharelatex a few days ago and I made some changes to my file, compiled it and I saved my file as PDF. It has all the figures and plots I used via the svg package. Today I tried to open ...

1 2 3 4 5