[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Is it possible to "properly" indent inside latex fragments?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Is it possible to "properly" indent inside latex fragments? |
Date: |
Wed, 01 Feb 2017 21:34:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hello,
address@hidden writes:
> Charles C. Berry writes on Mon 23 Jan 2017 08:44:
>
> > With export blocks you can get close.
> >
> > If you type =C-c '= inside the following export block, you will get the
> > contents in a latex buffer. Then indentation and other LATEX/P mode
> > operations are available. When you exit with another =C-c '= the
> > indentation is preserved.
> >
> > #+BEGIN_EXPORT latex
> > \begin{displaymath}
> > \begin{split}
> > a &= b \\
> > &+c
> > \end{split}
> > \end{displaymath}
> > #+END_EXPORT
> >
> >
> > HTH,
> >
> > Chuck
>
> Thank you very much. Might indeed be helpful on occasion, although it
> would be rather inconvenient to use it for each such latex fragment.
>
> I had assumed that if Org is able to recognize a latex fragment, it
> should be able to use the appropriate indentation (and other latex
> specific stuff).
>
> I can only hope this will be available in the future!
For the record, i implemented `org-edit-latex-environment'.
Basically, it means you can edit the LaTeX code in a new buffer, using
latex-mode, with C-c ', without using the trick above.
Regards,
--
Nicolas Goaziou