PGF/TikZ Manual | PGFplots | TikZ Editor

TikZ and PGF Manual

The System Layer

119 Design of the System Layer

119.1 Driver Files

The pgf system layer mainly consists of a large number of commands starting with \pgfsys@. These commands will be called system commands in the following. The higher layers “interface” with the system layer by calling these commands. The higher layers should never use \special commands directly or even check whether \pdfoutput is defined. Instead, all drawing requests should be “channeled” through the system commands.

The system layer is loaded and set up by the following package:

  • File pgf.cfg

  • This file should set up the command \pgfsysdriver correctly. If \pgfsysdriver is already set to some value, the driver normally should not change it. Otherwise, it should make a “good guess” at which driver will be appropriate.

The currently supported backend drivers are discussed in Section 10.2.

119.2 Common Definition Files

Some drivers share many \pgfsys@ commands. For the reason, files defining these “common” commands are available. These files are not usable alone.

  • File pgfsys-common-postscript

  • This file defines some \pgfsys@ commands so that they produce appropriate PostScript code.

  • File pgfsys-common-pdf

  • This file defines some \pgfsys@ commands so that they produce appropriate pdf code.