[pstricks] PSTricks Digest, Vol 167, Issue 11

Dong Li bnuzsd at gmail.com
Mon Jan 30 08:23:16 CET 2017


what's wrong with these codes (from pstricks manual (p223). It doesn't
work. Who can help me modify these codes. Thanks!

\documentclass{article}
\usepackage{pstricks}

\makeatletter
% We draw the first surface #1 clipped by the one
% or two others #2 and #3, computing it resulting color
\def\PstColorSynthesis at ClippedSurfaces#1#2#3{%
% We compute the “mixed” color, component by component
\def\PstColorSynthesis at MixedColorR{0}%
\def\PstColorSynthesis at MixedColorG{0}%
\def\PstColorSynthesis at MixedColorB{0}%
% \pst at dimd will contain the maximum value of the three
% components.
 \pst at dimd=\z@
 \PstColorSynthesis at MixedColor{%
 \csname PstColorSynthesis at Color#1\endcsname}%
 \PstColorSynthesis at MixedColor{%
 \csname PstColorSynthesis at Color#2\endcsname}%
 \PstColorSynthesis at MixedColor{%
 \csname PstColorSynthesis at Color#3\endcsname}%
 % We must test if the maximum of the new computed
 % component is greater than 1, in which case we divide all
 % the three components by this value for additive synthesis.
 \ifdim\pst at dimd>\@ne\p@
   \PstColorSynthesis at MixedColor@iii{\PstColorSynthesis at MixedColorR}%
   \PstColorSynthesis at MixedColor@iii{\PstColorSynthesis at MixedColorG}%
   \PstColorSynthesis at MixedColor@iii{\PstColorSynthesis at MixedColorB}%
 \fi
 % We draw the first surface, clipped by the other ones
 \psclip{\csname PstColorSynthesis at Surface#2\endcsname%
 \csname PstColorSynthesis at Surface#3\endcsname}
 \definecolor{MixedColor}{rgb}{\PstColorSynthesis at MixedColorR,
   \PstColorSynthesis at MixedColorG,
   \PstColorSynthesis at MixedColorB}%
 \psset{fillstyle=solid,fillcolor=MixedColor}%
 \csname PstColorSynthesis at Surface#1\endcsname
 \endpsclip}

 \def\PstColorSynthesis at MixedColor@i#1 #2 #3 #4\@nil{%
 % We receive the name of the color model (“rgb” is expected
 % here and the three color components.)
 % We add the values to the respective components of the new
 % color to compute.
 \PstColorSynthesis at MixedColor@ii{%
 \PstColorSynthesis at MixedColorR}{#2}%
 \PstColorSynthesis at MixedColor@ii{%
 \PstColorSynthesis at MixedColorG}{#3}%
 \PstColorSynthesis at MixedColor@ii{%
 \PstColorSynthesis at MixedColorB}{#4}}

 \def\PstColorSynthesis at MixedColor@ii#1#2{%
 % As these values are real numbers, we use dimension
 % registers, then we assign the computed value in a macro,
 % converting it from a dimension to a number.
 % We also keep in \pst at dimd the maximum of the values.
 \pst at dimg=#1\p@
 \advance\pst at dimg by #2\p@
 \pst at dimtonum{\pst at dimg}{#1}%
 \ifdim\pst at dimg>\pst at dimd
 \pst at dimd=\pst at dimg
 \fi}

 \def\PstColorSynthesis at MixedColor@iii#1{%
 \pst at divide{#1\p@}{\pst at dimd}{#1}%
 % We must take care of possible rounding problems with
 % \pst at divide (for instance, 1.8/1.8 give 1.0001)
 \ifdim#1\p@>\@ne\p@
 \def#1{1}%
 \fi}

 % We redefine Cyan, Magenta and Yellow in the “rgb” model
 \definecolor{Cyan}{rgb}{0,1,1}%
 \definecolor{Magenta}{rgb}{1,0,1}%
 \definecolor{Yellow}{rgb}{1,1,0}%

 \makeatother

\begin{document}

\begin{pspicture}
 \PstColorSynthesis[SurfaceA={\pscircle{2}},
 SurfaceB={\pscircle(2,0){2}},SurfaceC={\pscircle(1,2){2}},
 ColorA=Cyan,ColorB=Magenta,ColorC=Yellow]
 \PstColorSynthesis[SurfaceA={\psccurve(-3,1)(0,2.5)(2,1.5)(4,3)(4,-1)
 (3,0)(1,-2.5)(-1,-1)(-3,-3)},
 SurfaceB={\psellipticarc(0,-1)(3,1.5){41}{-92}},
 SurfaceC={\pstriangle(1,-2)(5,5)},
 ColorA=SlateBlue,ColorB=Orange,ColorC=Pink]
\end{pspicture}
\end{document}

2017-01-29 19:00 GMT+08:00 <pstricks-request at tug.org>:

> Send PSTricks mailing list submissions to
>         pstricks at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://tug.org/mailman/listinfo/pstricks
> or, via email, send a message with subject or body 'help' to
>         pstricks-request at tug.org
>
> You can reach the person managing the list at
>         pstricks-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PSTricks digest..."
>
>
> Today's Topics:
>
>    1. prosper overlays problems (akhmedov at mpi-hd.mpg.de)
>    2. Re: prosper overlays problems (akhmedov at mpi-hd.mpg.de)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 28 Jan 2017 16:53:39 +0100 (CET)
> From: akhmedov at mpi-hd.mpg.de
> To: pstricks at tug.org
> Subject: [pstricks] prosper overlays problems
> Message-ID: <alpine.DEB.2.20.1701281624090.7560 at lin-1608d>
> Content-Type: text/plain; format=flowed; charset=US-ASCII
>
> On Sat, 28 Jan 2017, pstricks-request at tug.org wrote:
>
> > Send PSTricks mailing list submissions to
> >       pstricks at tug.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >       http://tug.org/mailman/listinfo/pstricks
> > or, via email, send a message with subject or body 'help' to
> >       pstricks-request at tug.org
> >
> > You can reach the person managing the list at
> >       pstricks-owner at tug.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of PSTricks digest..."
> >
> >
> > Today's Topics:
> >
> >   1. Re: prosper overlay problems (akhmedov at mpi-hd.mpg.de)
> >   2. Re: prosper overlay problems (Herbert Voss)
> >   3. Re: prosper overlay problems (Herbert Voss)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Fri, 27 Jan 2017 13:38:05 +0100 (CET)
> > From: akhmedov at mpi-hd.mpg.de
> > To: pstricks at tug.org
> > Subject: Re: [pstricks] prosper overlay problems
> > Message-ID: <alpine.DEB.2.20.1701271333420.31330 at lin-1608d>
> > Content-Type: text/plain; charset=US-ASCII; format=flowed
> >
> > Thanks for the suggestion. Unfortunately, it does not help much. When I
> > remove the pdf option, it compiles without problems but does not produce
> > any overlays -- both frames are displayed simultaneously. The same can be
> > achieved if I simply remove all \overlays and \fromSlide{#}{..} commands,
> > but this is not what I need.
> >
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Thu, 26 Jan 2017 14:17:32 +0100 (CET)
> >> From: akhmedov at mpi-hd.mpg.de
> >> To: pstricks at tug.org
> >> Subject: Re: [pstricks] prosper overlays problems
> >> Message-ID: <alpine.DEB.2.20.1701261406430.21906 at lin-1608d>
> >> Content-Type: text/plain; format=flowed; charset=US-ASCII
> >>
> >> Hello Herbert,
> >>
> >>    here is the minimal example.
> >>
> >> The prosper file test1.tex:
> >>
> >> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >> \usepackage{pstricks,pst-node}
> >> %%%\usepackage{pst-ovl}
> >> \begin{document}
> >>
> >> \overlays{2}{
> >> \begin{slide}[Box]{This is a test}
> >> \small
> >> This is the first frame
> >> \fromSlide{2}{
> >>
> >> This is the second frame
> >> }
> >> \end{slide}
> >> }
> >> \end{document}
> >> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >>
> >> Then
> >>
> >> latex test1 -> dvips test1 -> ps2pdf test1.ps test1.pdf
> >>
> >> At the last stage there is an error message:
> >>
> >> Error: /undefined in BOL
> >> Operand stack:
> >>    (1)
> >> Execution stack:
> >>    %interp_exit   .runexec2   --nostringval--   --nostringval--
> >> --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
> >> --nostringval--   false   1   %stopped_push   1977   1   3
>  %oparray_pop
> >> 1976   1   3   %oparray_pop   1960   1   3   %oparray_pop   1852   1   3
> >> %oparray_pop   --nostringval--   %errorexec_pop   .runexec2
> >> --nostringval--   --nostringval--   --nostringval--   2   %stopped_push
> >> --nostringval--
> >> Dictionary stack:
> >>    --dict:1198/1684(ro)(G)--   --dict:0/20(G)--   --dict:122/200(L)--
> >> --dict:181/300(L)--   --dict:119/200(L)--
> >> Current allocation mode is local
> >> Last OS error: No such file or directory
> >> Current file position is 150749
> >> GPL Ghostscript 9.18: Unrecoverable error, exit code 1
> >>
> >> The error actually occurs already at the dvips stage. If after dvips
> test1
> >> I open the test1.ps file with gv, I see the following error message:
> >>
> >> Error: /undefined in BOL
> >> Operand stack:
> >>    (1)
> >> Execution stack:
> >>    %interp_exit   .runexec2   --nostringval--   --nostringval--
> >> --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
> >> --nostringval--   false   1   %stopped_push   1977   1   3
>  %oparray_pop
> >> 1976   1   3   %oparray_pop   1960   1   3   %oparray_pop   1852   1   3
> >> %oparray_pop   --nostringval--   %errorexec_pop   .runexec2
> >> --nostringval--   --nostringval--   --nostringval--   2   %stopped_push
> >> --nostringval--
> >> DictiGPL Ghostscript 9.18: Unrecoverable error, exit code 1
> >> onary stack:
> >>    --dict:1198/1684(ro)(G)--   --dict:0/20(G)--   --dict:123/200(L)--
> >> --dict:181/300(L)--   --dict:119/200(L)--
> >> Current allocation mode is local
> >> Last OS error: Resource temporarily unavailable
> >>
> >>
> >>
> >> The problem seems to be known, but I was not able to find a clear
> >> solution. On the web page
> >>
> >> http://tex.stackexchange.com/questions/132779/problem-with-overlays
> >>
> >> it is mentioned that the problem may be related to incompatibility of
> >> prosper with recent versions of pstricks. However, the suggested
> solution
> >> (to add \usepackage{pst-ovl}) did not work in my case.
> >>
> >>
> >>
> >> On Thu, 26 Jan 2017, pstricks-request at tug.org wrote:
> >>
> >>> Send PSTricks mailing list submissions to
> >>>     pstricks at tug.org
> >>>
> >>> To subscribe or unsubscribe via the World Wide Web, visit
> >>>     http://tug.org/mailman/listinfo/pstricks
> >>> or, via email, send a message with subject or body 'help' to
> >>>     pstricks-request at tug.org
> >>>
> >>> You can reach the person managing the list at
> >>>     pstricks-owner at tug.org
> >>>
> >>> When replying, please edit your Subject line so it is more specific
> >>> than "Re: Contents of PSTricks digest..."
> >>>
> >>>
> >>> Today's Topics:
> >>>
> >>>   1. prosper overlay problems (akhmedov at mpi-hd.mpg.de)
> >>>   2. Re: prosper overlay problems (Herbert Voss)
> >>>
> >>>
> >>> ----------------------------------------------------------------------
> >>>
> >>> Message: 1
> >>> Date: Thu, 26 Jan 2017 10:32:14 +0100 (CET)
> >>> From: akhmedov at mpi-hd.mpg.de
> >>> To: pstricks at tug.org
> >>> Subject: [pstricks] prosper overlay problems
> >>> Message-ID: <alpine.DEB.2.20.1701261019310.19794 at lin-1608d>
> >>> Content-Type: text/plain; format=flowed; charset=US-ASCII
> >>>
> >>> Hi, I have recently upgraded Ubuntu to version 16.04 on my desktop and
> >>> found that all my legacy prosper files with \overlays in them stopped
> >>> working. Apparently the problem is that prosper is not compatible with
> >>> recent versions of pstricks. Is it possible to get an older version
> which
> >>> would still work with prosper? Thanks, Evgeny
> >>>
> >>>
> >>>
> >>> ------------------------------
> >>>
> >>> Message: 2
> >>> Date: Thu, 26 Jan 2017 11:20:08 +0100
> >>> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> >>> To: pstricks at tug.org
> >>> Subject: Re: [pstricks] prosper overlay problems
> >>> Message-ID: <c0d2889b-bb9e-e78d-1932-bcb03211449e at FU-Berlin.DE>
> >>> Content-Type: text/plain; charset=windows-1252; format=flowed
> >>>
> >>> Am 26.01.2017 um 10:32 schrieb akhmedov at mpi-hd.mpg.de:
> >>>> Hi, I have recently upgraded Ubuntu to version 16.04 on my desktop and
> >>>> found that all my legacy prosper files with \overlays in them stopped
> >>>> working. Apparently the problem is that prosper is not compatible with
> >>>> recent versions of pstricks. Is it possible to get an older version
> >>>> which would still work with prosper? Thanks, Evgeny
> >>>
> >>> Please give a short and complete example with the error message.
> >>>
> >>> Herbert
> >>>
> >>>
> >>>
> >>> ------------------------------
> >>>
> >>> Subject: Digest Footer
> >>>
> >>> _______________________________________________
> >>> PSTricks mailing list
> >>> PSTricks at tug.org
> >>> http://tug.org/mailman/listinfo/pstricks
> >>>
> >>>
> >>> ------------------------------
> >>>
> >>> End of PSTricks Digest, Vol 167, Issue 8
> >>> ****************************************
> >>>
> >>
> >>
> >> ------------------------------
> >>
> >> Message: 2
> >> Date: Thu, 26 Jan 2017 14:32:33 +0100
> >> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> >> To: pstricks at tug.org
> >> Subject: Re: [pstricks] prosper overlays problems
> >> Message-ID: <9878df55-c5d6-ab0d-2509-d8c4f4c3fa78 at FU-Berlin.DE>
> >> Content-Type: text/plain; charset=windows-1252; format=flowed
> >>
> >> Am 26.01.2017 um 14:17 schrieb akhmedov at mpi-hd.mpg.de:
> >>
> >>>    here is the minimal example.
> >>>
> >>> The prosper file test1.tex:
> >>>
> >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%
> >>> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>
> >> do _not_ use the option "pdf":
> >>
> >> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>
> >> then it works for me. Up-to-date TeXLive 2016
> >>
> >> the pdf option makes only sense for default documents with
> >> article or book class.
> >>
> >> Herbert
> >>
> >>
> >> ------------------------------
> >>
> >> Message: 3
> >> Date: Thu, 26 Jan 2017 14:33:36 +0100
> >> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> >> To: Graphics with PSTricks <pstricks at tug.org>
> >> Subject: Re: [pstricks] prosper overlays problems
> >> Message-ID: <a2c7b034-fb1e-6a0d-6ab1-98ad43180696 at FU-Berlin.DE>
> >> Content-Type: text/plain; charset=windows-1252; format=flowed
> >>
> >> Am 26.01.2017 um 14:32 schrieb Herbert Voss:
> >>> Am 26.01.2017 um 14:17 schrieb akhmedov at mpi-hd.mpg.de:
> >>>
> >>>>    here is the minimal example.
> >>>>
> >>>> The prosper file test1.tex:
> >>>>
> >>>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%
> >>>> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>>>
> >>>
> >>> do _not_ use the option "pdf":
> >>>
> >>> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>
> >> sigh, should be
> >>
> >> \documentclass[serpaggi,slideColor,colorBG,accumulate,nototal]{prosper}
> >>
> >>
> >>>
> >>> then it works for me. Up-to-date TeXLive 2016
> >>>
> >>> the pdf option makes only sense for default documents with
> >>> article or book class.
> >>>
> >>> Herbert
> >>
> >>
> >>
> >> ------------------------------
> >>
> >> Subject: Digest Footer
> >>
> >> _______________________________________________
> >> PSTricks mailing list
> >> PSTricks at tug.org
> >> http://tug.org/mailman/listinfo/pstricks
> >>
> >>
> >> ------------------------------
> >>
> >> End of PSTricks Digest, Vol 167, Issue 9
> >> ****************************************
> >>
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Fri, 27 Jan 2017 18:10:38 +0100
> > From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> > To: pstricks at tug.org
> > Subject: Re: [pstricks] prosper overlay problems
> > Message-ID: <68a004d2-cb1f-c9f2-1639-e8cfd078c242 at FU-Berlin.DE>
> > Content-Type: text/plain; charset=windows-1252; format=flowed
> >
> > Am 27.01.2017 um 13:38 schrieb akhmedov at mpi-hd.mpg.de:
> >> Thanks for the suggestion. Unfortunately, it does not help much. When I
> >> remove the pdf option, it compiles without problems but does not produce
> >> any overlays -- both frames are displayed simultaneously. The same can
> >> be achieved if I simply remove all \overlays and \fromSlide{#}{..}
> >> commands, but this is not what I need.
> >
> > I'll see what I can do
> >
> > Herbert
> >
> >
> >
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Fri, 27 Jan 2017 20:39:53 +0100
> > From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> > To: pstricks at tug.org
> > Subject: Re: [pstricks] prosper overlay problems
> > Message-ID: <32f71c6d-5447-3607-03fa-b4fcb77ee8ad at FU-Berlin.DE>
> > Content-Type: text/plain; charset=windows-1252; format=flowed
> >
> > Am 27.01.2017 um 13:38 schrieb akhmedov at mpi-hd.mpg.de:
> >> Thanks for the suggestion. Unfortunately, it does not help much. When I
> >> remove the pdf option, it compiles without problems but does not produce
> >> any overlays -- both frames are displayed simultaneously. The same can
> >> be achieved if I simply remove all \overlays and \fromSlide{#}{..}
> >> commands, but this is not what I need.
> >
> > I tried all versions of TeXLive back to 2010 and all have the
> > same problem. I have no idea what the changes may be...
> >
> > However, converting the slides to powerdot is not really difficult:
> >
> >
> > \documentclass[style=fyma]{powerdot}
> > \begin{document}
> > \begin{slide}{This is a test}
> > \onslide{1-2}{This is the first frame}
> >
> > \onslide{2}{This is the second frame}
> > \end{slide}
> >
> > \begin{slide}{Outline of the talk}
> > \begin{itemize}[type=0]
> >     \item<1-> Introduction
> >     \item<2-> Statement of the main theorem
> >     \item<3> Technical lemmata
> >     \item<4-> Proof of the main theorem
> >     \item<5> Conclusions
> > \end{itemize}
> > \end{slide}
> >
> > \end{document}
> >
> >
> > Herbert
>
> Thanks once again. I could convert my files to powerdot (or beamer), but
> they would have to be modified -- not only the overlay commands, but
> frame, minipage and figure offsets, etc.  I have many legacy prosper
> files, so this would be a lot of work.
>
> Actually, it may be that the problem is related with ghostscript rather
> than with pstricks. I have a computer account at ICTP (Trieste), there my
> files can be processed without problems. If I latex -> dvips -> ps2pdf my
> test1.tex file there, everything is fine (they do have an older version of
> pstricks, v1.29 I think). If I download from there test1.ps file to my
> local computer in Heidelberg and then ps2pdf it here, everything is fine.
> But if I download from there test1.dvi and dvips and ps2pdf it here, the
> same problem occurs already at the dvips stage. So it may well be that the
> problem is related to ghostscript.
>
>     Evgeny
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 28 Jan 2017 17:08:31 +0100 (CET)
> From: akhmedov at mpi-hd.mpg.de
> To: pstricks at tug.org
> Subject: Re: [pstricks] prosper overlays problems
> Message-ID: <alpine.DEB.2.20.1701281704390.7560 at lin-1608d>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On Sat, 28 Jan 2017, akhmedov at mpi-hd.mpg.de wrote:
>
> > On Sat, 28 Jan 2017, pstricks-request at tug.org wrote:
> >
> >> Send PSTricks mailing list submissions to
> >>      pstricks at tug.org
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >>      http://tug.org/mailman/listinfo/pstricks
> >> or, via email, send a message with subject or body 'help' to
> >>      pstricks-request at tug.org
> >>
> >> You can reach the person managing the list at
> >>      pstricks-owner at tug.org
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of PSTricks digest..."
> >>
> >>
> >> Today's Topics:
> >>
> >>   1. Re: prosper overlay problems (akhmedov at mpi-hd.mpg.de)
> >>   2. Re: prosper overlay problems (Herbert Voss)
> >>   3. Re: prosper overlay problems (Herbert Voss)
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Fri, 27 Jan 2017 13:38:05 +0100 (CET)
> >> From: akhmedov at mpi-hd.mpg.de
> >> To: pstricks at tug.org
> >> Subject: Re: [pstricks] prosper overlay problems
> >> Message-ID: <alpine.DEB.2.20.1701271333420.31330 at lin-1608d>
> >> Content-Type: text/plain; charset=US-ASCII; format=flowed
> >>
> >> Thanks for the suggestion. Unfortunately, it does not help much. When I
> >> remove the pdf option, it compiles without problems but does not produce
> >> any overlays -- both frames are displayed simultaneously. The same can
> be
> >> achieved if I simply remove all \overlays and \fromSlide{#}{..}
> commands,
> >> but this is not what I need.
> >>
> >>> ----------------------------------------------------------------------
> >>>
> >>> Message: 1
> >>> Date: Thu, 26 Jan 2017 14:17:32 +0100 (CET)
> >>> From: akhmedov at mpi-hd.mpg.de
> >>> To: pstricks at tug.org
> >>> Subject: Re: [pstricks] prosper overlays problems
> >>> Message-ID: <alpine.DEB.2.20.1701261406430.21906 at lin-1608d>
> >>> Content-Type: text/plain; format=flowed; charset=US-ASCII
> >>>
> >>> Hello Herbert,
> >>>
> >>>    here is the minimal example.
> >>>
> >>> The prosper file test1.tex:
> >>>
> >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%
> >>> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>> \usepackage{pstricks,pst-node}
> >>> %%%\usepackage{pst-ovl}
> >>> \begin{document}
> >>>
> >>> \overlays{2}{
> >>> \begin{slide}[Box]{This is a test}
> >>> \small
> >>> This is the first frame
> >>> \fromSlide{2}{
> >>>
> >>> This is the second frame
> >>> }
> >>> \end{slide}
> >>> }
> >>> \end{document}
> >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%
> >>>
> >>> Then
> >>>
> >>> latex test1 -> dvips test1 -> ps2pdf test1.ps test1.pdf
> >>>
> >>> At the last stage there is an error message:
> >>>
> >>> Error: /undefined in BOL
> >>> Operand stack:
> >>>    (1)
> >>> Execution stack:
> >>>    %interp_exit   .runexec2   --nostringval--   --nostringval--
> >>> --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
> >>> --nostringval--   false   1   %stopped_push   1977   1   3
>  %oparray_pop
> >>> 1976   1   3   %oparray_pop   1960   1   3   %oparray_pop   1852   1
>  3
> >>> %oparray_pop   --nostringval--   %errorexec_pop   .runexec2
> >>> --nostringval--   --nostringval--   --nostringval--   2   %stopped_push
> >>> --nostringval--
> >>> Dictionary stack:
> >>>    --dict:1198/1684(ro)(G)--   --dict:0/20(G)--   --dict:122/200(L)--
> >>> --dict:181/300(L)--   --dict:119/200(L)--
> >>> Current allocation mode is local
> >>> Last OS error: No such file or directory
> >>> Current file position is 150749
> >>> GPL Ghostscript 9.18: Unrecoverable error, exit code 1
> >>>
> >>> The error actually occurs already at the dvips stage. If after dvips
> test1
> >>> I open the test1.ps file with gv, I see the following error message:
> >>>
> >>> Error: /undefined in BOL
> >>> Operand stack:
> >>>    (1)
> >>> Execution stack:
> >>>    %interp_exit   .runexec2   --nostringval--   --nostringval--
> >>> --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
> >>> --nostringval--   false   1   %stopped_push   1977   1   3
>  %oparray_pop
> >>> 1976   1   3   %oparray_pop   1960   1   3   %oparray_pop   1852   1
>  3
> >>> %oparray_pop   --nostringval--   %errorexec_pop   .runexec2
> >>> --nostringval--   --nostringval--   --nostringval--   2   %stopped_push
> >>> --nostringval--
> >>> DictiGPL Ghostscript 9.18: Unrecoverable error, exit code 1
> >>> onary stack:
> >>>    --dict:1198/1684(ro)(G)--   --dict:0/20(G)--   --dict:123/200(L)--
> >>> --dict:181/300(L)--   --dict:119/200(L)--
> >>> Current allocation mode is local
> >>> Last OS error: Resource temporarily unavailable
> >>>
> >>>
> >>>
> >>> The problem seems to be known, but I was not able to find a clear
> >>> solution. On the web page
> >>>
> >>> http://tex.stackexchange.com/questions/132779/problem-with-overlays
> >>>
> >>> it is mentioned that the problem may be related to incompatibility of
> >>> prosper with recent versions of pstricks. However, the suggested
> solution
> >>> (to add \usepackage{pst-ovl}) did not work in my case.
> >>>
> >>>
> >>>
> >>> On Thu, 26 Jan 2017, pstricks-request at tug.org wrote:
> >>>
> >>>> Send PSTricks mailing list submissions to
> >>>>    pstricks at tug.org
> >>>>
> >>>> To subscribe or unsubscribe via the World Wide Web, visit
> >>>>    http://tug.org/mailman/listinfo/pstricks
> >>>> or, via email, send a message with subject or body 'help' to
> >>>>    pstricks-request at tug.org
> >>>>
> >>>> You can reach the person managing the list at
> >>>>    pstricks-owner at tug.org
> >>>>
> >>>> When replying, please edit your Subject line so it is more specific
> >>>> than "Re: Contents of PSTricks digest..."
> >>>>
> >>>>
> >>>> Today's Topics:
> >>>>
> >>>>   1. prosper overlay problems (akhmedov at mpi-hd.mpg.de)
> >>>>   2. Re: prosper overlay problems (Herbert Voss)
> >>>>
> >>>>
> >>>> ------------------------------------------------------------
> ----------
> >>>>
> >>>> Message: 1
> >>>> Date: Thu, 26 Jan 2017 10:32:14 +0100 (CET)
> >>>> From: akhmedov at mpi-hd.mpg.de
> >>>> To: pstricks at tug.org
> >>>> Subject: [pstricks] prosper overlay problems
> >>>> Message-ID: <alpine.DEB.2.20.1701261019310.19794 at lin-1608d>
> >>>> Content-Type: text/plain; format=flowed; charset=US-ASCII
> >>>>
> >>>> Hi, I have recently upgraded Ubuntu to version 16.04 on my desktop and
> >>>> found that all my legacy prosper files with \overlays in them stopped
> >>>> working. Apparently the problem is that prosper is not compatible with
> >>>> recent versions of pstricks. Is it possible to get an older version
> which
> >>>> would still work with prosper? Thanks, Evgeny
> >>>>
> >>>>
> >>>>
> >>>> ------------------------------
> >>>>
> >>>> Message: 2
> >>>> Date: Thu, 26 Jan 2017 11:20:08 +0100
> >>>> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> >>>> To: pstricks at tug.org
> >>>> Subject: Re: [pstricks] prosper overlay problems
> >>>> Message-ID: <c0d2889b-bb9e-e78d-1932-bcb03211449e at FU-Berlin.DE>
> >>>> Content-Type: text/plain; charset=windows-1252; format=flowed
> >>>>
> >>>> Am 26.01.2017 um 10:32 schrieb akhmedov at mpi-hd.mpg.de:
> >>>>> Hi, I have recently upgraded Ubuntu to version 16.04 on my desktop
> and
> >>>>> found that all my legacy prosper files with \overlays in them stopped
> >>>>> working. Apparently the problem is that prosper is not compatible
> with
> >>>>> recent versions of pstricks. Is it possible to get an older version
> >>>>> which would still work with prosper? Thanks, Evgeny
> >>>>
> >>>> Please give a short and complete example with the error message.
> >>>>
> >>>> Herbert
> >>>>
> >>>>
> >>>>
> >>>> ------------------------------
> >>>>
> >>>> Subject: Digest Footer
> >>>>
> >>>> _______________________________________________
> >>>> PSTricks mailing list
> >>>> PSTricks at tug.org
> >>>> http://tug.org/mailman/listinfo/pstricks
> >>>>
> >>>>
> >>>> ------------------------------
> >>>>
> >>>> End of PSTricks Digest, Vol 167, Issue 8
> >>>> ****************************************
> >>>>
> >>>
> >>>
> >>> ------------------------------
> >>>
> >>> Message: 2
> >>> Date: Thu, 26 Jan 2017 14:32:33 +0100
> >>> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> >>> To: pstricks at tug.org
> >>> Subject: Re: [pstricks] prosper overlays problems
> >>> Message-ID: <9878df55-c5d6-ab0d-2509-d8c4f4c3fa78 at FU-Berlin.DE>
> >>> Content-Type: text/plain; charset=windows-1252; format=flowed
> >>>
> >>> Am 26.01.2017 um 14:17 schrieb akhmedov at mpi-hd.mpg.de:
> >>>
> >>>>    here is the minimal example.
> >>>>
> >>>> The prosper file test1.tex:
> >>>>
> >>>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%
> >>>> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>>
> >>> do _not_ use the option "pdf":
> >>>
> >>> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>>
> >>> then it works for me. Up-to-date TeXLive 2016
> >>>
> >>> the pdf option makes only sense for default documents with
> >>> article or book class.
> >>>
> >>> Herbert
> >>>
> >>>
> >>> ------------------------------
> >>>
> >>> Message: 3
> >>> Date: Thu, 26 Jan 2017 14:33:36 +0100
> >>> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> >>> To: Graphics with PSTricks <pstricks at tug.org>
> >>> Subject: Re: [pstricks] prosper overlays problems
> >>> Message-ID: <a2c7b034-fb1e-6a0d-6ab1-98ad43180696 at FU-Berlin.DE>
> >>> Content-Type: text/plain; charset=windows-1252; format=flowed
> >>>
> >>> Am 26.01.2017 um 14:32 schrieb Herbert Voss:
> >>>> Am 26.01.2017 um 14:17 schrieb akhmedov at mpi-hd.mpg.de:
> >>>>
> >>>>>    here is the minimal example.
> >>>>>
> >>>>> The prosper file test1.tex:
> >>>>>
> >>>>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%
> >>>>> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>>>>
> >>>>
> >>>> do _not_ use the option "pdf":
> >>>>
> >>>> \documentclass[pdf,serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>>
> >>> sigh, should be
> >>>
> >>> \documentclass[serpaggi,slideColor,colorBG,accumulate,
> nototal]{prosper}
> >>>
> >>>
> >>>>
> >>>> then it works for me. Up-to-date TeXLive 2016
> >>>>
> >>>> the pdf option makes only sense for default documents with
> >>>> article or book class.
> >>>>
> >>>> Herbert
> >>>
> >>>
> >>>
> >>> ------------------------------
> >>>
> >>> Subject: Digest Footer
> >>>
> >>> _______________________________________________
> >>> PSTricks mailing list
> >>> PSTricks at tug.org
> >>> http://tug.org/mailman/listinfo/pstricks
> >>>
> >>>
> >>> ------------------------------
> >>>
> >>> End of PSTricks Digest, Vol 167, Issue 9
> >>> ****************************************
> >>>
> >>
> >>
> >> ------------------------------
> >>
> >> Message: 2
> >> Date: Fri, 27 Jan 2017 18:10:38 +0100
> >> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> >> To: pstricks at tug.org
> >> Subject: Re: [pstricks] prosper overlay problems
> >> Message-ID: <68a004d2-cb1f-c9f2-1639-e8cfd078c242 at FU-Berlin.DE>
> >> Content-Type: text/plain; charset=windows-1252; format=flowed
> >>
> >> Am 27.01.2017 um 13:38 schrieb akhmedov at mpi-hd.mpg.de:
> >>> Thanks for the suggestion. Unfortunately, it does not help much. When I
> >>> remove the pdf option, it compiles without problems but does not
> produce
> >>> any overlays -- both frames are displayed simultaneously. The same can
> >>> be achieved if I simply remove all \overlays and \fromSlide{#}{..}
> >>> commands, but this is not what I need.
> >>
> >> I'll see what I can do
> >>
> >> Herbert
> >>
> >>
> >>
> >>
> >> ------------------------------
> >>
> >> Message: 3
> >> Date: Fri, 27 Jan 2017 20:39:53 +0100
> >> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> >> To: pstricks at tug.org
> >> Subject: Re: [pstricks] prosper overlay problems
> >> Message-ID: <32f71c6d-5447-3607-03fa-b4fcb77ee8ad at FU-Berlin.DE>
> >> Content-Type: text/plain; charset=windows-1252; format=flowed
> >>
> >> Am 27.01.2017 um 13:38 schrieb akhmedov at mpi-hd.mpg.de:
> >>> Thanks for the suggestion. Unfortunately, it does not help much. When I
> >>> remove the pdf option, it compiles without problems but does not
> produce
> >>> any overlays -- both frames are displayed simultaneously. The same can
> >>> be achieved if I simply remove all \overlays and \fromSlide{#}{..}
> >>> commands, but this is not what I need.
> >>
> >> I tried all versions of TeXLive back to 2010 and all have the
> >> same problem. I have no idea what the changes may be...
> >>
> >> However, converting the slides to powerdot is not really difficult:
> >>
> >>
> >> \documentclass[style=fyma]{powerdot}
> >> \begin{document}
> >> \begin{slide}{This is a test}
> >> \onslide{1-2}{This is the first frame}
> >>
> >> \onslide{2}{This is the second frame}
> >> \end{slide}
> >>
> >> \begin{slide}{Outline of the talk}
> >> \begin{itemize}[type=0]
> >>     \item<1-> Introduction
> >>     \item<2-> Statement of the main theorem
> >>     \item<3> Technical lemmata
> >>     \item<4-> Proof of the main theorem
> >>     \item<5> Conclusions
> >> \end{itemize}
> >> \end{slide}
> >>
> >> \end{document}
> >>
> >>
> >> Herbert
> >
> > Thanks once again. I could convert my files to powerdot (or beamer), but
> > they would have to be modified -- not only the overlay commands, but
> frame,
> > minipage and figure offsets, etc.  I have many legacy prosper files, so
> this
> > would be a lot of work.
> >
> > Actually, it may be that the problem is related with ghostscript rather
> than
> > with pstricks. I have a computer account at ICTP (Trieste), there my
> files
> > can be processed without problems. If I latex -> dvips -> ps2pdf my
> test1.tex
> > file there, everything is fine (they do have an older version of
> pstricks,
> > v1.29 I think). If I download from there test1.ps file to my local
> computer
> > in Heidelberg and then ps2pdf it here, everything is fine. But if I
> download
> > from there test1.dvi and dvips and ps2pdf it here, the same problem
> occurs
> > already at the dvips stage. So it may well be that the problem is
> related to
> > ghostscript.
> >
> >   Evgeny
>
> Update: the problem may still be related to a combination of pstricks and
> dvips. I tried to first latex my test1.tex file locally, then upload it to
> my account at ICTP and then dvips it there. This did not work -- the error
> message was
>
> dvips: ! Couldn't find header file pst-tools.pro.
> Note that an absolute path or a relative path with .. are denied in -R2
> mode.
>
> This may be related to the fact that they have an older version of
> pstricks.
>
>     Evgeny
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
> ------------------------------
>
> End of PSTricks Digest, Vol 167, Issue 11
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20170130/058550e5/attachment-0001.html>


More information about the PSTricks mailing list