The function GetLatexTextFromLatexItShape which tries to convert a LaTeXiT display into an IguanaTex display creates a new temporary .pptx file with only the display in it by copying and pasting the display.
In doing so, it overwrites the current contents of the clipboard. We need to save the content of the clipboard (at least if it's text) before the processing, and put it back at the end.
The function GetLatexTextFromLatexItShape which tries to convert a LaTeXiT display into an IguanaTex display creates a new temporary .pptx file with only the display in it by copying and pasting the display. In doing so, it overwrites the current contents of the clipboard. We need to save the content of the clipboard (at least if it's text) before the processing, and put it back at the end.