extract tikz figures to figure dir