Re: Any good way to align a tabular enviroment?
David Kastrup <[email protected]> Sun, 13 Mar 2005 11:37:50 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
"Adam Johnson" <[email protected]> writes: > Is there any .el file using together with AUCTeX to align a tabular > environment? > > For example: Given a unformatted tabular environment > \begin{tabular}{lcr} > a& b& 80\% \\ > \&& 55555&88\\ > 12345& 100 & 77 > \end{tabular} > > After using C-M-\, it can be aligned as following: > \begin{tabular}{lcr} > a & b & 80\% \\ > \& & 55555 & 88 \\ > 12345 & 100 & 77 > \end{tabular} > The elements can be aligned at &'s. > > Any .el file or AUCTeX style can format a tabular nicely? Thanks. M-x align-current RET -- David Kastrup, Kriemhildstr. 15, 44793 Bochum