problem test-pst.tex

Bernd Brandt bernd at balaena.bio.vu.nl
Fri Sep 4 19:13:45 CEST 1998


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

Hi,

I have a problem with 'test-pst.tex' from 'pstricks/doc'
I was running out of memory
! TeX capacity exceeded, sorry [main memory size=262141].
After inserting 3 \clearpages the problem was solved.
Is this normal? Or can one increase TeX memory, since no \clearpage was present in the original test-pst.tex

Secondly, I keep having problems with lgc/4-7-4.inl
Somehow the \newcommand\lang[4] is incorrect. When it is present in the file the follwing error is produced:
! Missing number, treated as zero.
<to be read again> 
                   !
l.26 \lang{Romanian}{1}{3}{green}

I cannot find the problem...

Thanks,
Bernd

\documentclass{article}
\usepackage{calc, pstcol}

\newcounter{lastval}
\newcounter{thishalf}
\newcounter{thisval}

\definecolor{lightblue}{rgb}{.68, .85, .9}

\newcommand\lang[4]{% name, value, percentage, color
  \setcounter{thisval}{\value{lastval}}
  \addtocounter{thisval}{#3}
  \pswedge[fillcolor=#4]{1}{\thelastval}{\thethisval}%
  \setcounter{thishalf}{((\value{thisval}-\value{lastval})/2)+\value{lastval}}
  %\typeout{#1: \thethishalf}%
  \ifnum#3>200\rput(1.3;\thethishalf){#1}\fi
  \setcounter{lastval}{\value{thisval}}
}

\begin{document}

  \psset{fillstyle=solid}
  \degrees[10000]
  \SpecialCoor
  \setcounter{lastval}{0}
  \lang{Romanian}{1}{3}{green}
 
\end{document}


-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list