Hi Ikumi, 2014-07-08 13:23 GMT+02:00 Ikumi Keita <[email protected]>: > Hi, AUCTeX developpers, > > The attatched patch enhances the support for array and tabular(*) > environments in LaTeX mode of AUCTeX. With this change, the right > number of ampersands are inserted automatically in the buffer at the > following situations: > (1) After inserting a new environment with C-c C-e. > (2) After terminating a row with C-c C-j (or M-RET). > > For example, C-c C-e tabular RET t RET |l|c|r RET yields > \begin{tabular}[t]{|l|c|r} > && > \end{tabular} > . Note that two &'s are inserted according to the column specification > "|l|c|r". The number of &'s is determined from the column specification > on the fly. It is robust enough not to be confused with the presence > of bars("|") and construcs such as "@{,}" and "p{30pt}". > In addition, C-c C-j (or M-RET) at the end of line of the &'s asks for > optional argument for the line breaking macro "\\" and supplies two &'s > in the next line. > You will get similar experience with array and tabular* environments, > too. > > The patch includes: > 1. support for alignat environment and its friends in amsmath.el > 2. support for enhancement of array.sty in array.el > 3. support for enhancement of plext.sty (pLaTeX only) in plext.el, a > newly created file > > This feature is inspired from YaTeX(http://www.yatex.org/). If you like > this change, please include it into AUCTeX.
for the time being I can't look at the patch, but the feature looks nice! > I confirmed the change works with emacs 24.3 and 22.3. I believe it > also works with emacs 23. Confirmations with emacs 21 and xemacs are > omitted, because AUCTeX in the current git repository does not seem to > be compatible with them. (Errors occur during byte compilation.) Could you please report exactly which are the errors? Bye, Mosè _______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
