From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Hofer Subject: preview latex fragment from source code buffer Date: Mon, 04 Mar 2013 18:46:04 +0100 Message-ID: <87k3pnrrc3.wl%sebastian.hofer@univie.ac.at> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCZSk-0003ji-Kb for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 12:46:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCZSi-0004jG-3D for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 12:46:10 -0500 Received: from mail-bk0-f48.google.com ([209.85.214.48]:42938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCZSh-0004j8-Sn for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 12:46:08 -0500 Received: by mail-bk0-f48.google.com with SMTP id jf20so2551928bkc.35 for ; Mon, 04 Mar 2013 09:46:06 -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 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