From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: keep latex overlays and run code blocks?
Date: Sat, 1 Feb 2014 18:06:16 -0500 [thread overview]
Message-ID: <CAJ51EToyVU2_xuXAo9sT3OmywJ-k_Uyxe_0Y3BphjXXVN0cPGQ@mail.gmail.com> (raw)
[-- 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 --]
reply other threads:[~2014-02-01 23:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ51EToyVU2_xuXAo9sT3OmywJ-k_Uyxe_0Y3BphjXXVN0cPGQ@mail.gmail.com \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).