Graphics, Figures & TablesBezier Curve

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
abod
Posts: 4
Joined: Tue May 26, 2009 6:42 pm

Bezier Curve

Post by abod »

Hi,

I looked in the latex-community website about the pst-bezier package to draw bezier curve. I downloaded and I tried to follow the following example from the pdf file http://www.tex.ac.uk/tex-archive/graphi ... er-doc.pdf

1 \documentclass{minimal}
2 \usepackage{pstricks}
3 \usepackage{pst-bezier}
4 \begin{document}
5 \begin{pspicture}(6,4)
6 \psbcurve(1,2)(5,2) % Draw just one straight line.
7 \end{pspicture}
8 \end{document}

But I got the following error:

! undefined control sequence.
<recently read> \c@lo@to@ps

\end
{pspicture}
?

Can you help me to see where is the problem?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Bezier Curve

Post by josephwright »

Works for me. I suspect you have an old version of one or more files. Can you try \listfiles?
Joseph Wright
abod
Posts: 4
Joined: Tue May 26, 2009 6:42 pm

Re: Bezier Curve

Post by abod »

Thanks Joseph,

Did you get a pdf with the curve? I tried to texify it to get PdF and that error occurs. When I texify it to get DVI, it works fine, so I wonder how to use it in my document?

Regards,
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bezier Curve

Post by localghost »

Take a look at point #5 in the list of frequently done errors on the homepage of PSTricks.


Best regards
Thorsten
Post Reply