emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* keep latex overlays and run code blocks?
@ 2014-02-01 23:06 John Kitchin
  0 siblings, 0 replies; only message in thread
From: John Kitchin @ 2014-02-01 23:06 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1426 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-01 23:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-01 23:06 keep latex overlays and run code blocks? John Kitchin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).