[pstricks] pst-pdf and readdata: long compilation time

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun May 10 14:35:56 CEST 2009

Antoine Pairet schrieb:

> The first category of \readdata should only be read the during the first
> run while the others should be read each time. I have imagined the
> following solution which works well. What do you think about it? Would
> there be a simpler/more elegant method to accomplish this task? What
> about the definition of a new optional arg for the command \readdata
> which test whether PDFOutput = 1, and if yes, does not perform the read?

\ifpdf\else\readdata ...\fi

>  * defining a new environment \readPSTricks that does the exactly the
> same thing as \readdata but which is disabled in the Makefile for all
> but the first run:
> \newcommand{\readPSTricks}[3]{
> 	\readdata[#1]{#2}{#3}
> }

must be \providecommand\readPSTricks[3], otherwise you'll get an
error with the pdflatex run where \readPSTricks is already defined.

> pdflatex "\AtBeginDocument{\def\readPSTricks#1#2#3{} \def\listplot#1{}}
> \input{mainTest.tex}"


More information about the PSTricks mailing list