|
From: | Anders Johansson |
Subject: | Re: [O] Bug: Problems with sub/super-script when using: org-cdlatex + org-pretty-entities + org-catch-invisible-edits |
Date: | Sun, 23 Feb 2014 12:50:30 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
Hi, I used the configuration: org-catch-invisible-edits 'show org-pretty-entities ttogether with org-cdlatex. This breaks the insertion of subscripts and superscripts through org-cdlatex because _{} is fontified and the {} are hidden so typing for example: "a _ bc" results in "a_{b}c" (or sometimes "a_bc", but should be "a_{bc}") and gives the message "Unfolding invisible region around point before editing".Setting org-catch-invisible-edits to nil let's cdlatex do it's work so I guess an easy solution would be to "let" that in org-cdlatex-underscore-caret.Cheers, Anders Johansson
Hi,I realized that my solution won't work since "org-check-before-invisible-edit" does it's work after "org-cdlatex-underscore-caret" has called "cdlatex-sub-superscript" and inserted "_{}".
Maybe then org-catch-invisible-edits should be nil all the time in org-cdlatex-mode? But this would be unexpected. Maybe this can be treated as a special case in "org-check-before-invisible-edit" in some way?
Cheers, Andes Johansson
[Prev in Thread] | Current Thread | [Next in Thread] |