|How to produce a PDF+TeX file pair|
|Pro and contra|
In the examples before we used the PGF output mechanism built
into the octpgfpl package. All graphics instructions are written as
PGF instructions to the output file, they are processed each time
pdflatex is run.
The DK tools package in version 3.16.0 and above (see http://dktools.sourceforge.net) contains the plpdftex program, an additional output driver for the octpgfpl module. It produces a *.pdf/*.tex file pair like known from other programs (i.e. fig2lat, fig2dev or GnuPlot). The *.pdf file contains all non-text graphics elements. The *.tex file includes the *.pdf file and typesets text labels on top of it. So pdflatex only has to handle the text labels, only minimal processing is needed while reading the *.pdf file. This might speed up processing, especially if there are many diagrams in a LaTeX document.
Note: You should use plpdftex from DK tools version 3.18.6 and above only. Previous versions did not align the x axis tics values correctly. Now we use \smash for correct baseline alignment.