[Tex/LaTex] Saving an SVG image to TeX code in Inkscape

graphicsinkscapepstrickssvg

I'm trying to export a SVG file into TeX code (pstricks) using Inkscape. I've created the code but I think something is missing in the preamble. What packages should I use? And what is the proper name to enter in the documentclass?
I'm adding the screenshot of all the errors which have occurred.
Screenshoot

Because my code is too long I decided to upload it using a link:
link to my .tex file

Best Answer

The documentclass is up to you. For pstricks you need the package pstricks. If you compile with pdflatex you should also load auto-pst-pdf.

Don't forget do add the document environment as suggested by your editor.