Wolfgang Engelmann wrote:
> sorry for a slightly off-topic question:
> I am using jabref for entering references in my lyx file.
> Some of the author entrances in the bib-file are embraced by {author} and 
> listed separately from the non-embraced author entrances, which I do not 
> want.  example:
> author1 
> author3 
> author4
> {author2}
> {author5}
> {author6}
> what I want:
> author1 
> {author2}
> author3 
> author4
> {author5}
> {author6}
>
> I would like to either have the embraced entrances treated equally to the 
> unembraced ones or to remove in an easy way all the {} -signes. 
If you want to remove the "{}" signs from the authors, this is easy
enough to do. Open the BibTeX file itself in a good editor, in
particular, one that will allow you to search and replace using regular
expressions. (You could also of course do this with sed or perl or
whatever, but using an editor allows you to see what you're doing
better.) You'll have to look at the format of the author field to figure
out exactly what to do. But suppose it always looks more or less like this:
    author = { {author name } }
Then you could search and replace with these:
    Search: author\s*=\s*\{\s*\{([^}]+)\}\s*\}
    Replace: author = { \1 }
Yeah, I know: The first one looks like line noise.

Richard

Reply via email to