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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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