Put TeX export in popup instead of on clipboard

Clipboard seems to not be working right on mac.