I am trying to figure out how to set up citation key generation and file matching to match my own, long entrenched personal methods.
When citing papers I pretty much use either
- AuthorYear
- Author1AndAuthor2
- Author1EtAl
Using the key [auth.etal][year]
with the regex replacement
\.(?!etal)
-> And
I can get JabRef to do
- AuthorYear
- Author1AndAuthor2
- Author1.etal
but I can’t figure out how to get the third case to work.
I see two possible paths to a solution, but both are beyond my understanding.
-
Some how modify my regex set up to allow for a more complex substitution (i.e., replace ‘.etal’ with ‘EtAl’ and every other ‘.’ with an ‘And’). I don’t understand how I can do this since my regex skills are very limited.
-
Utilize the undocumented ability to use regex within a key term. Unfortunately, looking at the code is unclear how to do this. I know the syntax is something like `[auth.etal:regex.XXXX]’, but beyond that I’m lost.
Could someone help me out?
Thanks,
Mike