diff options
author | Leon Rische <leon.rische@me.com> | 2020-09-08 02:17:04 +0200 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-09-08 02:17:04 +0200 |
commit | 1d9d9e9d356b0c64ef8fc2710e5c63506e839049 (patch) | |
tree | 716fc4b6b20080e8dd8aef59d7b5b0aa9c51a562 /org-fc.el | |
parent | 3a06926baedf43d899558173f9b14ca74eda9db2 (diff) |
Improve latex display in cloze holes
Diffstat (limited to 'org-fc.el')
-rw-r--r-- | org-fc.el | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)) |