From: Sebastian Hofer <sebhofer@gmail.com>
To: emacs-orgmode@gnu.org
Subject: preview latex fragment from source code buffer
Date: Mon, 04 Mar 2013 18:46:04 +0100 [thread overview]
Message-ID: <87k3pnrrc3.wl%sebastian.hofer@univie.ac.at> (raw)
I missed the functionality to preview a latex fragment directly from
the latex source buffer. Fortunately this functionality is trivial to
add. I've been using it for a while now and find it very convenient,
so I suggest adding it to org.
#+BEGIN_SRC
(define-key org-src-mode-map "\C-c\C-x\C-l" 'org-edit-preview-latex-fragment)
(defun org-edit-preview-latex-fragment ()
"Write latex fragment from source to parent buffer and preview it."
(interactive)
(org-src-in-org-buffer (org-preview-latex-fragment)))
#+END_SRC
Best regards
Sebastian
next reply other threads:[~2013-03-04 17:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 17:46 Sebastian Hofer [this message]
2013-03-04 18:57 ` preview latex fragment from source code buffer Bastien
2013-03-04 19:40 ` Sebastian Hofer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k3pnrrc3.wl%sebastian.hofer@univie.ac.at \
--to=sebhofer@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.