update latex template for pgf figure