From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: keep latex overlays and run code blocks? Date: Sat, 1 Feb 2014 18:06:16 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec544ee10722ed404f160560c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9jdj-0006LP-8x for emacs-orgmode@gnu.org; Sat, 01 Feb 2014 18:06:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9jdh-0002BN-V3 for emacs-orgmode@gnu.org; Sat, 01 Feb 2014 18:06:19 -0500 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:33877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9jdh-0002BD-NV for emacs-orgmode@gnu.org; Sat, 01 Feb 2014 18:06:17 -0500 Received: by mail-pd0-f181.google.com with SMTP id y10so5566000pdj.40 for ; Sat, 01 Feb 2014 15:06:16 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --bcaec544ee10722ed404f160560c Content-Type: text/plain; charset=ISO-8859-1 Hi All, I have been using org-mode and emacs for lectures in an engineering course. I often have equations, and then source blocks that implement them. I can display the latex fragments, but when I try to run the source blocks, I have to type C-c C-c twice, because the first one removes the overlays, and the second one runs the block. that is pretty inconvenient, because then I have to put the overlays back on. It looks like this is hard-coded in org-ctrl-c-ctrl-c in line 20358 of org.el: (org-remove-latex-fragment-image-overlays) What do you think of creating another customizable variable to control this, with a default value to preserve the current behavior. then we could do this: (when org-remove-latex-fragment-image-overlays-CcCc-p (org-remove-latex-fragment-image-overlays)) Then, I could keep the equations up, and run and modify code blocks in class! John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu --bcaec544ee10722ed404f160560c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi All,

I have been using= org-mode and emacs for lectures in an engineering course. I often have equ= ations, and then source blocks that implement them. I can display the latex= fragments, but when I try to run the source blocks, I have to type C-c C-c= twice, because the first one removes the overlays, and the second one runs= the block. that is pretty inconvenient, because then I have to put the ove= rlays back on.

It looks like this is hard-coded in org-ctrl-c-ctrl-c in line 203= 58 of org.el:

=A0=A0=A0 (org-remove-latex-fragment-image-overlays)
What do you think of creating another customizable variable to = control this, with a default value to preserve the current behavior. then w= e could do this:

(when org-remove-latex-fragment-image-overlays-CcCc-p
=A0 (or= g-remove-latex-fragment-image-overlays))

Then, I co= uld keep the equations up, and run and modify code blocks in class!

John

--------------------= ---------------
John Kitchin
Associate Professor
Doherty Hall A207= F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>
--bcaec544ee10722ed404f160560c--