Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 PDF or PS and the like.

What's the best way to get the blocks rendered on a web page? I am thinking SVG. How can I accomplish that?

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

You can create a PostScript (PS) version of the PSTricks picture (also: PS or PDF version of a PGF/TikZ picture) using LaTeX. I would recommend the use of the standalone class to produce a file which only holds the picture without any other material. Then import the PS or PDF in a vector graphic editor with supports the format as well as SVG output. I would recommend Inkscape which is free, open-source and available for Linux, Mac and MS Windows. Simply load the PS or PDF file and choice "Save As" and select "Plain SVG" output. These files can the be viewed with modern browsers and included into websites.

Inkscape also supports command line parameter (at least the Linux version I have) and therefore you can use the following commands to convert PSTricks to SVG:

latex file.tex
dvips file.dvi
inkscape file.ps --export-plain-svg=file.svg

Note: I used the first example from the website you linked as a test. I removed the figure environment and used the standalone class instead. There seems to be an issue with the bounding box. The s[n] and e[n] at the left and right, respectively, are not fully included. I fixed this with the border=5mm option of the standalone class. I'm not sure if it is an issue of PSTricks or maybe dvips.

share|improve this answer
I have found that this approach works well with TeXnicCenter and Incscape with Windows 7, I load the .ps file into Inscape and edit it there! Thanks! I haven't needed to use standalone. I had a small issue with fonts changing from the original one to a standard one and losing the formatting (e.g. italics etc) - I've got around this by adding \usepackage{mathptmx} to the preamble. –  Andrew Sep 19 '11 at 13:46
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.