Hello, alain.coch...@unistra.fr 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