I'm trying to include a graphic I make in inkscape into my LaTeX file. Here is the code that inkscape generated:
%LaTeX with PSTricks extensions
%%Creator: inkscape 0.48.4
%%Please note this file requires PSTricks extensions
\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
\begin{pspicture}(71.27256012,96.8321228)
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
\moveto(0.22171,76.7656728)
\curveto(5.48555,84.6614428)(10.53007,87.7320228)(14.91661,82.9068228)
\curveto(17.7159,79.8276028)(31.36614,47.8145128)(31.36614,47.8145128)
\lineto(9.053,12.2870328)
\lineto(4.62195,12.1429428)
\lineto(4.60825,6.8003728)
\lineto(23.47036,6.8003728)
\lineto(23.33983,12.2691528)
\lineto(16.65588,12.1990528)
\lineto(34.43672,42.1119628)
\curveto(41.17762,27.0873528)(46.28745,17.7893428)(51.62547,6.4862128)
\curveto(52.99873,3.5783628)(55.02481,0.3150828)(59.87864,0.2205028)
\curveto(73.53571,-0.0455872)(70.84499,23.4691628)(70.84499,23.4691628)
\curveto(70.84499,23.4691628)(65.52912,7.3404728)(59.00134,12.5028228)
\curveto(54.95398,15.7035728)(31.87711,62.6847328)(21.4551,87.9955428)
\curveto(19.32776,93.1619728)(17.97765,97.3574528)(11.62671,96.5050528)
\curveto(2.88823,95.3321928)(0.22171,76.7656228)(0.22171,76.7656228)
\closepath
}
}
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linewidth=0.43424526,linecolor=curcolor]
{
\newpath
\moveto(0.22171,76.7656728)
\curveto(5.48555,84.6614428)(10.53007,87.7320228)(14.91661,82.9068228)
\curveto(17.7159,79.8276028)(31.36614,47.8145128)(31.36614,47.8145128)
\lineto(9.053,12.2870328)
\lineto(4.62195,12.1429428)
\lineto(4.60825,6.8003728)
\lineto(23.47036,6.8003728)
\lineto(23.33983,12.2691528)
\lineto(16.65588,12.1990528)
\lineto(34.43672,42.1119628)
\curveto(41.17762,27.0873528)(46.28745,17.7893428)(51.62547,6.4862128)
\curveto(52.99873,3.5783628)(55.02481,0.3150828)(59.87864,0.2205028)
\curveto(73.53571,-0.0455872)(70.84499,23.4691628)(70.84499,23.4691628)
\curveto(70.84499,23.4691628)(65.52912,7.3404728)(59.00134,12.5028228)
\curveto(54.95398,15.7035728)(31.87711,62.6847328)(21.4551,87.9955428)
\curveto(19.32776,93.1619728)(17.97765,97.3574528)(11.62671,96.5050528)
\curveto(2.88823,95.3321928)(0.22171,76.7656228)(0.22171,76.7656228)
\closepath
}
}
\end{pspicture}
I've included \usepackage{pstricks}
in the begining of my document, but I'm still getting the error. Here is the error, specifically:
Underfull \hbox (badness 10000) in paragraph at lines 60--60
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.102 }
? q
OK, entering \batchmodeā¸ˇ
The line it's pointing to is the closing curly bracket from the first \pscustom
command. Any help with this would be tremendous, thank you in advance!
Best Answer
should be read as "pstricks requires latex but you have used pslatex".
Process the document with latex and dvips rather than pdflatex.