I am trying to generate citations that include multiple references to different works, e.g. \cite{A,B} giving [A,B] in the text. I cannot seem to figure out how to use RefTeX+AUCTeX (in Emacs 27.1) to include multiple citations.
There is a similar question asked here that shows how to manipulate RefTeX, but in my workflow I still cannot seem to use \cites to query for multiple regexes and include those in the same \cite{} command.
I have also tried hitting ?, and this suggests n/p to go to the next/previous entry, but this does not actually do anything on my end. Can it be that there exists some clash on my system that prevents the next/previous entry commands to work?
Note that manually including the multiple entries, e.g. \cite{A,B} does generate correct behavior -- so my LaTeX/bibliography distro supports multiple citations in a single \cite command.
How do you search the database multiple times and include several different bibliography entries into a single \cite command?
MWE
\documentclass{article}
\bibliography{plain}
\begin{document}
Some citation~\cite{lamport94}.
\begin{thebibliography}{9}
\bibitem{texbook}
Donald E. Knuth (1986) \emph{The \TeX{} Book}, Addison-Wesley Professional.
\bibitem{lamport94}
Leslie Lamport (1994) \emph{\LaTeX: a document preparation system}, Addison
Wesley, Massachusetts, 2nd ed.
\end{thebibliography}
\end{document}
Commands used: C-c [
reftex-citation(C-c [), you'll first go through a dispatcher to choose the citation command, after that, you're queried for a regex with which the entries are searched for. After that, you get a list of possible entries matching your regex. You can select multiple entries withm(navigating withn/p, or whatever else). Once you're done, exit witha(for "all", I guess), and marked entries will be inserted in a comma separated list for your citation command. – gusbrs Mar 13 '23 at 18:11texbookandlamport94as in the example. I cannot seem to select multiple distinct entries that do not appear in the same regex. – Johannes Nauta Mar 14 '23 at 08:58vertico(I got the hint for the completion framework messing with it from here). Turns out it was the completion framework that is messing withRefTeX. I will try to come up with a solution and post it here. – Johannes Nauta Mar 14 '23 at 09:34