[texhax] can anyone explain this error in pstricks?
Zbigniew Nitecki
zbigniew.nitecki at tufts.edu
Mon Jun 4 15:36:02 CEST 2007
The set of commands below, when run on its own (in a test file using
the correct packages and article style, TeX and Ghostscript in
TeXShop), runs fine; when inserted in a (much) larger file (also
with all the right packages), following a theorem (lemma) environment
and preceding a proof environment, it returns a set of warnings as
follows:
**************************************************
! Missing number, treated as zero.
<to be read again>
P
l.380 }
?
! Illegal unit of measure (pt inserted).
<to be read again>
P
l.380 }
?
! Missing number, treated as zero.
<to be read again>
\relax
l.380 }
?
! Illegal unit of measure (pt inserted).
<to be read again>
\relax
l.380 }
?
*****************************************************
but then runs fine. What is going on?
Here is the set of commands in question:
*******************************************************
\begin{figure}[htbp]
\begin{center}
\begin{pspicture}(-0.5,-2.5)(5.5,2.5)
\psset{xunit=0.25 cm, yunit=1.5 cm}
\uput[ur](0.75,0.5){$y=\fof{x}$}
\uput[dr](0.75,-0.5){\textcolor{darkgray}{$y=-\fof{x}$}}
\psline{<->}(-1,0)(22,0)
\psline{<->}(0,-1.2)(0,1.2)
\pscustom%
{
\gsave
\psline[linestyle=none](PI 2 div 0)(0,0)(0,1)
\psplot[linestyle=none]{0}{PI 2 div}{x COS x 1 add div}%
\fill[fillstyle=solid, fillcolor=lightgray]
\grestore
}
\pscustom[fillstyle=solid, fillcolor=lightgray]%
{
\psplot[linestyle=none]{PI 3 mul 2 div}{PI 2 div}{x COS x 1 add
div}%
}
\pscustom[fillstyle=solid, fillcolor=lightgray]%
{
\psplot[linestyle=none]{PI 3 mul 2 div}{PI 5 mul 2 div}{x COS x
1 add div}%
}
\pscustom[fillstyle=solid, fillcolor=lightgray]%
{
\psplot[linestyle=none]{PI 5 mul 2 div}{PI 7 mul 2 div}{x COS x
1 add div}%
}
\pscustom[fillstyle=solid, fillcolor=lightgray]%
{
\psplot[linestyle=none]{PI 7 mul 2 div}{PI 9 mul 2 div}{x COS x
1 add div}%
}
\pscustom[fillstyle=solid, fillcolor=lightgray]%
{
\psplot[linestyle=none]{PI 9 mul 2 div}{PI 11 mul 2 div}{x COS
x 1 add div}%
}
\pscustom[fillstyle=solid, fillcolor=lightgray]%
{
\psplot[linestyle=none]{PI 11 mul 2 div}{PI 13 mul 2 div}{x COS
x 1 add div}%
}
\psplot[linewidth=1.2 pt]{0}{22}{x COS x 1 add div}
\psplot[linecolor=darkgray]{0}{22}{x COS x 1 add div -1 mul}
\end{pspicture}
\caption{\protect\refer{lem}{absconvint} (Absolute Convergence for
Integrals)}
\label{fig:absconvint}
\end{center}
\end{figure}
************************************************************************
************************
Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155
telephones:
Office (617)627-3843
Dept. (617)627-3234
Dept. fax (617)627-3966
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20070604/37d24a5e/attachment.html
More information about the texhax
mailing list