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 10:20:27 +0200	[thread overview]
Message-ID: <4A4B1C4B.2000605@arcor.de> (raw)
In-Reply-To: <FA69965F-76E7-45D5-A3D3-5479C08A49C1@gmail.com>

Hello Carsten,

On 01.07.2009 08:56 Carsten Dominik wrote:

> Another work-around would be
>
> 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.


Nice idea. This kind of works. Unfortunately, if the paragraph is indented the
hashes still have to be at column zero:

-------------------------------------------------------------------------
      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 still OK and for the upper part of the paragraph M-q works well.
However, hitting M-q in the lower part yields:

-------------------------------------------------------------------------
      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 a problem itself. Text sneaking into a comment line upon hitting M-q is
not an expected behaviour -- at least not for me.

So the only acceptable workaround I know is to insert blank lines before using
M-q and to remove them afterwards.

Cheers,
Patrick

  parent reply	other threads:[~2009-07-01  8:20 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
     [not found]     ` <FA69965F-76E7-45D5-A3D3-5479C08A49C1@gmail.com>
2009-07-01  8:20       ` Patrick Bahr [this message]
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=4A4B1C4B.2000605@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).