emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Patrick Bahr <pa-ba@arcor.de>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: hello world <asymptotic.freedom@googlemail.com>, emacs-orgmode@gnu.org
Subject: Re: latex wrap
Date: Wed, 01 Jul 2009 02:16:45 +0200	[thread overview]
Message-ID: <4A4AAAED.5070701@arcor.de> (raw)
In-Reply-To: <AC02A19D-232B-4B4D-945E-0FB3502747EE@gmail.com>

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

  parent reply	other threads:[~2009-07-01  0:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26 21:13 latex wrap hello world
2009-06-27  7:00 ` Carsten Dominik
2009-06-27  7:25   ` Josef
2009-07-01  0:16   ` Patrick Bahr [this message]
     [not found]     ` <FA69965F-76E7-45D5-A3D3-5479C08A49C1@gmail.com>
2009-07-01  8:20       ` Patrick Bahr
2009-07-01  9:46         ` Carsten Dominik
2009-08-28 13:21         ` Carsten Dominik
2009-08-28 16:29         ` Samuel Wales
2009-08-31  5:35           ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A4AAAED.5070701@arcor.de \
    --to=pa-ba@arcor.de \
    --cc=asymptotic.freedom@googlemail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).