From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Bahr Subject: Re: latex wrap Date: Wed, 01 Jul 2009 02:16:45 +0200 Message-ID: <4A4AAAED.5070701@arcor.de> References: <30a87b20906261413g66d3b5axe0086670e9d235f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLnVR-0005X9-80 for emacs-orgmode@gnu.org; Tue, 30 Jun 2009 20:16:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLnVL-0005Vg-W5 for emacs-orgmode@gnu.org; Tue, 30 Jun 2009 20:16:56 -0400 Received: from [199.232.76.173] (port=39781 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLnVL-0005VU-Rv for emacs-orgmode@gnu.org; Tue, 30 Jun 2009 20:16:51 -0400 Received: from mail-in-05.arcor-online.net ([151.189.21.45]:46996) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLnVL-000643-7A for emacs-orgmode@gnu.org; Tue, 30 Jun 2009 20:16:51 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: hello world , emacs-orgmode@gnu.org Hi Carsten, On 27.06.2009 09:00 Carsten Dominik wrote: > > On Jun 26, 2009, at 11:13 PM, hello world wrote: > >> bla bla >> \begin{equation} >> 1+1=2 >> \end{equation} >> >> into >> >> bla bla \begin{equation} 1+1=2 \end{equation} > > Why would you press M-q in such a location? This behaviour is also bothering me. The example may not illustrate the problem explicitly enough. Here is a more elaborate one: I often find myself writing a paragraph that includes an equation like in this example: ----------------------------------------------------------------------- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. \[ a^2 + b^ = c^2 \] Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. ----------------------------------------------------------------------- When writing such a paragraph you need to use M-q. In AUCTeX this is no problem. You easily get the above paragraph using M-q. In org-mode, however, you get this: ----------------------------------------------------------------------- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. \[ a^2 + b^ = c^2 \] Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. ----------------------------------------------------------------------- This is quite confusing. A possible workaround to this problem is to insert newlines around the equation like this: ----------------------------------------------------------------------- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. \[ a^2 + b^ = c^2 \] Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. -----------------------------------------------------------------------+ However, the equation is then put into a new paragraph which is not intended here: The resulting PDF contains additional spacing around the equations. The intention that this should be a single paragraph is not achieved. It would be very nice to have the same behaviour in this setting as AUCTeX. Cheers, Patrick