Workaround the limited support for Tiks.

We now create valid PDF to render tiksfigure. However, we need to
consider the commands configured in the preamble of the document
instead of the hardcoded ones we currently use in graphics.c.