Test for very large cells in latex

ipython#5616 (PDF from latex is hundreds of pages)
Merge pull request #5616 from echatelet/fix-4942-n

Fix 4942 (torture notebook)