[Tex/LaTex] Does AucTeX Autocomplete

auctexauto-completionemacs

The quick start guide for AUCTeX says

As nearly everywhere in AUCTeX, you can use the TAB or SPC key to get a list of available level names, and to auto-complete what you started typing.

Which tantalizingly makes me thing AUCTeX has an auto-complete feature. But pressing TAB does nothing. I apologize for the simple question, but I've spent more time searching for it than I am ever likely to save so this is a last resort before I give up on it.

So, is there in fact an auto-complete feature in Emacs AUCTeX? How does one turn it on if so?

Edit: I just figured out M-TAB is problematic since it is bound to a OS GUI action. I saw a website discuss this problem and it notes that there are two key bindings which are supposed to be equivalent: c-[ c-I and ESC TAB. Except these for some reason give me dictionary spelling corrections for the word I wrote which is not exactly what I was expecting.

Best Answer

It does have auto-complete powers. (It has more than any one person knows about.) Try, e.g., C-c C-m (for calling macros like \footnote or \ref); type the letter 's' and hit TAB. The rest will become clear. C-c C-e will prompt for for starting new environments. And so on.

If you use AUCTeX with reftex, try things like C-c [ to prompt you for a bibliographical \cite{<key>} command.

You should skim the manual for the sections that are most relevant for your work.

Related Question