[pstricks] Please Help!

bereket T bermaths at yahoo.com
Thu Sep 6 17:05:03 CEST 2007


  Dear:
   
  I am a novice user of pstricks. Last week I have updated my pstrick packages following the directions in the readme files of each package. When I load the pstricks-add in my files, I am having an error: 
                            
                                Missing \begin{document}.
   
   
  I have included the input file and the log file for your references. The input file is one of the examples in the website for pstricks. Could you please help me to overcome this problem. 
   
  Sincerely,
  Bereket
   
   
   
  Here is the input file:
  +++++++++++++++++++++++++++++++++++++
   
  \documentclass[a4paper,11pt]{article}
  \usepackage{pstricks,pst-plot,xkeyval}
  \usepackage{pst-func}
  \usepackage{pstricks-add}
  \begin{document}
  \psset{yunit=0.5cm,xunit=1cm}
  \begin{pspicture*}(-3,-5)(5,10)
  \psaxes[Dy=2]{->}(0,0)(-3,-5)(5,10)
  \psset{linewidth=1.5pt}
  \psPolynomial[coeff=6 3 -1,linecolor=red]{-3}{5}
  \psPolynomial[coeff=2 -1 -1 .5 -.1 .025,linecolor=blue]{-2}{4}
  \psPolynomial[coeff=-2 1 -1 .5 .1 .025 .2 ,linecolor=magenta]{-2}{4}
  \psPolynomial[coeff=-2 1 -1 .5 .1 .025 .2 ,linecolor=magenta,xShift=1,linestyle=dashed]{-2}{4}
  \rput[lb](4,4){\textcolor{red}{$f(x)$}}
  \rput[lb](4,8){\textcolor{blue}{$g(x)$}}
  \rput[lb](2,4){\textcolor{magenta}{$h(x)$}}
  \end{pspicture*}
  \end{document}
   
   
  Here is the log file:++++++++++++++++++++++++++++++++++++++++++++++++++++
   
   
  This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=latex 2007.1.12) 30 AUG 2007 13:23
  entering extended mode
  **Ber1.tex
  (./Ber1.tex
  LaTeX2e <2003/12/01>
  Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
  ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
  stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
  h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
  kish, ukrainian, nohyphenation, loaded.
  (/usr/share/texmf/tex/latex/base/article.cls
  Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
  (/usr/share/texmf/tex/latex/base/size11.clo
  File: size11.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
  )
  \c at part=\count79
  \c at section=\count80
  \c at subsection=\count81
  \c at subsubsection=\count82
  \c at paragraph=\count83
  \c at subparagraph=\count84
  \c at figure=\count85
  \c at table=\count86
  \abovecaptionskip=\skip41
  \belowcaptionskip=\skip42
  \bibindent=\dimen102
  )
  (/usr/share/texmf/tex/latex/pstricks/pstricks.sty
  Package: pstricks 2007/02/18 v0.33 LaTeX wrapper for `PSTricks' (RN,HV)
  (/usr/share/texmf/tex/generic/pstricks/pstricks.tex
  `PSTricks' v1.15a <2006/12/22> (tvz)
  \pst at dima=\dimen103
  \pst at dimb=\dimen104
  \pst at dimc=\dimen105
  \pst at dimd=\dimen106
  \pst at dimg=\dimen107
  \pst at dimh=\dimen108
  \pst at hbox=\box26
  \pst at boxg=\box27
  \pst at cnta=\count87
  \pst at cntb=\count88
  \pst at cntc=\count89
  \pst at cntd=\count90
  \pst at cntg=\count91
  \pst at cnth=\count92
  \pst at toks=\toks14
  (/usr/share/texmf/tex/generic/pstricks/pstricks.con)
  \psunit=\dimen109
  \psxunit=\dimen110
  \psyunit=\dimen111
  \pslinewidth=\dimen112
  \pst at customdefs=\toks15
  \pslinearc=\dimen113
  \everypsbox=\toks16
  \psframesep=\dimen114
  \pslabelsep=\dimen115
  \psk at shift=\dimen116
  \pst at shift=\dimen117
  \theoverlaybox=\box28
  )
  File: pstricks.tex 2006/12/22 v1.15a `PSTricks' (tvz)
  (/usr/share/texmf/tex/latex/xcolor/xcolor.sty
  Package: xcolor 2004/07/04 v2.00 LaTeX color extensions (UK)
  (/usr/share/texmf/tex/latex/graphics/color.cfg
  File: color.cfg 2005/02/03 v1.3 color configuration of teTeX/TeXLive
  )
  Package xcolor Info: Package option `override' ignored on input line 128.
  Package xcolor Info: Driver file: dvips.def on input line 136.
  (/usr/share/texmf/tex/latex/graphics/dvips.def
  File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
  )
  Package xcolor Info: Color model `cmy' added on input line 972.
  Package xcolor Info: Color model `HTML' added on input line 1000.
  Package xcolor Info: Color model `HSB' added on input line 1006.
  Package xcolor Info: Color model `Gray' added on input line 1012.
  ))
  (/usr/share/texmf/tex/latex/pstricks/pst-plot.sty
  Package: pst-plot 2004/07/15 package wrapper for pst-plot.tex
  (/usr/share/texmf/tex/generic/pstricks/pst-plot.tex
  (/usr/share/texmf/tex/generic/multido/multido.tex v1.41, 2004/05/18 <tvz>
  \multido at count=\count93
  \multidocount=\count94
  \multido at stuff=\toks17
  )
  v97 patch 2, 1999/12/12)
  File: pst-plot.tex 1999/12/12 97 patch 2 `pst-plot' (tvz)
  ) (/usr/share/texmf/tex/latex/xkeyval/xkeyval.sty
  Package: xkeyval 2005/01/30 v2.0 package option processing (HA)
  (/usr/share/texmf/tex/generic/xkeyval/xkeyval.tex
  \XKV at toks=\toks18
  File: xkeyval.tex 2005/01/30 v2.0 key=value parser (HA)
  (/usr/share/texmf/tex/generic/xkeyval/keyval.tex)))
  (/usr/share/texmf/tex/latex/pstricks/pst-func.sty
  Package: pst-func 2006/04/22 package wrapper for pst-func.tex (hv)
  (/usr/share/texmf/tex/generic/pstricks/pst-func.tex
  (/usr/share/texmf/tex/generic/pstricks/pst-plot.tex)
  (/usr/share/texmf/tex/generic/pstricks/pstricks-add.tex
  (/usr/share/texmf/tex/generic/pstricks/pst-node.tex v97 patch 11, 2000/11/09
  \psrow=\count95
  \pscol=\count96
  \psmatrixcnt=\count97
  \psrowsep=\skip43
  \pscolsep=\skip44
  )
  (/usr/share/texmf/tex/generic/pstricks/pst-3d.tex v97, 1997/03/25)
  (/usr/share/texmf/tex/generic/xkeyval/pst-xkey.tex
  File: pst-xkey.tex 2005/01/16 v1.3 PSTricks specialization of xkeyval (HA)
  )
  `pstricks-add' v2.87, 2007/07/19 (dr,hv)
  \pst at dimm=\dimen118
  \pst at dimn=\dimen119
  \pst at dimo=\dimen120
  \pst at dimp=\dimen121
  \pst at cntm=\count98
  \pst at cntn=\count99
  \pst at cnto=\count100
  \pst at cntp=\count101
  \@zero=\count102
  \pstRadUnit=\dimen122
  \pstRadUnitInv=\dimen123
   
  ! LaTeX Error: Missing \begin{document}.
  See the LaTeX manual or LaTeX Companion for explanation.
  Type H <return> for immediate help.
  ... 
  
  l.158 \define at boolkey[psset]{pstricks-add}[P
  st@]{CMYK}[true]{}
  ? x
  
  Here is how much of TeX's memory you used:
  2340 strings out of 94500
  26920 string characters out of 1176769
  99244 words of memory out of 3500000
  5538 multiletter control sequences out of 10000+50000
  3940 words of font info for 15 fonts, out of 500000 for 2000
  580 hyphenation exceptions out of 1000
  28i,0n,40p,270b,46s stack positions out of 1500i,500n,5000p,200000b,5000s
  No pages of output.

       
---------------------------------
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20070906/c31f469f/attachment.html 


More information about the PSTricks mailing list