[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-edit-special on "inline latex"
From: |
Bastien |
Subject: |
Re: [O] org-edit-special on "inline latex" |
Date: |
Mon, 24 Dec 2012 02:02:16 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Hi Jonas,
address@hidden (Jonas Hörsch) writes:
> i recently switched from using the verbose
>
> #+begin_latex
> \begin{eqnarray}
> 8 &=& 7 + 1
> \end{eqnarray}
> #+end_latex
>
> to just the "inline version"
>
> \begin{eqnarray}
> 8 &=& 7 + 1
> \end{eqnarray}
>
> which is: shorter to write thus also clearer to read and as a welcome
> gadget even exports to html as well.
>
> but i see also two drawbacks:
> 1. syntax highlighting is lost
> 2. org-edit-special (C-') doesn't switch to auctex anymore[fn:1]
>
>
> it would be fantastic if it was possible for org-edit-special to work on
> an enclosing \begin -- \end region the same way it did on a latex block,
> i.e. show a new window with the snippet in latex mode.
The support for inline \begin{...} is a convenient hack, but it's
a hack and adding features of the #+begin_src/latex blocks to it
would only make it more hackish. I suggest you use a code block
and C-c ' when necessary.
Best,
--
Bastien