# how to cite using emacs+auctex+reftex

I recently switched from TeXStudio to Emacs/AUCTEX. The problem is that I don't know how to cite a paper. Here is a MWE:

\documentclass{article}
\usepackage[backend=biber,style=apa,apabackref=true,uniquelist=false]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\bibliography{p-dbase.bib}

\begin{document}
\textcite{Here is where I want autosuggestion on my papers' list to be appeared}

\printbibliography

\end{document}


Like for any other macro you want to insert in AUCTeX, you should use C-c RET cite RET (or C-c C-m cite RET; for more information about autocompletion in AUCTeX see the quick start or Completion section of the manual). This works also for all other citation macros provided by natbib, biblatex, ect... (\citep, \citealt, \parencite, \textcite, etc...)

For the particular case of bibliography commands, you may want to take advantage of the great package RefTeX. AUCTeX has a basic support for bibliographic commands also without RefTeX, but this package provides a far superior completion.

In order to automatically start RefTeX when you open a LaTeX file add the following code to your init file

;; Turn on RefTeX in AUCTeX

In this way, you can still insert a \cite command with C-c RET cite RET, but you can also use the key-binding C-c [. RefTeX overtakes the task to provide completion of bibliographic entries, but you can continue using the usual AUCTeX-way to insert macros.
The command you need here is reftex-citation, which is bound to C-c [ by default. There is more info in the manual
• when i use C-c [ the terminal says that command is undefined – Yorgos Feb 22 '16 at 17:52
• You need to turn on reftex with (setq reftex-plug-into-AUCTeX t), see the manual here – Tyler Feb 22 '16 at 17:59
• @Yorgos You can also use C-c c if you add (setq reftex-extra-bindings t) – ppr Sep 27 '17 at 21:42