From 1d9d9e9d356b0c64ef8fc2710e5c63506e839049 Mon Sep 17 00:00:00 2001 From: Leon Rische Date: Tue, 8 Sep 2020 02:17:04 +0200 Subject: Improve latex display in cloze holes --- org-fc.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'org-fc.el') diff --git a/org-fc.el b/org-fc.el index c291a6f..d42e42d 100644 --- a/org-fc.el +++ b/org-fc.el @@ -833,6 +833,7 @@ CURRENT-INDEX is the index of the current position in the list of all holes." ;; "[...hint]" and set the font for the whole hole. ((= i current-index) (org-fc-hide-region hole-beg text-beg "") + (remove-overlays text-beg text-end) (setq org-fc-type-cloze--text (org-fc-make-overlay text-beg text-end 'invisible t)) (org-fc-hide-region text-end hint-beg "") @@ -879,6 +880,7 @@ Processes all holes in the card text." "Flip a cloze card." (org-show-children) (overlay-put org-fc-type-cloze--text 'invisible nil) + (org-fc-show-latex) ;; Remove all overlays in the region of the hint to get rid of ;; latex overlays in the hint, then hide the region again. (let* ((hint-start (overlay-start org-fc-type-cloze--hint)) -- cgit v1.2.3