[pstricks] \psvectorian or \pstricks-add question

Christoph Bersch usenet at bersch.net
Fri Nov 4 10:38:14 CET 2011


Hi,

On 03.11.2011 21:32, pacotomi wrote:
> Hi,
> I have tried to compile e02.tex found here
> http://melusine.eu.org/syracuse/pstricks/vectorian/
>
> Very fine indeed!
[...]
> With pstricks-add the log says
> ************************
> ### This is /usr/texbin/simpdftex, Version 20070809
> ### /usr/texbin/latex essai
> This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
>   restricted \write18 enabled.
> entering extended mode
> (./essai.tex
> ......
> ......
> (/Users/myname/Library/texmf/tex/latex/psvectorian/psvectorian63.tex
> Runaway definition?
> ->0.8 SLW 0  setgray  -30.58096 32.81165 moveto  0.8 SLW 0  setgray  \ETC.
> ! TeX capacity exceeded, sorry [main memory size=3000000].
> \pst at code ...ef /t u def getdL add } repeat } def
>                                                    /GetArrowPos { /ende 0.5  ...
> l.154 }

you run out of main memory with pstricks-add. All postscript code is 
written out with \special macros, and its overall size is limited by the 
main memory. The problem is, that pstricks-add redefines some parts of 
\psbezier (which is used a lot in psvectorian) to make use of 
ArrowInside, but that also blows up the code a lot.

You can either increase the main memory size, or reset parts of the 
\psbezier redefinition. The required main memory is still larger than 
without pstricks-add, but much less:

\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[frenchb]{babel}
\usepackage[leqno]{amsmath}
\usepackage[margin=2.5cm]{geometry}
\usepackage[charter]{mathdesign}
\usepackage{graphics}
\usepackage[svgnames]{xcolor}
\usepackage{psvectorian}
\usepackage{pstricks-add}
%
% reset definition of OpenBezier, you can also do that only for parts
% of the document
\makeatletter
\def\tx at OpenBezier{ OpenBezier }
\makeatother
\pagestyle{empty}
\begin{document}

\begin{pspicture}(-5,-5)(5,5)
\renewcommand*{\psvectorianDefaultColor}{blue}%
\psframe[linewidth=0.1pt,fillstyle=solid,fillcolor=Beige](-5,-5)(5,5)
% haut+bas
\rput[tl](-3,5){\psvectorian[width=6cm]{71}}
\rput[bl](-3,-5){\psvectorian[width=6cm,flip]{71}}
%coins
\rput[tl](-5,5){\psvectorian[width=2cm]{63}}
\rput[tr](5,5){\psvectorian[width=2cm,mirror]{63}}
\rput[bl](-5,-5){\psvectorian[width=2cm,flip]{63}}
\rput[br](5,-5){\psvectorian[width=2cm,flip,mirror]{63}}
% côtés
\rput[bl]{-90}(-5,3){\psvectorian[width=6cm]{46}}
\rput[bl]{90}(5,-3){\psvectorian[width=6cm]{46}}
%texte+soulignement+chapeau
\rput(0,0){\Huge Ornaments}
\rput[t](0,-0.5){\psvectorian[width=5cm]{75}}
\rput[b](0,0.5){\psvectorian[width=5cm]{69}}
% oiseaux
\rput[tr]{-30}(-1,2.5){\psvectorian[width=2cm]{57}}
\rput[tl]{30}(1,2.5){\psvectorian[width=2cm,mirror]{57}}
\end{pspicture}%

\end{document}


Christoph


More information about the PSTricks mailing list