[pstricks] [Fwd: Re: [VTeX] fancybox and pstricks]
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Sun Apr 27 23:02:04 CEST 2003
Denis, what do you say to Michaels suggestion for
pstricks.con?
The solution with \immediate\special{header=pstricks.pro}
worked well for me.
Herbert
-------- Ursprüngliche Nachricht --------
Betreff: Re: [VTeX] fancybox and pstricks
Datum: Sun, 27 Apr 2003 16:47:44 -0400
Von: "MicroPress Inc." <support at micropress-inc.com>
An: Herbert Voss <Herbert.Voss at alumni.TU-Berlin.DE>
CC: ntg-vtex at ntg.nl
This is a nice one.
Here is what is happening:
tx at Dict is defined in pstricks.pro; and the reason why it seems to be
undefined is that pstricks.pro is loaded *after* fancybox executes.
Specifically, the headers are loaded "\AtBeginDvi" (see the pstricks.con
file); but fancybox outputs before the first "DVI" page is processed.
Notice that this is never a problem with multi-pass processing, like DVIPS,
or like VTeX in non-GeX PostScript mode (-$s); it is a problem in a
single-pass processing (-ox2 -$s OR -ox2 -$p) where everything is processed
right away, and fancybox specials come first.
Now, a simple workaround is to force the header to be loaded; add to the doc
preamble
before fancybox code
\immediate\special{header=pstricks.pro}
You may also try to change pstricks.con to use \immediate\special in
\pstheader. This does work for your example, and __I think__ it may always
work (this kind of change needs to be tested on lots of pstricks examples.)
At 10:49 AM 4/27/03 +0200, you wrote:
>Hello,
>
>I have the example:
>
>\documentclass[a4paper]{article}
>\usepackage{pstcol}
>\usepackage{fancybox}
>\fancyput(17.5cm,2.5cm){%
> \textcolor{yellow}{\rule[-\paperheight]{1cm}{\paperheight}}%
>% \psframe[linestyle=none,%
>% fillstyle=solid,fillcolor=yellow](1,-\paperheight)%
>}
>\makeatletter
>\begin{document}
>1111
>\end{document}
>
>
>vtex works well, but when I use the \psframe macro, then I
>get the following error. Seems to be a problem of fancybox,
>which is a rather old package, but tx at Dict is defined in
>pstricks, which is load by pstcol.
>
>Herbert
>
>
>
>
>voss at maria:/tmp/kde-voss> vlatex test.tex
>MicroPress (R) vTeX/Linux, version 8.02
>Copyright (C) 1988-2002 by MicroPress. All rights reserved.
>[Personal non-commercial use allowed.]
>
>[...]
>
>GeX initialization completed.
>! PostScript Error: Undefined name [tx at Dict]
> VMUSAGE 131368
>OStack:
>
>=============
>XStack:
>0000 f3|0000| <file>
>
>=============
>! PostScript Error: Undefined name [tx at Dict]
> VMUSAGE 131368
>OStack:
>
>=============
>XStack:
>
>=============
>! PS interpreter error, code=21
> ( Undefined name [tx at Dict]).
>\fb at outputpage ...hipout \box \@outputbox
> \global \@colht \textheight...
>l.11.14(/tmp/kde-voss/test.tex)
> > \end{document}
>
>_______________________________________________
>ntg-vtex mailing list
>ntg-vtex at ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-vtex
>
>
---------------------------------------------
Michael Vulis
MicroPress
mailto://support@micropress-inc.com
http://www.micropress-inc.com
More information about the PSTricks
mailing list