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

learn more… | top users | synonyms

201
votes
16answers
81k views

How to include SVG diagrams in LaTeX?

I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to ...
40
votes
5answers
9k views

How can I use TikZ to make standalone (SVG) graphics?

I would like to use TikZ in other settings than TeX and I'd especially like to use the drawings on websites where the text should be searchable and selectable. However, I'm unsure of the best way to ...
38
votes
5answers
7k views

Recommended workflow? LaTeX -> ePub with math viewable on iPad

This started as a comment in an older thread, but I thought I repost it here as a question to the forum... I'm looking for a workflow that will take me efficiently and reliably from existing LaTeX ...
25
votes
3answers
3k views

Create a symbol font from SVG symbols

Is it possible to create an own scalable font from a set of symbols (~700), all in SVG format. All of them are symbols (like Zapf Dingbats), so there would be no need for special settings like ...
19
votes
3answers
3k views

Exporting all equations from a document as individual svg files

I'm currently a presentation based on a paper originally written in Latex. Currently, I use Kile and Ubuntu for my work. What I'm finding is that I need a large number of the equations from the ...
19
votes
0answers
995 views

How can I produce a .svg file from a TikZ diagram? [duplicate]

I would like to produce separate .svg files for each of the TikZ diagrams in my LaTeX document. Each of the .svg files will then be used in a WordPress web page. I have tried a number of things, none ...
16
votes
2answers
5k views

How to export svg to tikz

I was wondering if anyone had managed exporting .svg files to TikZ code. I do not mean include an .svg file into a latex document, but rather to obtain the code of an image so you can then edit it ...
12
votes
4answers
4k views

Inkscape → PDF → includegraphics → XeLaTeX → changed colors

I have an SVG file, which I have made/edited with Inkscape. I want to include this image in my thesis. The svg file is here: http://brussense.be/temp/theSVG.svg (because Inkscape uses a non-standard ...
12
votes
1answer
503 views

Beamer and JavaScript in a web browser

I have written a talk in Beamer and to illustrate one of my points I've written a program in JavaScript (well actually Processing). You can view it here (it seems to run ok in Chrome and Firefox, and ...
11
votes
3answers
391 views

tikz Join line segments of different thickness with miter

Reading "tikz Multi-segment Line of Varying Thickness" provides a good explanation to join segments, but it seems that the rounded corner transition is the only way to do this nicely? I would like to ...
11
votes
4answers
3k views

What is a good way to draw Dynkin diagrams in LaTeX?

I'm about to start writing something up which includes a fair number of Dynkin diagrams, and I can think of several ways of going about it: Just draw the darn things in, e.g., InkScape, and include ...
11
votes
2answers
5k views

Convert LaTeX to SVG online

What websites allow users to quickly and simply convert mathematical equations into SVG without having to install or run any software?
10
votes
4answers
7k views

What's the best way to embed Visio diagrams?

I was wondering if there is an easier (and better) way of embedding Visio diagrams into a LaTeX document. As far as I know there a two ways: Save Visio Diagram as PNG and use \includegraphics Save ...
9
votes
1answer
16k views

include svg images with the svg package

I'm trying to use the svg package for inserting svg images in my latex file, as suggested in other questions. But now I ran into a problem: For example I have a image figure1.svg, if I write ...
9
votes
1answer
142 views

How to use a custom, scalable, symbol in LaTeX

I want to use a custom symbol in my document that is treated like any other letter or math symbol by LaTeX. I do not want to superimpose existing symbols in order to create a new one but rather create ...
9
votes
1answer
974 views

Inkscape SVG with opacity exported to PDF in pdflatex document not displayed correctly on Mac OS X

I use Inkscape to create graphics which I export to PDFs in order to include them into a LaTeX documents (with \includegraphics and using pdflatex). I didn't notice that there is something wrong until ...
9
votes
1answer
1k views

Background transparency for PDF/SVG

I am using lua/xe/latex to generate a logo as a PDF and convert it to an SVG using pdf2svg for use on a web page. I would like to have a transparent background for the PDF and SVG. The transparent ...
8
votes
1answer
166 views

Specify SVG element ids when converting pgf/tikz figures to SVG

I have a bunch of tikz figures that I would like to convert to svg for inclusion in a webpage. I can successfully use dvisvgm to convert the figures to svg. I noticed that in the resulting svg, some ...
8
votes
1answer
2k views

How can I get the actual relative path using \import and \subimport?

I have structured my PDFLaTeX document in folders. Inside them there are .tex files, .PDF figure files. And all works using \import and \subimport commands from the Import package: Main/ |-- ...
8
votes
1answer
715 views

Compilation taking too long when including svg

This is a general question. I have been very happy when using inkscape for my LaTeX files. Now I am preparing a presentation using beamer and I am trying to include svg files into my presentation ...
8
votes
0answers
103 views

Did one manage to get the new dvisvgm driver from PGF 3.0 to work?

Background: PGF 3.0 added a new, direct way to create SVG. It now has a dvisvgm driver (pgfsys-dvisvgm.def) which has fewer (claimed) limitations than the pgfsys-tex4ht.def driver. Except it doesn't ...
7
votes
3answers
495 views

Approach to creating graphics in book - TikZ, SVG, PDF, Inkscape?

I have a series of "charts" I created with Excel (before discovering LaTeX) to show the ROM character patterns for an old computer for inclusion in a book on retrocomputing. My dilemma is how to ...
7
votes
1answer
298 views

algorithmicx crashes standalone

I am creating SVG files from different stuff from my LaTeX document. For this, I am using the standalone package followed by pdf2svg. This compiles: \documentclass{article} \usepackage{algorithmicx} ...
7
votes
1answer
375 views

Custom TikZ node with svg path not clipped

I would like to make a custom node shape with a small picture (on north east) using the svg directive of TikZ, because the picture comes from a svg path. As you can see with this simple code, the ...
7
votes
2answers
2k views

LibreOffice + Inkscape EPS-Latex

I'm trying to import a graphic created in LibreOffice Draw in a LaTeX document. So far I've tried the Way: Export Document to SVG file. Open with Inkscape and Export using eps+latex Including ...
7
votes
1answer
941 views

PSTricks to SVG

I would like to make block diagrams using the pst-sigsys package (as demonstrated here: http://squobble.blogspot.com/2009/12/drawing-beautiful-block-diagrams-in_04.html). I can do that and export to ...
7
votes
1answer
1k views

Accessing latex fonts from other programs

How can I get the Latex fonts to work from other programmes (e.g. Inkscape)? I have created some graphics as pdf files with Tikz/PGF/PGFPlot (using miktex/TexnicCentre) using the standard latex fonts ...
6
votes
3answers
1k views

Htlatex and Tikz creates sometimes incorrect svgs

I have a document with a large number of Tikz pictures and I need to generate a html page from it. I have declared a driver to have TikZ pictures as SVGs (after this question) and run htlatex ...
6
votes
2answers
1k views

TeX to epub conversion

I want to create epub document, but I only have a tex file (unfortunately, mathematical formulas, and drawing diagrams). I tried pandoc: tex to html, tex to xhtml, to xml, but nothing works properly. ...
6
votes
0answers
119 views

Postscript, EPS and PSTricks: what are the differences at this conditions? [closed]

The program that I use as an editor for vector based images is able to export using the following standards: Postscript 2 and 3 ( .ps ) PSTricks macro written in Latex ( .tex ) Eps ( .eps ) SVG ( ...
5
votes
2answers
5k views

Inkscape PDF resizing

I'm trying to include some PDF I saved in Inkscape and change the width and the height at the same time. Is this possible? I tried \svgheight and it did not take both values at the same time. This is ...
5
votes
1answer
893 views

svg from inkscape — doesn't work in xelatex?

I want to make use of "svg in tex" technology. Here's a tex: \documentclass{article} \usepackage{color} \usepackage{graphicx} \newcommand{\executeiffilenewer}[3]{% ...
5
votes
2answers
289 views

Convert pstricks animation to SVG(+SMIL)

Inspired by these questions— How to convert pstricks animation to GIF file? PSTricks to SVG —how can one convert a PSTricks animation to an animated SVG image? SVG animation would be nicer than ...
5
votes
1answer
173 views

Faster Metapost SVG Output with TeX?

I am generating some diagrams with METAPOST. I need the output in SVG format. My labels are generated by calls to LaTeX via Tex.mp and its TEX METAPOST definition (also called a macro). My ...
5
votes
1answer
475 views

How to compile dvisvgm with texlive 2009?

I am rolling out my own mathview.el (similar to preview.el but aim to be more efficient) package for editing LaTeX in emacs. Currently it uses dvipng but I would like to use dvisvgm as an alternative. ...
4
votes
1answer
57 views

\includesvg produces “No room for a new \read”

I've already searched a lot about it and I'm aware of both questions "No room for a new \read" with writing a journal and No room for a new \read/\write. Still, I couldn't find a solution to ...
4
votes
1answer
3k views

How to use Inkscape's textext plugin

I am having trouble with the textext plugin in inkscape; even the simplest bit of code, such as \documentclass[12pt]{article} \begin{document} test \end{document} gave an error as follows: ...
4
votes
1answer
2k views

Problem inserting .pdf_tex file from Inkscape

I am trying to insert an image from Inkscape. I saved it as a pdf, checking the PDF + Latex option. Inside my Latex file, I wrote the following code : \begin{figure} \centering ...
4
votes
2answers
466 views

Replacement for \curveto in the tikz library - Inkscape export svg to tikz

I need to draw a complex curve and I wanted to help a vector program Inkscape. In first step I tried to use Inkscape to TikZ exporter (http://code.google.com/p/inkscape2tikz/)to convert curve to tikz, ...
4
votes
2answers
2k views

Opaque-to-transparent gradient lost in embedded PDF figure

I have a figure created with Inkscape as SVG and exported as PDF. When I view the PDF directly (e.g. in OS X Preview), it shows correctly. When embedding it in a LaTeX document, it has problems with ...
4
votes
1answer
362 views

Error using htlatex with tikz forest package, invalid SVG generated

htlatex is supposed to support tikz with \def\pgfsysdriver{pgfsys-tex4ht.def} and it does on some tikz examples, but for some other examples, it gives bad svg images. UPDATE I was able to reduce the ...
4
votes
1answer
350 views

Graphics with bottom border for signature capture

I am generating PDF documents using pdflatex with signature images which are pre-converted with Inkscape to pdf. The current template looks like this ({{ tags }} are django template tags): ...
3
votes
1answer
1k views

\includesvg does not detect SVG file

Input test.tex: \documentclass{article} \usepackage{svg} \begin{document} \includesvg{my-svg-file} \end{document} my-svg-file.svg (in the same folder): ...
3
votes
1answer
265 views

How to import bibliography (from .bib file) to svg or other Inkscape friendly format

I want to make a poster in Inkscape and include the bibliography I have in .bib file. When I had only one item in the list, I just copied the text from generated pdf and manually formatted it (adding ...
3
votes
1answer
427 views

order of packages: svg and tocloft

The following MWE illustrate the issue: \documentclass{scrreprt} \usepackage[clean,pdf]{svg} \usepackage{tocloft} \begin{document} \includesvg[width=\textwidth{}]{legacy-ip-only} \end{document} It ...
3
votes
1answer
328 views

Inserting SVG markup directly in LaTeX

Is there any package that let inserting SVG markups directly in LaTeX and get result image like: \begin{svg}[version="1.1"] <polygon points="100,10 40,180 190,60 10,60 160,180" ...
3
votes
1answer
96 views

Render documents as cubic spline outlines

The Metafont system is very different from the Postscript or Truetype systems that store the entire font outlines in quadratic and cubic splines, respectively. Metafont font outlines are, I believe, ...
3
votes
1answer
121 views

How to include SVG syntax into LaTeX [duplicate]

Is it possible to include SVG code into LaTex? If it's possible how can I do that ? Short Example: <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <path d="M150 0 L75 200 L225 200 ...
3
votes
1answer
660 views

PS to EPS preserving bounding box

I have an SVG file and would like to turn that into EPS for embedding into a latex file to be eventually used by dvips. I can use rsvg-convert to turn my SVG into PS. I then can use ps2eps to turn ...
3
votes
1answer
648 views

LaTeX: outputting a “tight” svg

Concise Problem Statement Given an input of a *.tex (LaTeX) file, I want to output a "tight" *.svg file. By "tight", I mean a svg file that does not show the full page -- rather, just the rendered ...