emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] preview latex fragment from source code buffer


From: Sebastian Hofer
Subject: Re: [O] preview latex fragment from source code buffer
Date: Mon, 04 Mar 2013 20:40:24 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.1.50 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Mon, 04 Mar 2013 19:57:42 +0100,
Bastien wrote:
> 
> Hi Sebastian,
> 
> Sebastian Hofer <address@hidden> writes:
> 
> > 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
> 
> I added an entry in Org hacks:
> http://orgmode.org/worg/org-hacks.html#sec-1-11-1
> 
> I don't think it should be in core, as it is a small conveniency
> that can be surprising -- the user could expect the preview to
> happen in the src buffer, while it happens in the Org buffer...
> also, adding more keybinding like this may raise the issue of
> conflicting keybinding with the current src buffer mode.
> 
> Thanks for sharing this!

Okay, thanks for adding it to worg!

Sebastian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]