TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The RefTeX manual clearly describes how to mark multiple entries in a search buffer an insert them into a single \cite command, but how can you get the search buffer to contain results from multiple search terms?

For example, if I want to cite two books with different authors I need to use two different search terms to find the entries in my BibTEX database but I want them to appear in the same cite command I need them to be in the same search buffer. I have tried regular expressions like author1|author2 and author1,author2.

share|improve this question
up vote 7 down vote accepted

Searching for Author1\|Author2 works for me.

share|improve this answer
Thank you! I didn't think of the escape character. Is this syntax documented somewhere? – godbolt Aug 28 '12 at 14:36
Yes, indirectly. The help for reftex-citations mentions that it accepts a regular expression. Emacs' flavour of regular expressions is documented in the manual; section 15.6 "Backslash in Regular Expressions" mentions the syntax for alternatives. – anonymous Aug 28 '12 at 18:00
Thanks. That's a good manual page to be aware of. – godbolt Aug 29 '12 at 14:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.