PSTRICKS: help wanted

Christophe Broult broult at info.unicaen.fr
Wed Jun 25 14:02:27 CEST 1997


-----------------------------------------------------------------------------
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've just tried an example from The LaTeX graphics companion with the
latest version of the graphics and PSTricks packages and it doesn't
produce the expected result. 

$ cat trymain.tex
\documentclass{article}
\usepackage{pstcol,pst-node}
\begin{document}

  \psset{arrows=->,fillcolor=white,fillstyle=solid}
  \newcommand{\Show}[1]{\psshadowbox{#1}}
  \definecolor{pink}{rgb}{1, .75, .8}
  \begin{psmatrix}[mnode=r,ref=t]
    \psframebox[linestyle=none,framesep=.75]{%
      \begin{psmatrix}
        [name=A,ref=c]\Show{Stakeholder}      
      \end{psmatrix}%
      } &
    \psframebox[fillstyle=solid,fillcolor=pink,framesep=.75]{%
      \begin{psmatrix}[ref=c]
        [name=B]%
        \Show{Goal}     & \Show{Criteria}\\
        \Show{Sub-goal} & \Show{Justification}
        \ncline{1,1}{1,2}
        \ncline{1,1}{2,2}
        \ncline{1,1}{2,1}\tlput{Strategy}
        \ncline{2,1}{2,2}
      \end{psmatrix}%
      }%
  \end{psmatrix}
  \ncline[angleB=180]{A}{B}\naput[npos=.7]{Model}

\end{document}

TeX is compiling the source LaTeX source with no error. 

  $ latex trymain
  This is MlTeX (2.01), C Version 3.1415 (C version 6.1)
  (trymain.tex
  LaTeX2e <1995/12/01> patch level 2
  (/usr/local/lib/texmf/tex/latex2e/base/article.cls
  Document Class: article 1995/12/20 v1.3q Standard LaTeX document class
  (/usr/local/lib/texmf/tex/latex2e/base/size10.clo))
  (/home2/broult/lib/tex/localtex/graphics/pstcol.sty
  (/home2/broult/lib/tex/localtex/pstricks/latex/pstricks.sty
  (/home2/broult/lib/tex/localtex/pstricks/generic/pstricks.tex
  `PSTricks' v93a/b-97 patch 2  <1997/05/12> (tvz)
  (/home2/broult/lib/tex/localtex/pstricks/generic/pstricks.con)
  (/home2/broult/lib/tex/localtex/pstricks/generic/pstricks.bug
   v97.01, 1997/04/02)))
  (/home2/broult/lib/tex/localtex/graphics/color.sty
  (/home2/broult/lib/tex/localtex/graphics/color.cfg)
  (/home2/broult/lib/tex/localtex/graphics/dvips.def)
  (/home2/broult/lib/tex/localtex/graphics/dvipsnam.def)))
  (/home2/broult/lib/tex/localtex/pstricks/latex/pst-node.sty
  (/home2/broult/lib/tex/localtex/pstricks/generic/pst-node.tex
   v93a/b, 94beta-97, 1997/03/25)) (trymain.aux)
  Overfull \hbox (15.52525pt too wide) in paragraph at lines 8--27
  [][]
  [1] (trymain.aux) )
  (see the transcript file for additional information)
  Output written on trymain.dvi (1 page, 5952 bytes).
  Transcript written on trymain.log.

Nevertheless using xdvi I can see that some of the textual elements
are improperly placed. Furthermore when I try to view it using
ghostscript, I get the following error message:

  $ dvips trymain -o trymain.ps
  This is dvipsk 5.55a Copyright 1986, 1994 Radical Eye Software
  ' TeX output 1997.06.25:1232' -> trymain.ps
  <texc.pro><pstricks.pro><pst-dots.pro><pst-node.pro><special.pro><color.pro>
  . [1] 
  $ gs trymain.ps 
  Aladdin Ghostscript 5.01 (1997-6-22)
  Copyright (C) 1997 Aladdin Enterprises, Menlo Park, CA.  All rights
  reserved.
  This software comes with NO WARRANTY: see the file PUBLIC for details.
  Error: /typecheck in --mul--
  Operand stack:
     --nostringval--   false
  Execution stack:
     %interp_exit   ()   --nostringval--   2   3   %oparray_pop
  --nostringval--   --nostringval--   --nostringval--   false   1
  %stopped_push   .runexec2   --nostringval--   --nostringval--
  --nostringval--   --nostringval--   2   %stopped_push
  --nostringval--   --nostringval--   2   3   %oparray_pop
  --nostringval--   --nostringval--   --nostringval--   false   1
  %stopped_push   --nostringval--   1   3   %oparray_pop
  --nostringval--   1   3   %oparray_pop   .runexec2   --nostringval--
  --nostringval--   --nostringval--   --nostringval--   2
  %stopped_push   --nostringval--   --nostringval--   --nostringval--
  --nostringval--   --nostringval--
  Dictionary stack:
     --dict:773/809--   --dict:0/20--   --dict:46/200--
  --dict:185/250--   --dict:64/200--   --dict:30/200--   --dict:2/16--
  Current allocation mode is local
  Current file position is 36140
  GS<1>

Trying to print the document is not successful either.

Thank you for your attention,

Chris


PS: I know that the version used here is a little bit old but I get
the same result with the last december version of LaTeX I've installed
at home.

-- 

////////////////////////////////////////////////////////////////////////
//                    Christophe Broult
// Voice: 02 31 56 59 43           Message box: 02 31 47 35 88 
//
// CNET Caen DSV/APM             | GREYC - CNRS-UPRESA 6072
// Centre National d'Etude des   | Groupe de Recherche en Informatique,
// des Telecom                   | Image, Instrumentation de Caen
// 42, rue des Coutures          | Universite Caen
// BP 6243                       | Esplanade de la Paix
// 14066 Caen cedex              | 14032 Caen Cedex
//                               | Fax: 02 31 56 58 14
////////////////////////////////////////////////////////////////////////

     "C makes it easy to shoot yourself in the foot.  C++ makes it
      harder, but when you do, it blows away your whole leg."

                               -- Bjarne Stroustrup on C++


-----------------------------------------------------------------------------
To [un]subscribe to this list, send mail to pstricks-request at mail.tug.org
Leave the subject line blank and in the body put the line
[un]subscribe <email-address>
For help, put the word "help" in the message body.
To obtain current archive, put the words "get current" in the message body.
-----------------------------------------------------------------------------



More information about the PSTricks mailing list