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
0answers
606 views

Including .svg images error

Why this code doesn't work? \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage[ a4paper, margin=15mm, bindingoffset=2mm, ...
4
votes
1answer
2k views

How to extract this SVG to LaTeX?

I want to extract SVG picture for my Beamer presentation. I do the following but I get output in Fig. 1, based on the thread answer How to include SVG diagrams in LaTeX?, without any errors/warnings ...
1
vote
1answer
358 views

How to create a pdf from svg that can be colorized?

This post mentioned that when using PdfLaTeX, One can recolor the blacks of an image to any color using \color. The Goal: Create an image (preferably scalable(svg)) that can be color adjusted inside ...
0
votes
1answer
1k views

*.pdf not found when including inkscape graphic [duplicate]

I made a figure in inkscape to be included in my document. The document itself has the following structure main.tex | |- /chapters |- chap1.tex |- chap2.tex |- /...
1
vote
1answer
321 views

SVG math/other symbols in htlatex: Using something other than pstoedit

I have one file, and I want to alternately produce printable PDF files via xelatex and HTML pages via htlatex. By default, htlatex produces just really ugly, low-resolution PNG equations. I want SVG ...
1
vote
0answers
193 views

Define the color of an imported .svg picture, using TikZ [duplicate]

I use TikZ to create drawings. They are composed of text, arrows, and svg-icons (e.g. coming from the Noun Project). These icons (svg files) are mono-color only (i.e. black & transparent). What I'...
1
vote
1answer
919 views

Trouble converting svg file to pdf_svg using svg package

I am trying to convert svg file to pdf_tex file in Texmaker using Inkscape, with this preamble and document: \documentclass[10pt]{article}% Package for chemical equation typesetting \usepackage{...
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 ...
2
votes
1answer
55 views

connecting commands

Can I connect commands so that one is automatically called before another? I have for example: \newcommand{\convertsvg}[1]{% \immediate\write18% {inkscape -D -z --file=figs/#1.svg % --export-eps=...
2
votes
1answer
835 views

Animated SVG + Beamer

Good evening. I recently discovered that it is possible to make some animations quite easily with the SVG format (using SMIL). Now that I have my animated picture, I would like to use it in a ...
1
vote
0answers
82 views

text size of imported SVG in LYX output too big [closed]

I have inserted an svg image into lyx 2.2.0, that I run on windows. I made this image with ORIGIN and imported it as PDF in INKSCAPE, where I added some text. In LYX the image looks nice, but when ...
2
votes
1answer
355 views

Does \autoref break tex4ht?

While getting started with tex4ht, I noticed a couple of issues. The following MWE compiles fine with pdflatex: \documentclass[a4paper, 12pt, ngerman]{scrartcl} \usepackage[ngerman]{babel} \...
2
votes
1answer
5k views

\includesvg works, scaling does not

in my document i got: \begin{figure}[h] \centering \def\svgscale{0.5} \includesvg[svgpath = pictures/]{somefile} \caption{svg image} \end{figure} Which does indeed import the picture, but the ...
3
votes
1answer
124 views

svg removes opacity handling from beamer

When imported svg into a beamer presentation that uses \pgfsetfillopacity, semi transparency stops working. For example the code below produces different results with and without loading the package ...
2
votes
1answer
423 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 ...
2
votes
0answers
388 views

svg package: inkscape doesn't start [closed]

I use LuaLaTeX (up to date MikTeX +TexStudio)and try to get svg work under Windows. I studied both https://tex.stackexchange.com/a/74693/80573 and https://tex.stackexchange.com/a/158612/80573 And ...
1
vote
0answers
425 views

Is there a svg to pdf_tex converter without Inkscape? [duplicate]

Is there a .svg to .pdf_tex converter without Inkscape?
3
votes
1answer
320 views

WARNING: File path includes directory that doesn't exist

Version Information ConTeXt mtx-context | ConTeXt Process Management 0.63 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv ...
1
vote
1answer
333 views

Using Foundation icons in LaTeX document

I have the fontawesome package in mind when asking this question? In fontawesome you can invoke the given symbol by typing its code to get it in the document. For example, \faCircleArrowDown gives the ...
2
votes
1answer
2k views

Create Figure with subfigures from .svg files

I am trying to create a number of figures in Overleaf which consist of several subpictures. To get highly resoluted pictures, I have saved them in .svg format. I have read different posts and learned ...
0
votes
1answer
1k views

How to place an “Export as PDF + Latex from Inkscape”-image above a \includegraphics image (overlay) - Make centers match

When you save images as a PDF, checking the PDF + Latex option, one gets 3 files: filename.pdf filename.pdf_tex filename.svg If you'd like to include this exported image in a Tex document, this is ...
0
votes
0answers
54 views

Can I expect WYSIWYG for SVG-PDFs embedded as images in LaTeX?

I embed a lot of scalable illustrations by creating them in Inkscape as SVG, then exporting them to PDF and finally including that PDF in (Xe)LaTeX. Given I am happy with the illustration-PDF ...
1
vote
0answers
204 views

tcolorbox and svg package shadow error/bug

There's a bug with the shadows of tcolorboxes when using tcolorbox and svg packages together. Top is with svg package not loaded while bottom one is with svg package loaded. Here's a mwe: \...
1
vote
0answers
48 views

Exporting all display formulas from Lyx to separate SVG files on Mac

I'm using Lyx on my Mac. I would like to use some sort of script which takes file.lyx as input and outputs SVGs of all of the display formulas in it. This really should be automated and with no user ...
5
votes
2answers
3k views

passing the extension to \includesvg - damned if you do, damned if you don't

I'm trying to use the svg package, for some svg files I have in a graphics/ subdirectory. My includegraphics command used to be: \includegraphics{graphics/foo.png} Now, if I write: \includesvg{...
3
votes
3answers
751 views

convert LaTeX symbols into svg files using font files directly

Is there a programmatic way of converting a set of LaTeX symbols into a set of svg files using the font files directly? In particular, I would like to create svg files for some of the symbols that are ...
18
votes
3answers
2k views

Why is SVG not supported by the TeX backend?

I've always wondered why SVG is such a problem for many document creation tools. For example MS Office can't do it, Libre Office can only use very simple SVGs afaik and even in Latex we can't use them ...
4
votes
0answers
1k views

Scale svg according to font size [closed]

Assume this example document: \documentclass[12pt,leqno,a4paper]{article} \usepackage{graphicx} \usepackage{svg} \begin{document} \begin{figure}[htbp] \centering \resizebox{0.75\textwidth}{!}{\...
1
vote
1answer
2k views

Error while importing .svg file

I want to include a .svg file into my document. I have a .svg file with the name test.svg This is the document: \documentclass[12pt,leqno,a4paper]{article} \usepackage{graphicx} \usepackage{svg} \...
10
votes
0answers
1k views

Obtain an animated PDF from an animated SVG

I have read Animations in LaTeX, but my question (I think) is different. I have an SVG animated file and I want to create the same animation in LaTeX, without rewriting the code. An example is this ...
3
votes
1answer
623 views

Load custom TikZ nodes from an SVG file?

I want to use custom nodes in TikZ, with shapes loaded (or otherwise converted) from an SVG file because I don't have enough time to learn pgf to draw the shapes I want. How can I do that?
4
votes
1answer
1k views

Latex generated PDF is extremely slow with rendering images

I have a small issue. I have generated a PDF file with some images generated from R. However the images render extremely slow, this might be due to the fact that the PDF needs to render an insane ...
6
votes
1answer
764 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 ...
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{...
13
votes
1answer
571 views

How to correct bug in svg.path library?

The svg command from svg.path library can display an svg <path> in TikZ. But in one particular situation the coordinate calculation fails. This happens when part of the path is closed by z (or ...
1
vote
0answers
214 views

SVG drawing created by Inkscape not displayed properly on Lyx

I created an SVG figure using Inkscape and inserted it into my Lyx paper. But the figure is not properly display either on lyx or the pdf it generated. For example, an arrow "--->" becomes a line "---"...
5
votes
1answer
653 views

How to create non-outlined SVG files from LaTeX formulae

Are there any ways of generating SVG files from LaTeX math formulae, that are not built from outlined glyphs? I.e., I want the SVG file to contain the math glyphs within <text> tags, not <...
2
votes
2answers
2k views

LyX makes mistakes rendering svg graphics

I am writing a document in LyX 2.1.4 on Mac OS 10.11 using MacTeX-2015. I insert svg files created in Inkscape 0.91. Some of them are entirely created in Inkscape. Some are outputs from R that I ...
2
votes
1answer
370 views

Tex4ebook not generating SVG files

I followed the instructions in this other question to generate an ePub from Latex with SVG images(I don't want to use ePub 3.0) with tex4ebook, but the generated epub has no images. I already found ...
1
vote
2answers
608 views

Converting latex highlighted code listing to image

Does someone know how I could submit a paper to a journal which contains source code highlighting with minted https://github.com/gpoore/minted ? I really like the highlighting and don't want to go ...
4
votes
1answer
839 views

Workaround for the animations in Beamer? How to convert a pdf presentation to a Sozi svg?

I want to use Beamer to write my presentations, mainly because I can use TikZ code on it. I also use to include png and pdf figures, so I like to compile with pdflatex. However, I'm starting to hate ...
2
votes
1answer
5k views

Inserting SVG images in Latex [duplicate]

I need to include some SVG graphics in my latex file. The SVG files have been created with a Python program, they don't come from Inkscape (I know that there are a lot of questions answered about the ...
0
votes
2answers
557 views

Include SVG using ST3 latextools build system

I am trying to include SVG into my document using the SVG package. On OSX Yosemite, I use Sublime Text 3 with the LatexTools Package, BasicTex 2015 and Inkscape installed via Homebrew Cask. Additional ...
0
votes
0answers
133 views

invisible special character generated from pdf file

I am trying to insert a pic.pdf file as picture inside my beamer presentation. I used "inkscape" to generate pic.pdf file. There is a special character used inside my svg file (format of the inkscape)....
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 ...
1
vote
2answers
212 views

Latex-SVG displaying differently depending on position in html

Updated Question The svgs generated by dvisvgm seem to influence one another when placed in a html document. For example, this is how it should look: https://jsfiddle.net/y8nq7xnz/1/ On the other ...
7
votes
3answers
2k views

Include SVG layers as steps in beamer

I have a .svg figure (created with inkscape) with multiple layers and I would like to include them in a beamer presentation so that layers appear progressively. slide 1 -> layer 1 slide 2 -> layer 1+...
1
vote
0answers
230 views

How to contribute to FontAwesome? SVG, EPS to fontawesome? [closed]

I am very interested in contributing to fontawesome. I have some vector icons that I feel the community would benefit to use and I really like to add them to fontawesome. These icons are in svg and ...
1
vote
0answers
2k views

File SVG not found in windows texstudio

I was using latex for a while on Linux and I was using SVG. I remember it was a very hard time to fix the errors specially the one saying File "./somesvg" not found Now, installed TeXStudio and ...
9
votes
1answer
406 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[...