Windows: Just to be completely explicit for noobs like me
Use the prewiew package as Habi suggested in the above in your latex code to remove margins.
Install MIktex and Inkscape and use the following bat file:
cd = "C:\Path to tex"
pdflatex input-file-name.tex
"C:\Program Files (x86)\Inkscape\inkscape.exe" input-file-name.pdf --export-plain-svg=output-file-name.svg