From 710ccaace23b8893caaa096486f50dbf5b3ee0c6 Mon Sep 17 00:00:00 2001 From: John Miller Date: Tue, 30 Jun 2015 16:25:50 -0500 Subject: [PATCH] Fix potential issues saving Latex Output Sometimes ein will not save latex output properly. This is an attempt to avoid that situation. Also some updates to gitignore. --- .gitignore | 2 ++ lisp/ein-cell.el | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e472fde..8d347fe 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ tests/test-batch-log.log lisp/test-batch-log.log *.pyc test-batch-log.log +*.ipynb~ +Makefile~ diff --git a/lisp/ein-cell.el b/lisp/ein-cell.el index 9f9c1fb..74a536a 100644 --- a/lisp/ein-cell.el +++ b/lisp/ein-cell.el @@ -1057,7 +1057,8 @@ prettified text thus be used instead of HTML type." ((and (equal otype "execute_result") (or (equal prop :text) - (equal prop :html))) + (equal prop :html) + (equal prop :latex))) (ein:log 'debug "Fixing execute_result (%s?)." otype) (let ((new-prop (cdr (ein:output-property-p prop)))) (push (list new-prop (list value)) new-output)