GeneralPSTRICKS: \ifcase does NOT work in area integration diagram

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

PSTRICKS: \ifcase does NOT work in area integration diagram

Post by yoyoimut »

The following code is downloaded from http://www.tug.org/PSTricks/main.cgi?fi ... ingbetween.

I compile it using latex->ps->pdf output profile of TeXnicCenter.
However, I cannot compile it because of some errors.

Code: Select all

\documentclass[a4paper,10pt]{article}% Claus Behl 2004
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{multido}
\SpecialCoor
\def\XLABEL#1{%
   \ifcase#1\or%
   $x_0=a$\or $x_1$\or $x_2$\or \or \or $x_\nu$\or $x_{\nu+1}$\or \or $x_{n-1}$\or  $x_n=b$\else $#1$\fi%
}%
\def\pshlabel#1{\XLABEL{#1}}

%%%% Funktion %%%%
\def\F{x 0.5 exp 3 mul}

\begin{document}

\begin{pspicture}(-0.5,-0.5)(11,10)
\psplot[plotstyle=curve]{0}{11}{\F}
\multido{\nx=1+1}{9}{%
\psframe[linecolor=green,hatchcolor=green,fillstyle=vlines](\nx,0)
(!
   \nx\space 1 add
   \nx\space 0.5 exp 3 mul
)
\psaxes[labels=x,ticks=x]{->}(11,10)
\uput[-90](11,0){x}
\uput[0](0,10){y}
}
\end{pspicture}
\end{document} 
Note: other pstricks codes are successfully compiled by my machine. So my system is ready for pstricks.


Edit:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=latex 2010.9.30)  4 OCT 2010 18:35
entering extended mode
**pst-plotDemo4.tex
(C:\Users\De\Pictures\pst-plotDemo4.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for indonesian, english, dumylang, nohyp
henation, german, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, l
oaded.
("C:\Program Files\MiKTeX 2.8\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.8\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.8\tex\latex\pstricks\pstricks.sty"
Package: pstricks 2010/08/28 v0.46 LaTeX wrapper for `PSTricks' (RN,HV)

("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pstricks.tex"
("C:\Program Files\MiKTeX 2.8\tex\generic\xkeyval\pst-xkey.tex"
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)

("C:\Program Files\MiKTeX 2.8\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)

("C:\Program Files\MiKTeX 2.8\tex\generic\xkeyval\xkeyval.tex"
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15
\XKV@depth=\count87
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)

("C:\Program Files\MiKTeX 2.8\tex\generic\xkeyval\keyval.tex"))))
("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pst-fp.tex"
`pst-fp' v0.05, 2010/01/17 (hv)
\pstFP@xs=\count88
\pstFP@xia=\count89
\pstFP@xib=\count90
\pstFP@xfa=\count91
\pstFP@xfb=\count92
\pstFP@rega=\count93
\pstFP@regb=\count94
\pstFP@regs=\count95
\pstFP@times=\count96
)
\psLoopIndex=\count97

`PSTricks' v2.11  <2010/09/09> (tvz)
\pst@dima=\dimen103
\pst@dimb=\dimen104
\pst@dimc=\dimen105
\pst@dimd=\dimen106
\pst@dimg=\dimen107
\pst@dimh=\dimen108
\pst@dimm=\dimen109
\pst@dimn=\dimen110
\pst@dimo=\dimen111
\pst@dimp=\dimen112
\pst@hbox=\box26
\pst@boxg=\box27
\pst@cnta=\count98
\pst@cntb=\count99
\pst@cntc=\count100
\pst@cntd=\count101
\pst@cntg=\count102
\pst@cnth=\count103
\pst@cntm=\count104
\pst@cntn=\count105
\pst@cnto=\count106
\pst@cntp=\count107
\@zero=\count108
\pst@toks=\toks16
("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pstricks.con")
\psunit=\dimen113
\psxunit=\dimen114
\psyunit=\dimen115
\pslinewidth=\dimen116
\psk@startLW=\dimen117
\psk@endLW=\dimen118
\pst@customdefs=\toks17
\pslinearc=\dimen119
\pst@symbolStep=\dimen120
\pst@symbolWidth=\dimen121
\everypsbox=\toks18
\psframesep=\dimen122
\pslabelsep=\dimen123
\pst@shift=\dimen124
\theoverlaybox=\box28
)
File: pstricks.tex 2010/09/09 v2.11 `PSTricks' (tvz,hv)

("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pst-fp.tex")
File: pst-fp.tex 2010/09/09 v2.11 `PST-fp' (hv)

("C:\Program Files\MiKTeX 2.8\tex\latex\xcolor\xcolor.sty"
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)

("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\color.cfg"
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Driver file: dvips.def on input line 225.

("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\dvips.def"
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.
Package xcolor Info: Model `RGB' extended on input line 1353.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.
))
("C:\Program Files\MiKTeX 2.8\tex\latex\pst-plot\pst-plot.sty"
Package: pst-plot 2010/01/22 package wrapper for pst-plot.tex

("C:\Program Files\MiKTeX 2.8\tex\generic\pst-plot\pst-plot.tex"
("C:\Program Files\MiKTeX 2.8\tex\generic\multido\multido.tex"
 v1.42, 2010/05/14 <tvz>
\multido@count=\count109
\multidocount=\count110
\multido@stuff=\toks19
)  v1.20, 2010/09/09 (tvz,hv)
\pstRadUnit=\dimen125
\pstRadUnitInv=\dimen126
\pst@linecnt=\count111
\psk@subticksize=\dimen127
\pst@xticksizeA=\dimen128
\pst@xticksizeB=\dimen129
\pst@xticksizeC=\dimen130
\pst@yticksizeA=\dimen131
\pst@yticksizeB=\dimen132
\pst@yticksizeC=\dimen133
\@digitcounter=\count112
\psk@llx=\dimen134
\psk@lly=\dimen135
\psk@urx=\dimen136
\psk@ury=\dimen137
\pst@xunit=\dimen138
\pst@yunit=\dimen139
)
File: pst-plot.tex 2010/09/09 1.20 `pst-plot' (tvz,hv)
)
("C:\Program Files\MiKTeX 2.8\tex\latex\multido\multido.sty"
Package: multido 2004/05/17 package wrapper for PSTricks `multido.tex', (HV/RN)

)
(C:\Users\De\Pictures\pst-plotDemo4.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \def 
l.28 }
      
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

[1

] (C:\Users\De\Pictures\pst-plotDemo4.aux) ) 
Here is how much of TeX's memory you used:
 2888 strings out of 495207
 41171 string characters out of 3179359
 181182 words of memory out of 3000000
 6135 multiletter control sequences out of 15000+200000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 69 hyphenation exceptions out of 8191
 37i,5n,51p,242b,319s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on pst-plotDemo4.dvi (1 page, 64264 bytes).

Last edited by yoyoimut on Mon Oct 04, 2010 3:44 pm, edited 2 times in total.

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: \ifcase does NOT work in area integration diagram

Post by localghost »

Update your LaTeX system. Even with my old versions of pstricks and pst-plot from TeX Live 2009 I'm able to compile the code flawlessly. And next time it would be helpful if you echo error messages exactly as shown in the log.


Thorsten
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

PSTRICKS: \ifcase does NOT work in area integration diagram

Post by yoyoimut »

localghost wrote:Update your LaTeX system. Even with my old versions of pstricks and pst-plot from TeX Live 2009 I'm able to compile the code flawlessly.
I reinstalled my computer several week ago.
I also downloaded the newest Miktex and installed it.
I think the error has nothing to do with my latex installation because I can compile almost any pstricks codes except that one above.
OK. I will update again to make sure.
localghost wrote: And next time it would be helpful if you echo error messages exactly as shown in the log.
Done. See my first post.

Thank you in advance.

yoyo
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

Re: PSTRICKS: \ifcase does NOT work in area integration diag

Post by yoyoimut »

Hi @localghost,

I just updated my latex installation and tried to compile the code above.

Unfortunately, the same errors still happened.


Thank you.


regards,
yoyo
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

PSTRICKS: \ifcase does NOT work in area integration diagram

Post by CrazyHorse »

yoyoimut wrote:The following code is downloaded from http://www.tug.org/PSTricks/main.cgi?fi ... ingbetween.

I compile it using latex->ps->pdf output profile of TeXnicCenter.
However, I cannot compile it because of some errors.

Code: Select all

\documentclass[a4paper,10pt]{article}% Claus Behl 2004
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{multido}
\SpecialCoor
\def\XLABEL#1{%
   \ifcase#1\or%
   $x_0=a$\or $x_1$\or $x_2$\or \or \or $x_\nu$\or $x_{\nu+1}$\or \or $x_{n-1}$\or  $x_n=b$\else $#1$\fi%
}%
\def\pshlabel#1{\XLABEL{#1}}

%%%% Funktion %%%%
\def\F{x 0.5 exp 3 mul}

\begin{document}

\begin{pspicture}(-0.5,-0.5)(11,10)
\psplot[plotstyle=curve]{0}{11}{\F}
\multido{\nx=1+1}{9}{%
\psframe[linecolor=green,hatchcolor=green,fillstyle=vlines](\nx,0)
(!
   \nx\space 1 add
   \nx\space 0.5 exp 3 mul
)
\psaxes[labels=x,ticks=x]{->}(11,10)
\uput[-90](11,0){x}
\uput[0](0,10){y}
}
\end{pspicture}
\end{document} 
Note: other pstricks codes are successfully compiled by my machine. So my system is ready for pstricks.
use it in this way:

Code: Select all

\makeatletter
\def\pst@@@hlabel#1{\XLABEL{#1}}
\makeatother
or with a current pst-plot:

Code: Select all

\documentclass[a4paper,10pt]{article}% Claus Behl 2004
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{multido}
\SpecialCoor

%%%% Funktion %%%%
\def\F{x 0.5 exp 3 mul}

\begin{document}

\begin{pspicture}(-0.5,-0.5)(11,10)
\psplot[plotstyle=curve]{0}{11}{\F}
\multido{\nx=1+1}{9}{%
  \psframe[linecolor=green,hatchcolor=green,fillstyle=vlines](\nx,0)(!
   \nx\space 1 add
   \nx\space 0.5 exp 3 mul)}
\psaxes[labels=x,ticks=x,labelsep=-5pt,ref=bc,
  xLabels={,$x_0=a$,$x_1$,$x_2$,,,$x_\nu$,$x_{\nu+1}$,,$x_{n-1}$,$x_n=\smash{b}$}]%
  {->}(11,10)[$x$,-45][$y$,10]
\end{pspicture}

\end{document} 
Herbert
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

PSTRICKS: \ifcase does NOT work in area integration diagram

Post by yoyoimut »

Thank you so much Herbert! (Mit tiefer Dankbarkeit!)

Well done!
Post Reply