10

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.

Joseph Wright
  • 259,911
  • 34
  • 706
  • 1,036
godbolt
  • 153

1 Answers1

10

Searching for Author1\|Author2 works for me.

anonymous
  • 1,159
  • 1
    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