From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: fill paragraph: math and latex environments Date: Tue, 02 Jul 2013 19:16:37 +0200 Message-ID: <87zju4opai.fsf@gmail.com> References: <87mx0osk29.fsf@gmail.com> <878vc8h33x.fsf@gmail.com> <874nmwrwsp.fsf@gmail.com> <87wqzqdv1u.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu4Bp-0007Wk-94 for emacs-orgmode@gnu.org; Tue, 02 Jul 2013 13:16:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uu4Bm-0007HO-OG for emacs-orgmode@gnu.org; Tue, 02 Jul 2013 13:16:29 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:48151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu4Bm-0007HI-IL for emacs-orgmode@gnu.org; Tue, 02 Jul 2013 13:16:26 -0400 Received: by mail-wi0-f180.google.com with SMTP id c10so4410217wiw.1 for ; Tue, 02 Jul 2013 10:16:25 -0700 (PDT) In-Reply-To: (Paul Stansell's message of "Mon, 1 Jul 2013 21:45:32 +0000 (UTC)") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Paul Stansell Cc: emacs-orgmode@gnu.org Hello, Paul Stansell writes: > Nicolas Goaziou gmail.com> writes: >> Making \[...\] an element would mean that \[...\] cannot exist anymore >> within a paragraph. I'm not sure it's worth it. >> >> Also, I think it's good, in this case, to have both an inlined and >> a non-inlined version for the same thing. > > In Lamport's book on Latex he explains that \[...\] is for display style > maths, that is, for maths that is not inside a paragraph but presented on > it's own line. Inside a paragraph one should use $...$ or \(...\) as they > are for inline equations (and Latex treats them the same). For display > style maths Latex uses > > \begin{displaymath} > ... > \end{displaymath} > > and, for less typing, > > \[ > ... > \] > > and both are treated the same, ie., both produce the exact same output in > the processed latex document. > > This being the case, my wish would be to see org mode treat > > \[ > ... > \] > > the same as > > \begin{displaymath} > ... > \end{displaymath} > > and not fill past it's boundaries. If we allow \[...\] constructs to be an element, they cannot be recognized as such within paragraphs. So Some text \[1+1\] and some other text will not be recognized anymore, even though any latex editing mode supports it. Again, I think it's not worth loosing it. Also, using \begin{...}...\end{...} environments is not really an issue with editing facilities in Emacs (e.g., yasnippets). Regards, -- Nicolas Goaziou