[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
align-regexp not working as intended
From: |
Florian Lindner |
Subject: |
align-regexp not working as intended |
Date: |
Mon, 18 Mar 2013 11:15:25 +0100 |
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
- align-regexp not working as intended,
Florian Lindner <=