This patch adds the possibility to inlude more than a single graph in the output of the cairolatex and epslatex terminals in standalone mode. My main motivation for this is to process some of the demo scripts in order to verify the terminal's output. But this might come in handy for other purposes as well.