When working on a LaTeX document in Emacs align-current aligns & and \\, but does so for entire sections at a time. Anyone have any idea as to how one limits its range (in a new macro) to say the current environment?
I seldom need to do an align of anythis other than a matrix or a table.
My attempts to build something on top of align-regexp have not been successful.
Ideas?
Edit:
Given the following test data M-X align-current will normally align the &'s and \\'s, but on a sectional basis. I'd like them to work only on the current environment.
\begin{tabular}{xxx}
a & bbbb & sdssd & \\
ccsssssss & jj& bb
\end{tabular}
\begin{tabular}{xxx}
a & bbbb & sdssd & \\
cc & jj& bb
\end{tabular}
If I run it in this example, it aligned them in both tabulars at the same time.
emacs,auctex,elisp, it is about writing macros in Emacs. – daleif Jul 3 '12 at 8:03TeXquestion – daleif Jul 3 '12 at 13:43