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