I spent a whole afternoon to understand how to use bibtool for the following simple task:
rewrite bibentry field
author = {R. Solomonoff and A. Rapoport},
into:
author = {Solomonoff, R. and Rapoport, A.},
The manual tells that I should use the following:
rewrite.rule {field1 . . . fieldn # pattern # replacement text}
But even with "%f%v%l" as the pattern (probably wrong), I could not figure out what should work.
If someone knows the answer, I am happy to put this on stackexchange (rewriting author fields is much more common than e.g. generating new keys, which is the main topic of the manual).
Thanks a lot
I spent a whole afternoon to understand how to use bibtool for the following simple task:
rewrite bibentry field
author = {R. Solomonoff and A. Rapoport},
into:
author = {Solomonoff, R. and Rapoport, A.},
The manual tells that I should use the following:
rewrite.rule {field1 . . . fieldn # pattern # replacement text}
But even with "%f%v%l" as the pattern (probably wrong), I could not figure out what should work.
If someone knows the answer, I am happy to put this on stackexchange (rewriting author fields is much more common than e.g. generating new keys, which is the main topic of the manual).
Thanks a lot