Graphics, Figures & Tablespstricks error, please help

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
rakhkovs
Posts: 2
Joined: Tue Mar 31, 2009 2:31 am

pstricks error, please help

Post by rakhkovs »

Hi,
Could you please help me.
I have a strange error when I'm using pscurve in the following code:

Code: Select all

\usepackage{pstricks, pst-plot, pstricks-add, pst-node, pst-tree}

\begin{pspicture}(0,-1)
\psset{xunit=0.5mm, yunit=1mm}
\psline(1,1)(300,1)
\psbrace(1,10)(150,10){Disclose}
\end{pspicture}
When try to run the code, the latex says:

! missing number, treated as zero

I have just updated my pstricks-add package, so this not an issue.

Thank you very much, Ilya

Recommended reading 2024:

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

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

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

pstricks error, please help

Post by localghost »

Your code works fine for me as is. Note that the pstricks-add package should be loaded as the last package from pstricks (pst-xxx). If the problem persists, build a minimal working example (MWE) that reproduces the error.


Best regards and welcome to the board
Thorsten¹
rakhkovs
Posts: 2
Joined: Tue Mar 31, 2009 2:31 am

Re: pstricks error, please help

Post by rakhkovs »

Thank you very much Thorsten,

The problem disappeared after I loaded pstricks-add package last.

Thank you for welcoming me on the board and a quick response,

Ilya
Post Reply