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 do not know what is the official term for such images, but if I make an image in TikZ or pstricks then I want it to have no background; for example I might post it on a webpage with a different background than white, then it should blend in nicely.

I have seen a couple of images in wikipedia that are like this (example), and they show up on image viewers to have some kind of a checkered background.

share|improve this question
    
the buzz word is "transparent background" and TikZ is giving you that automatically if I am not wrong. –  percusse Sep 28 '11 at 21:04
    
wait you want to convert it to an image file? Like .png or .gif? –  percusse Sep 28 '11 at 21:05
    
@percusse yes (..char limit...) –  yayu Sep 28 '11 at 21:07

2 Answers 2

up vote 5 down vote accepted

Since you want to convert to an image file, the problem is one of the converter pdf -> image. TikZ as such does not fill the background (unless you do so explicitly).

If you use ImageMagick, you can use convert -transparent white during the conversion. Other programs may require a transparency channel (perhaps you need to create one based on the color "white" as well).

share|improve this answer

Converting any image (rasterized or vector-based) to a "transparent background image" would have to be performed by an external program. TeX's output is either postscript or PDF. If you want to port LaTeX/graphic code to SVG format specifically, consider reading up on SVG LaTeX.

share|improve this answer

Your Answer

 
discard

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.