I have a rather big notebook which I would like to export to Latex. Upon doing the naive Save As -> tex file, it seems that TeXStudio is not able to handle the resulting file. It is very laggy, the buffer is overloaded (I get multiple error message on that end if I try to compile it) and the resulting pdf is corrupted. There does not seem to be any Latex error as per se though. I tried unsuccessfully on TeXmaker as well. How can I overcome this technical difficulty?