From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: Re: Is it possible to "properly" indent inside latex fragments? Date: Wed, 1 Feb 2017 20:05:49 +0100 Message-ID: <22674.12685.803652.265353@frac.u-strasbg.fr> References: <22662.9637.821790.492211@frac.u-strasbg.fr> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZ0EM-000862-9T for emacs-orgmode@gnu.org; Wed, 01 Feb 2017 14:06:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZ0EH-00024P-Bs for emacs-orgmode@gnu.org; Wed, 01 Feb 2017 14:06:10 -0500 Received: from mailhost.u-strasbg.fr ([130.79.222.211]:60533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZ0EH-00020c-52 for emacs-orgmode@gnu.org; Wed, 01 Feb 2017 14:06:05 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Charles C. Berry" Cc: emacs-orgmode@gnu.org, Alain Cochard Charles C. Berry writes on Mon 23 Jan 2017 08:44: > With export blocks you can get close. >=20 > If you type =3DC-c '=3D inside the following export block, you will = get the=20 > contents in a latex buffer. Then indentation and other LATEX/P mode=20= > operations are available. When you exit with another =3DC-c '=3D the= =20 > indentation is preserved. >=20 > #+BEGIN=5FEXPORT latex > \begin{displaymath} > \begin{split} > a &=3D b \\ > &+c > \end{split} > \end{displaymath} > #+END=5FEXPORT >=20 >=20 > HTH, >=20 > 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! Regards. --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20=