Added support for pasting generated TeX back in.

For when we lose a graph that we still have the TeX for in a paper and
need to edit it easily.