[pstricks] PSTricks Digest, Vol 77, Issue 35

robert.fischer10 at arcor.de robert.fischer10 at arcor.de
Mon Jun 29 20:02:50 CEST 2009


To Message: 8 (pst-solides3d | transparency)

Hello Herbert,

sorry - here the complete example:

\documentclass[a4paper]{article}
\usepackage{pst-solides3d}
\pagestyle{empty}
\begin{document}

\begin{pspicture}(-4,-5)(-6,8)
\psset{solidmemory}
\psset{unit=0.25}
\psset{viewpoint=-10 -10 10,
   lightsrc=-8 -5 6,
   Decran=50}

\psSolid[object=sphere,
    r=4.5,
    ngrid=36 36,
%    RotY=90,
    fillcolor=blue,
    incolor=lightgray,
    hollow,
    name=sph1,
    action=none](0,0,2)
\psSolid[object=cone,
      fillcolor=red,
      r=5,
      h=9,
      ngrid=36 36,
      hollow,
      name=sph2,
      action=none
      ](0,0,0)
\psSolid[%
    object=fusion,
    base=sph1 sph2,
    name=sphere,
    opacity=0.6,
    action=draw**
    ](0,0,0)%
\composeSolid


\end{pspicture}

\end{document}


> pstricks.tex    2009/05/19 v1.29 `PSTricks' (tvz,hv)
          Different: pstricks.tex 2009/01/25 v1.27 `PSTricks' (tvz,hv)
          But I have found no other version...

Is there a easy way to get the versions of the files? The .log contains not all:
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=latex 2009.6.23)  29 JUN 2009 19:55
entering extended mode
**M01.tex
(M01.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
("C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls"
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Program Files\MiKTeX 2.7\tex\latex\base\size10.clo"
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c at part=\count79
\c at section=\count80
\c at subsection=\count81
\c at subsubsection=\count82
\c at paragraph=\count83
\c at subparagraph=\count84
\c at figure=\count85
\c at table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.7\tex\latex\pst-solides3d\pst-solides3d.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\pstricks\pstricks.sty"
Package: pstricks 2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)

("C:\Program Files\MiKTeX 2.7\tex\generic\pstricks\pstricks.tex"
`PSTricks' v1.27  <2009/01/25> (tvz)
\pst at dima=\dimen103
\pst at dimb=\dimen104
\pst at dimc=\dimen105
\pst at dimd=\dimen106
\pst at dimg=\dimen107
\pst at dimh=\dimen108
\pst at hbox=\box26
\pst at boxg=\box27
\pst at cnta=\count87
\pst at cntb=\count88
\pst at cntc=\count89
\pst at cntd=\count90
\pst at cntg=\count91
\pst at cnth=\count92
\pst at toks=\toks14
("C:\Program Files\MiKTeX 2.7\tex\generic\pstricks\pstricks.con")
\psunit=\dimen109
\psxunit=\dimen110
\psyunit=\dimen111
\pslinewidth=\dimen112
\pst at customdefs=\toks15
\pslinearc=\dimen113
\everypsbox=\toks16
\psframesep=\dimen114
\pslabelsep=\dimen115
\pst at shift=\dimen116
\theoverlaybox=\box28
)
File: pstricks.tex 2009/01/25 v1.27 `PSTricks' (tvz,hv)

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

("C:\Program Files\MiKTeX 2.7\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.7\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.
))
Package: pst-solides3d 2007/10/12 package wrapper for pst-solides3d

("C:\Program Files\MiKTeX 2.7\tex\generic\pst-solides3d\pst-solides3d.tex"
("C:\Program Files\MiKTeX 2.7\tex\generic\pstricks\pst-node.tex"
 v1.01, 2008/11/26
\psrow=\count93
\pscol=\count94
\psmatrixcnt=\count95
\psrowsep=\skip43
\pscolsep=\skip44
)
("C:\Program Files\MiKTeX 2.7\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.7\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)

("C:\Program Files\MiKTeX 2.7\tex\generic\xkeyval\xkeyval.tex"
\XKV at toks=\toks17
\XKV at tempa@toks=\toks18
\XKV at depth=\count96
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)

("C:\Program Files\MiKTeX 2.7\tex\generic\xkeyval\keyval.tex"))))
("C:\Program Files\MiKTeX 2.7\tex\generic\multido\multido.tex"
 v1.41, 2004/05/18 <tvz>
\multido at count=\count97
\multidocount=\count98
\multido at stuff=\toks19
) `PSTSOLIDESIIID' v4.13, 2009/06/23
\test at mode=\count99
)
File: pst-solides3d.tex 2009/06/23 v4.13 `PST-solides3D'
) (M01.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.

[1

] (M01.aux) ) 
Here is how much of TeX's memory you used:
 2767 strings out of 95333
 34657 string characters out of 1184216
 110695 words of memory out of 1500000
 6008 multiletter control sequences out of 110000
 3640 words of font info for 14 fonts, out of 3000000 for 5000
 14 hyphenation exceptions out of 8191
 37i,5n,39p,245b,212s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on M01.dvi (1 page, 7516 bytes).

Best Regards,
Robert.





----- Original Nachricht ----
Von:     pstricks-request at tug.org
An:      pstricks at tug.org
Datum:   29.06.2009 17:20
Betreff: PSTricks Digest, Vol 77, Issue 35

> 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. extend scope of user defined Postscript variable (Alexander Grahn)
>    2. Re: extend scope of user defined Postscript variable
>       (Herbert Voss)
>    3. Re: extend scope of user defined Postscript variable
>       (Alexander Grahn)
>    4. Re: extend scope of user defined Postscript variable
>       (Herbert Voss)
>    5. pst-solides3D transparency (robert.fischer10 at arcor.de)
>    6. Re: extend scope of user defined Postscript variable
>       (Alexander Grahn)
>    7. Re: extend scope of user defined Postscript variable
>       (Herbert Voss)
>    8. Re: pst-solides3D transparency (Herbert Voss)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 29 Jun 2009 12:29:58 +0200
> From: Alexander Grahn <A.Grahn at fzd.de>
> To: pstricks at tug.org
> Subject: [pstricks] extend scope of user defined Postscript variable
> Message-ID: <20090629102958.GA24681 at fzd.de>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi!
> 
> The print command on the second page of the document listed below raises
> an error during PS to PDF conversion, because the variable /hello,
> defined on the first page, does not survive the page break.
> 
> Is there a way to extend the scope of a user defined Postscript variable
> in order to make it known throughout the whole document written in
> TeX/LaTeX?
> 
> Thanks and kind regards,
> Alexander
> 
> 
> \input pstricks.tex
> \pstVerb{/hello (hello!) def}
> 
> .\pstVerb{hello print}
> 
> \vfill\eject
> 
> .\pstVerb{hello print} %Error: /undefined in hello
> 
> \bye
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 29 Jun 2009 14:29:40 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] extend scope of user defined Postscript
> 	variable
> Message-ID: <4A48B3B4.4060503 at FU-Berlin.DE>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Alexander Grahn schrieb:
> 
> > The print command on the second page of the document listed below raises
> > an error during PS to PDF conversion, because the variable /hello,
> > defined on the first page, does not survive the page break.
> > 
> > Is there a way to extend the scope of a user defined Postscript variable
> > in order to make it known throughout the whole document written in
> > TeX/LaTeX?
> 
> \documentclass{minimal}
> \usepackage{pstricks}
> 
> \begin{filecontents}{user.pro}
> /hello (hello!!!) def
> \end{filecontents}
> \pstheader{user.pro}
> 
> \begin{document}
> \pstVerb{hello print}
> foo
> \clearpage
> 
> \pstVerb{hello print}
> foo
> \end{document}
> 
> 
> Herbert
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 29 Jun 2009 14:45:24 +0200
> From: Alexander Grahn <A.Grahn at fzd.de>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] extend scope of user defined Postscript
> 	variable
> Message-ID: <20090629124524.GA4675 at fzd.de>
> Content-Type: text/plain; charset=us-ascii
> 
> On Mon, Jun 29, 2009 at 02:29:40PM +0200, Herbert Voss wrote:
> >Alexander Grahn schrieb:
> >> 
> >> Is there a way to extend the scope of a user defined Postscript variable
> >> in order to make it known throughout the whole document written in
> >> TeX/LaTeX?
> >
> >\documentclass{minimal}
> >\usepackage{pstricks}
> >
> >\begin{filecontents}{user.pro}
> >/hello (hello!!!) def
> >\end{filecontents}
> >\pstheader{user.pro}
> >
> >\begin{document}
> >\pstVerb{hello print}
> >foo
> >\clearpage
> >
> >\pstVerb{hello print}
> >foo
> >\end{document}
> >
> 
> Thanks, Herbert
> 
> As I see, it is only possible by using a temporary file.
> 
> Kind regards,
> Alexander
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Mon, 29 Jun 2009 15:29:27 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] extend scope of user defined Postscript
> 	variable
> Message-ID: <4A48C1B7.6020304 at FU-Berlin.DE>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Alexander Grahn schrieb:
> 
> > As I see, it is only possible by using a temporary file.
> 
> also possible, but then you have to use the SDict dictionary
> 
> \documentclass{minimal}
> \usepackage{pstricks}
> 
> \special{! /hello (hello!!!) def}
> 
> \begin{document}
> \pstVerb{SDict begin hello print end}
> foo
> \clearpage
> 
> \pstVerb{SDict begin hello print end}
> foo
> \end{document}
> 
> 
> Herbert
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Mon, 29 Jun 2009 15:36:42 +0200 (CEST)
> From: robert.fischer10 at arcor.de
> To: pstricks at tug.org
> Subject: [pstricks] pst-solides3D transparency
> Message-ID:
> 	<14045256.1246282602199.JavaMail.ngmail at webmail17.arcor-online.net>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hello,
> 
> there is a very nice example related to transparency:
> http://melusine.eu.org/lab/bpst/pst-solides3d/transparence/ex_29.pst
> 
> Compiling this example looks different. The transparency is missing. Output
> is the same as without hollow and opacity=0.6. I have the latest version of
> pst-solides3d.tex (C:\Program Files\MiKTeX 2.7\tex\generic\pst-solides3d)
> and solides.pro (C:\Program Files\MiKTeX 2.7\dvips\pst-solides3d) by Herbert
> Voss (see http://voss.homedns.org/packages/pst-solides3d/). FNDB of Miketex
> is refreshed.
> 
> Can anyone just try, if the example still works with those latest files...?
> 
> Have a nice day,
> Robert.
> 
> \begin{pspicture}(-4,-5)(-6,8)
> \psset{solidmemory}
> \psset{unit=0.25}
> \psset{viewpoint=-10 -10 10,
>    lightsrc=-8 -5 6,
>    Decran=50}
> 
> \psSolid[object=sphere,
>     r=4.5,
>     ngrid=36 36,
> %    RotY=90,
>     fillcolor=blue,
>     incolor=lightgray,
>     hollow,
>     name=sph1,
>     action=none](0,0,2)
> \psSolid[object=cone,
>       fillcolor=red,
>       r=5,
>       h=9,
>       ngrid=36 36,
>       hollow,
>       name=sph2,
>       action=none
>       ](0,0,0)
> \psSolid[%
>     object=fusion,
>     base=sph1 sph2,
>     name=sphere,
>     opacity=0.6,
>     action=draw**
>     ](0,0,0)%
> \composeSolid
> 
> 
> \end{pspicture}
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Mon, 29 Jun 2009 15:45:13 +0200
> From: Alexander Grahn <A.Grahn at fzd.de>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] extend scope of user defined Postscript
> 	variable
> Message-ID: <20090629134513.GA4926 at fzd.de>
> Content-Type: text/plain; charset=us-ascii
> 
> On Mon, Jun 29, 2009 at 03:29:27PM +0200, Herbert Voss wrote:
> >Alexander Grahn schrieb:
> >
> >> As I see, it is only possible by using a temporary file.
> >
> >also possible, but then you have to use the SDict dictionary
> >
> >\documentclass{minimal}
> >\usepackage{pstricks}
> >
> >\special{! /hello (hello!!!) def}
> >
> >\begin{document}
> >\pstVerb{SDict begin hello print end}
> >foo
> >\clearpage
> >
> >\pstVerb{SDict begin hello print end}
> >foo
> >\end{document}
> >
> 
> I would prefere this one, because there is no need for files. However
> it is not possible to change the value of the variable in the middle of
> the document, `good bye!!!' is written 4 times to stdout during ps2pdf:
> 
> \documentclass{minimal}
> \usepackage{pstricks}
> 
> \begin{document}
> \special{! /hello (hello!!!) def}
> \pstVerb{SDict begin hello print end}
> foo
> \clearpage
> \pstVerb{SDict begin hello print end}
> foo
> \clearpage
> \special{! /hello (good bye!!!) def}
> \pstVerb{SDict begin hello print end}
> foo
> \clearpage
> \pstVerb{SDict begin hello print end}
> foo
> \end{document}
> 
> --
> Alexander
> 
> 
> ------------------------------
> 
> Message: 7
> Date: Mon, 29 Jun 2009 17:07:20 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] extend scope of user defined Postscript
> 	variable
> Message-ID: <4A48D8A8.6020907 at FU-Berlin.DE>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Alexander Grahn schrieb:
> 
> > I would prefere this one, because there is no need for files. However
> > it is not possible to change the value of the variable in the middle of
> > the document, `good bye!!!' is written 4 times to stdout during ps2pdf:
> > 
> > \documentclass{minimal}
> > \usepackage{pstricks}
> > 
> > \begin{document}
> > \special{! /hello (hello!!!) def}
> > \pstVerb{SDict begin hello print end}
> > foo
> > \clearpage
> > \pstVerb{SDict begin hello print end}
> > foo
> > \clearpage
> > \special{! /hello (good bye!!!) def}
> 
> \pstVerb{SDict begin /hello (good bye!!!) def end}
> 
> > \pstVerb{SDict begin hello print end}
> > foo
> > \clearpage
> > \pstVerb{SDict begin hello print end}
> > foo
> > \end{document}
> 
> 
> Herbert
> 
> 
> ------------------------------
> 
> Message: 8
> Date: Mon, 29 Jun 2009 17:16:42 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] pst-solides3D transparency
> Message-ID: <4A48DADA.70807 at FU-Berlin.DE>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> robert.fischer10 at arcor.de schrieb:
> 
> > there is a very nice example related to transparency:
> > http://melusine.eu.org/lab/bpst/pst-solides3d/transparence/ex_29.pst
> > 
> > Compiling this example looks different. The transparency is missing.
> Output is the same as without hollow and opacity=0.6. I have the latest
> version of pst-solides3d.tex (C:\Program Files\MiKTeX
> 2.7\tex\generic\pst-solides3d) and solides.pro (C:\Program Files\MiKTeX
> 2.7\dvips\pst-solides3d) by Herbert Voss (see
> http://voss.homedns.org/packages/pst-solides3d/). FNDB of Miketex is
> refreshed.
> 
> with these files I get the attached image.
> 
> > \begin{pspicture}(-4,-5)(-6,8)
> > \psset{solidmemory}
> > \psset{unit=0.25}
> 
> ...
> please provide _complete_ examples, makes live easier ...
> 
> 
>  *File List*
>  minimal.cls    2001/05/25 Standard LaTeX minimal class
> pst-solides3d.sty    2007/10/12 package wrapper for pst-solides3d
> pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
> pstricks.tex    2009/05/19 v1.29 `PSTricks' (tvz,hv)
> pstricks.pro    2009/01/30 v. 1.06, PostScript prologue file (hv)
> pst-dots.pro    2006/12/19 v. 2.00, PostScript prologue file (hv)
> pst-algparser.pro    2008/01/01 v. 0.01, PostScript prologue file (hv)
>   xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
>    color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
>    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
> pst-solides3d.tex    2009/06/23 v4.13 `PST-solides3D'
> pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
>  xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
>  xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
>  solides.pro    2008/10/30 v. 4.13, PostScript prologue file
>  ***********
> 
> 
> Herbert
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: xx.png
> Type: image/png
> Size: 186474 bytes
> Desc: not available
> URL:
> <http://tug.org/pipermail/pstricks/attachments/20090629/088ede9e/attachment.
> png>
> 
> ------------------------------
> 
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> 
> 
> End of PSTricks Digest, Vol 77, Issue 35
> ****************************************
> 


More information about the PSTricks mailing list