3

I am using Emacs+AUCTeX to write all my LaTeX files. So far so good except every time when I need to edit some tabular-like environment.

I need some tricks or key bindings to take advantage of Emacs and AUCTex, so that I could be more efficient.

I already know that I can use C-c C-e to insert an tabular-like environment, and M-RET to quick add \\ and start a new line. However, is there some shortcut that I can quickly add & and indent as I can do in Excel?

Besides, I would be very happy to know other useful tricks to edit tabular-like environments.

Masroor
  • 17,842
YYF
  • 131
  • 1
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Sean Allred May 31 '14 at 17:41
  • 8
    I'd say M-x align-current is very handy. Other than that I think the "tricks" depend on the document/data at hand. The various tools for rectangle formatting is also handy. – daleif May 31 '14 at 17:55
  • 1
    unlike excel you don't actually need to move the focus so to start the next cell you just need & and it's a bit hard to have a shorter sequence than that:-) – David Carlisle May 31 '14 at 21:31
  • @DavidCarlisle: I think it can be more efficient and yield more readable code. I think its a good question... – Dror Jun 03 '14 at 06:47
  • @Dror I didn't say it was a bad question, I said it was harder to have a shorter key sequence than &, which is I hope not a controversial statement:-) – David Carlisle Jun 03 '14 at 07:24
  • @DavidCarlisle: Of course not :) I think the interesting question is how/whether auctex can format the table easily. – Dror Jun 03 '14 at 11:26
  • 1
    Have you tried orgtbl-mode? You can have a look at http://tex.stackexchange.com/a/52284/9517 for an introduction. – T. Verron Jun 04 '14 at 13:29

0 Answers0