Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [svg]

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

-1
votes
0answers
26 views

including SVG graphics using multicol

I'm in the process of making a poster, and I wanted to include some vectorial svg images in it. I'm also using multicol in it. I followed the instructions from How to include SVG diagrams in LaTeX? to ...
1
vote
1answer
95 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
78 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
47 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 +++ ...
2
votes
1answer
65 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
66 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
24 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
73 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
58 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
22 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
39 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
56 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
359 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 ...
2
votes
1answer
2k 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
115 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
80 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
596 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
44 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-...
0
votes
1answer
123 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
112 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
117 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
60 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
2k 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
38 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
2answers
2k 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
88 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 ...
1
vote
0answers
90 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
166 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
76 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
33 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 ...
5
votes
1answer
128 views

How to fix relative coordinates on svg.path tikz library

There seems to be a bug or error when using relative commands. In my case, I found an instance where drawing a smooth curve will draw the curve wrongly. Check the following cases (the first is full ...
0
votes
0answers
597 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 ...
0
votes
0answers
233 views

LaTex inside <svg> inside HTML

Note: This is not a TeX document, but an HTML document. So I am trying to include LaTeX mathematical expressions in an SVG graphic element. This works typically and inside tables. For example, the ...
0
votes
1answer
432 views

How to add PDFtoSVG to path in order to use writetex in Inkscape?

The goal is to use LateX equations within Inkscape. I would like to utilize writetex. On its site, under installation, it is written to: Make sure you have at least one LaTeX command and one ...
0
votes
0answers
112 views

Error when displaying page in PDF viewer or Printing [duplicate]

I try to print a PDF which includes some TIKZ figures but the printing service has an issue to print them. To find the cullprit we try to reduce our template to a minimum and found an problem with ...
0
votes
1answer
802 views

svg package in xelatex

I'm using \includesvg from the svg package with pdflatex, which is very convenient. Unfortunately, when I try to use xelatex, this approach is not working any more. I'd like xelatex to have more ...
4
votes
1answer
145 views

Different SVG Output for mathematics symbols with dvisvgm used with htlatex or make4ht

The tex file with the following code is to be converted into html. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \(\implies\) and \(\iff\) \\ \(a \implies b\) \...
1
vote
0answers
273 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 ...
2
votes
1answer
256 views

Svg output for Mathematics using htlatex or tex4ht

A LaTeX document is to be converted to html using tex4ht or htlatex. If the .cfg file is included with \Configure{html}{xml} \Preamble{xhtml} or \Configure{html}{xml} \Preamble{xhtml,png} The ...
2
votes
0answers
112 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] ...
1
vote
0answers
342 views

How to output dvi file from TeXworks (XeLaTeX) and convert it to svg?

I am using TeXworks and typeset documents as XeLaTeX. Recently, I needed to convert some of my documents to svg format and found out that it can be done using dvisvgm. Unfortunately, when document is ...
3
votes
1answer
1k 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 ...
1
vote
1answer
817 views

Specify \svgscale instead of \svgwidth for Inkscape pdf_tex

The image.pdf_tex documents created with Inkscape's PDF+LaTeX export use this code \ifx\svgwidth\undefined% \setlength{\unitlength}{293.02998953bp}% \ifx\svgscale\undefined% \relax% ...
0
votes
1answer
253 views

Cropping is wrong with long formatting text in svg→pdf+pdf_tex

I need to include vector graphics in my document. The text in the graphic needs to be formatted. My current workflow is Draw graphic and enter text in "Plain Latex" Export/save as SVG Convert to PDF +...
1
vote
2answers
124 views

Output Latex into single words and graphs

Is it possible to change the output of a LaTex file so that it generates one file per word and per graph? Instead of generating a single file that looks like this: ...
1
vote
1answer
101 views

How to perform a two part “action” in AUCTeX?

I have been reading the pgf & tikz manual and I want too generate svg directly from my tex file. The manual says I need to run: lualatex --output-format=dvi example dvisvgm example I would like ...
1
vote
0answers
317 views

Not supported by viewer issue when including eps file converted from svg format [closed]

I'm using TeXstudio 2.11.2 to compile my document. The document class i'm using is. \documentclass[a4paper,12pt,twoside,hidelinks,openright]{report} I want to include an .eps image to my document. ...
2
votes
1answer
63 views

svg.path picture not working with Russian in polyglossia

I'm not sure exactly how to frame this question as I'm myself not sure what the problem is, but essentially I'm trying to draw paths using the svg.path TikZ library. When I select Ukrainian with ...
0
votes
0answers
177 views

svg2tikz converter - error: File could not be saved

I try to convert svg to tikz code but I always get the error: File could not be saved. There is no detailed explanation of this error and I cannot find any solution for this problem yet. I copied the ...
2
votes
1answer
76 views

Getting LaTeX with custom *.sty files rendered in an HTML document

I've got a number of equations in a LaTeX document written in display mode. I'm using a *.sty file to be able to typeset them (inference rules). I want to get *.svg versions of these into an HTML ...