emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Is it possible to "properly" indent inside latex fragments?


From: Alain . Cochard
Subject: [O] Is it possible to "properly" indent inside latex fragments?
Date: Mon, 23 Jan 2017 16:47:49 +0100

Hello.  

This is what I obtain if I type each line followed by <Enter> and then
<TAB> in an org file:

* foo
  \begin{displaymath}
  \begin{split}
  a &= b \\
  &+c  
  \end{split}
  \end{displaymath}

If I highlight everything and use 'M-x indent-region' or 'M-x
org-indent-region', it does not change.

Instead, what I would like to get is:

* foo
  \begin{displaymath}
    \begin{split}
      a &= b \\
      &+c
    \end{split}
  \end{displaymath}

(That specific indentation for the latex instructions is what I obtain
within a .tex file.)

Is it possible?  
Thank you.

(I did spend quite some time searching for a solution...)

-- 
EOST (École et Observatoire des Sciences de la Terre) 
IPG (Institut de Physique du Globe) | address@hidden
5 rue René Descartes   [bureau 106] | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France    | Fax:   +33 (0)3 68 85 01 25     


reply via email to

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