A simple routine to get a standalone pdf from TikZ code.