adds support for multiple plots in one .tex files