Welcome to the UK List of
TeX Frequently Asked Questions
on the Web

Searching

The index of Frequently Asked Questions about TeX is searchable.

Please enter your keyword here:   then press here: ,    or:
Google

Why can’t I load PicTeX?

PicTeX is a resource hog; fortunately, most modern TeX implementations offer generous amounts of space, and most modern computers are pretty fast, so users aren’t too badly affected by its performance.

However, PicTeX has the further unfortunate tendency to fill up TeX’s fixed-size arrays — notably the array of 256 ‘dimension’ registers. This is a particular problem when you’re using pictex.sty with LaTeX and some other packages that also need dimension registers. When this happens, you will see the TeX error message:

! No room for a new \dimen.

There is nothing that can directly be done about this error: you can’t extend the number of available \dimen registers without extending TeX itself. e-TeX and Omega both do this, as does MicroPress Inc’s VTeX.

It’s actually quite practical (with most modern distributions) to use e-TeX’s extended register set: use package etex (which comes with e-TeX distributions) and the allocation mechanism is altered to cope with the larger register set: PicTeX will now load.

If you’re in some situation where you can’t use e-TeX, you need to change PicTeX; unfortunately PicTeX’s author is no longer active in the TeX world, so one must resort to patching. There are two solutions available.

The ConTeXt module m-pictex.tex (for Plain TeX and variants) or the corresponding LaTeX m-pictex package provide an ingenious solution to the problem based on hacking the code of \newdimen itself.

Alternatively, Andreas Schrell’s pictexwd and related packages replace PicTeX with a version that uses 33 fewer \dimen registers; so use pictexwd in place of pictex (either as a LaTeX package, or as a file to read into Plain TeX).

And how does one use PicTeX anyway, given that the manual is so hard to come by? Fortunately for us all, the MathsPic system may be used to translate a somewhat different language into PicTeX commands; and the MathsPic manual is free (and part of the distribution). MathsPic is available either as a Basic program for DOS, or as a Perl program for other systems (including Windows, nowadays).

etex.sty
macros/latex/contrib/etex-pkg (or browse the directory); catalogue entry
m-pictex.sty
Distributed as part of macros/context/current/cont-tmf.zip; catalogue entry
m-pictex.tex
Distributed as part of macros/context/current/cont-tmf.zip; catalogue entry
MathsPic
graphics/mathspic (or browse the directory); catalogue entry
pictexwd.sty
Distributed as part of graphics/pictex/addon (or browse the directory); catalogue entry


Go to previous question, or next question

Go to FAQ home.

URL for this question: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=usepictex

Comments, suggestions, or error reports? - see “how to improve the FAQ”.

This is FAQ version 3.27, released on 2013-06-07.