Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 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

 
discard

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.