pandoc to standalone pandoc. Tikz are written separately