all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Florian Lindner <mailinglists@xgm.de>
To: help-gnu-emacs@gnu.org
Subject: align-regexp not working as intended
Date: Mon, 18 Mar 2013 11:15:25 +0100	[thread overview]
Message-ID: <CAJtBfr_cMhsqKyrKSW5eM5xb4zb4CjmwxUk5jDcKEwSy03BfAg@mail.gmail.com> (raw)

Hello,

on my Emacs 24.2.1 7 / Arch align-regexp is not working like I expect it to:

I have a latex table:

    & $C_D$ & $C_L$ & $C_M$ & $C_D$ & $C_L$ & $C_M$ & $C_D$ & $C_L$ &
$C_M$ \\ \hline
    5-Spoke & $0.640$ & $0.396$ & $\approx 0$ & $0.599$ & $0.394$ &
$0.017$ & $0.599$ & $0.356$ & $0.019$ \\
    7-Spoke & $0.646$ & $0.407$ & $0.0017$ & $0.592$ & $0.377$ &
$0.0167$ & $0.606$ & $0.349$ & $0.0280$ \\
    DA Wheel & $0.649$ & $0.421$ & $-0.0004$ & $0.607$ & $0.392$ &
$0.0145$ & $0.614$ & $0.384$ & $0.024$ \\
    GenWheel Open & $0.640$ & $0.330$ & $0.0012$ & $0.613$ & $0.253$ &
$0.018$ & $0.660$ & $0.201$ & $0.031$ \\
    GenWheel Closed & $0.617$ & $0.302$ & $0.0015$ & $0.579$ & $0.280$
& $0.0206$ & $0.580$ & $0.281$ & $0.0206$ \\

This should be aligned at the &: M-x align-regexp & with the part
above as active region gives me:

                    & $C_D$ & $C_L$ & $C_M$ & $C_D$ & $C_L$ & $C_M$ &
$C_D$ & $C_L$ & $C_M$ \\ \hline
    5-Spoke         & $0.640$ & $0.396$ & $\approx 0$ & $0.599$ &
$0.394$ & $0.017$ & $0.599$ & $0.356$ & $0.019$ \\
    7-Spoke         & $0.646$ & $0.407$ & $0.0017$ & $0.592$ & $0.377$
& $0.0167$ & $0.606$ & $0.349$ & $0.0280$ \\
    DA Wheel        & $0.649$ & $0.421$ & $-0.0004$ & $0.607$ &
$0.392$ & $0.0145$ & $0.614$ & $0.384$ & $0.024$ \\
    GenWheel Open   & $0.640$ & $0.330$ & $0.0012$ & $0.613$ & $0.253$
& $0.018$ & $0.660$ & $0.201$ & $0.031$ \\
    GenWheel Closed & $0.617$ & $0.302$ & $0.0015$ & $0.579$ & $0.280$
& $0.0206$ & $0.580$ & $0.281$ & $0.0206$ \\

(you should swith your font to fixed-width now)

The align is fine at the first columns but somehow got off later...

What is the problem here?

If there is some problem with mail reader introduced line breaks or
font width, the entire posting is available here:
http://pastebin.com/raw.php?i=3JZiKiaS

Thanks!

Florian



             reply	other threads:[~2013-03-18 10:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-18 10:15 Florian Lindner [this message]
     [not found] <mailman.22392.1363601736.855.help-gnu-emacs@gnu.org>
2013-03-18 18:39 ` align-regexp not working as intended jpkotta

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

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

  git send-email \
    --in-reply-to=CAJtBfr_cMhsqKyrKSW5eM5xb4zb4CjmwxUk5jDcKEwSy03BfAg@mail.gmail.com \
    --to=mailinglists@xgm.de \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.