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
24 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)?
1
vote
0answers
30 views

How to display special signs in svgs?

I'm trying to include svgs with special signs in my document. One example is °C in the labels of my plot: This results in the following error message: Undefined control sequence. ...}[t]{l}...
0
votes
1answer
23 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
71 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
36 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
262 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
63 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
44 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
110 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
97 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
30 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
25 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
68 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
46 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
103 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
71 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
65 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
38 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
125 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
256 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
323 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
258 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 ...
0
votes
1answer
410 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
79 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
1answer
197 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
129 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
30 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
144 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?
0
votes
0answers
133 views

Convert TikZ to SVG through pdf2svg including some hooks for an interactive behavior

I recently tried to use an svg figure (first externalized from TikZ code to pdf and then converted to svg using Inkscape) in order to be able to use the svg in a webpage and make it somehow ...
1
vote
0answers
29 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
60 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
95 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
909 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 ...
6
votes
1answer
9k views

Is it possible to use svg image with overleaf

Unfortunatly I am not able to include svg images in overleaf. This is the minimal example: \documentclass{article} \usepackage{svg} \usepackage{amsmath} \begin{document} \begin{figure}[htbp] \...
1
vote
1answer
210 views

How to use svgZ with \includesvg?

I am trying to load an SVGZ using \includesvg. It always looks for the SVG instead of the svgz (see error below). I know I can unzip the SVGZ to get the SVG, but I would prefer using SVGZ to keep the ...
1
vote
0answers
193 views

How to use inkscape to import a vector graphic in LaTeX [closed]

I am trying to include a nice vector graphic in my LaTeX document. Obviously, I am doing this, because I don't want the quality of my figures to decrease when zooming in. Is there an easy way to do ...
8
votes
2answers
719 views

Using TikZ to create a custom word which combines an svg image and text

I am trying to create a custom word, f-hole, where instead of an f I use the actual outline of a violin f-hole: I have an .svg file of the outline I want to make into a symbol, and using this ...
0
votes
0answers
49 views

How to export a tikzpicture to svg with text tags? [duplicate]

Premise I don't know if this was already asked but I searched for it and only found something relevant but nothing that solved my problem. Probably the most related question is How to create non-...
1
vote
1answer
225 views

includesvg, absurdly large image margin

I am trying to include an SVG image into my document which had always (kind of) seemed to work when using \includesvg. But now I have an image that I created from a postscript file, modified in ...
1
vote
1answer
162 views

Interactive SVG

I would like to be able to click inside a (white) box in an image like: and then jump to the description of that function. I tried: \documentclass[twoside]{book} \usepackage{float} \usepackage{...
0
votes
1answer
186 views

Why does the Calc->SVG->Inkscape->PDF_Tex create a latex input file that has the text in latex in the wrong positions?

After looking through numerous questions and guides, I tried these two versions, but both end up placing all the text on top of each other in the top left corner of the image. I selected the option ...
2
votes
1answer
90 views

Including extensive SVG images, too many pages in the pdf?

I have a lot of svg images I want to include in a TeX-File. So far I didn't have problems using the \usepackage{svg} with \includesvg. However recently I've added a few more layers to the svg-files ...
13
votes
3answers
6k views

Creating the Twitter verified badge using TikZ

I'm trying to create the blue Twitter verified badge using TikZ. The real version looks like this: (Source: https://twitter.com/verified) This is the MWE I have so far: \documentclass{article} \...
1
vote
1answer
61 views

Align EPS graphics relative to point in EPS

I have several EPS (or SVG) graphics I would like to have in subfigures. The subfigures represent the same object throughout various stages. The width and height of the graphics are inconsistent. I ...
2
votes
3answers
5k 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 ...
1
vote
1answer
132 views

LyX on Ubuntu produces bad “rasterized” SVG in exported PDF

I recently put some SVG graphs in a LyX document I'm working on. When exporting to PDF with LyX 2.2.3 on Windows, everything looks as expected (the graphs don't loose quality when zoomed in). After ...
2
votes
0answers
196 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 ...
3
votes
3answers
207 views

What LaTeX fonts do I have to use when generating SVG diagrams such that they match the fonts used by MathJaX?

I want to create SVG diagrams for articles viewed on a site with MathJaX enabled. The diagrams are mainly created in PSTricks as follows. \documentclass[pstricks,border=1cm,12pt,dvipsnames]{...
3
votes
2answers
104 views

Math labels get doubled after converting PDF to SVG

I have a diagram written in PSTricks as follows. \documentclass[pstricks,border=1cm,12pt,dvipsnames]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}[showgrid](6,6) \pstTriangle[...
1
vote
1answer
40 views

Split outputs for Tikz-plot after htlatex

I am currently working on a website that gererates exercises for students out of a .tex file. for one of these exercises the solution is a plot, which i am using tkiz for. when i use the normal ...