[pstricks] beamer, pstricks-add does not get along with listings

Juergen Rose rose at rz.uni-potsdam.de
Sat Aug 6 15:14:13 CEST 2011


Hi,

I have to files listings_pstricks-add_4.article.tex and
listings_pstricks-add_4.beamer.tex both are including TeX/main_4.tex,
which includes some other small files as TeX/pstricks-add_pspicture.tex
which generates a pstricks-add graphics and .TeX/bash_listing.tex which
includes a listing. The article version works like a charm:

rose at lynx:/home/rose/Txt/projects/Test_Project/Listings_pstricks-add_ML(107)$ pdflatex -shell-escape listings_pstricks-add_4.article.tex
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
 \write18 enabled.
entering extended mode
(./listings_pstricks-add_4.article.tex
..
Output written on listings_pstricks-add_4.article.pdf (1 page, 81178
bytes).
Transcript written on listings_pstricks-add_4.article.log.


The beamer version fails with:
rose at lynx:/home/rose/Txt/projects/Test_Project/Listings_pstricks-add_ML(108)$ pdflatex -shell-escape listings_pstricks-add_4.beamer.tex
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
 \write18 enabled.
entering extended mode
(./listings_pstricks-add_4.beamer.tex
..
No file listings_pstricks-add_4.beamer.aux.
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/share/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
! No room for a new \dimen .
\ch at ck ...\else \errmessage {No room for a new #3}
                                                  \fi 
l.1253 \newdimen\MPscratchDim
                              % will be assigned global
? 


If I comment in TeX/main_4.tex the lines

\usepackage{pstricks-add}
and 
\input{TeX/pstricks-add_pspicture.tex}

or

\usepackage{listings}
and
\input{TeX/bash_listing.tex}


then 'pdflatex -shell-escape listings_pstricks-add_4.beamer.tex'
generates the pdf file without problems, but both together does not
work.


Any hint, what can I do, that beamer, pstricks-add and listings play
together?

Regards Juergen

The files are in the attached archive.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Listings_pstricks-add_ML.tar.gz
Type: application/x-compressed-tar
Size: 2669 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20110806/0092e4fb/attachment.bin>


More information about the PSTricks mailing list