[pstricks] TeX-Macro in PS coordinates?

Plamen Tanovski pgt at arcor.de
Mon Nov 15 23:11:23 CET 2010


Hi,

Is it possible to use TeX macros in PS coordinates? I use some
coordinates with postscript code, but want to include some parameters
as TeX macro:

\documentclass{article}
\usepackage{pstricks}
\def\paramet{12}
\begin{document}
\SpecialCoor
\begin{pspicture}(2,2)
\psdot(! \paramet 2)
\end{pspicture}
\end{document}

LaTeX goes fine, but viewing the code with gs produces an error:

Error: /stackunderflow in --exch--
Operand stack:
   3471.23
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1150/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--   --dict:175/300(L)--   --dict:38/200(L)--   --dict:109/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.71: Unrecoverable error, exit code 1

 *File List*
 article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pstricks.sty    2010/09/18 v0.47 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2010/09/16 v2.12 `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2006/11/18 v2.5f package option processing (HA)
 xkeyval.tex    2006/11/18 v2.5f key=value parser (HA)
  pst-fp.tex    2010/09/16 v2.12 `PST-fp' (hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2005/02/03 v1.3 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)

best regards

-- 
Plamen Tanovski
Prager Str. 125, 04317 Leipzig
Tel. (03 41) 3 08 57 60


More information about the PSTricks mailing list