Hongsheng Zhao | 25 Aug 07:02
Favicon

Can Winedt do batch find and replace for all of the bibtexkeys in the tex source file?

Dear Winedt users,

I meet a issue like the following, let me describe it in detail:

Firstly, I cite all my references in my paper by using the default bitexkeys generated by jabref for me,
subsequently, I found that the author's  abbreviation rule for the journal I want to submit my paper is not
as the forms I used.  

I was forced to change the field of the authors of all of my references according to the journal's
requirment, and then I regenerated all of the bibtexkeys by using jabref.

Due to the jabref use the author + year to generate all of its bibtexkeys,  this will lead to the many
references have different bibtexkeys from those I've used in my tex source file.  On the other hand, I've
already cited many references before I make the authors abbreviations according to the journal's requirments.

So I want to use the regular expression in winedt to do find-and-reeplace operation for all of the
bibtexkeys in the tex source file, but I don't know how to do this.  Who can give me some more hints on this
thing?  

Any hints would be appreciated.

Sincerely yours,
--

-- 
Hongsheng Zhao <zhaohscas <at> yahoo.com.cn> 
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences 
GnuPG DSA: 0xD108493
2008-8-25

(Continue reading)

WinEdt Team | 25 Aug 22:58
Favicon

Re: Can Winedt do batch find and replace for all of the bibtexkeys in the tex source file?

> I meet a issue like the following, let me describe it in
> detail:
>
> Firstly, I cite all my references in my paper by using the
> default bitexkeys generated by jabref for me, subsequently, I
> found that the author's abbreviation rule for the journal I
> want to submit my paper is not as the forms I used.
>
> I was forced to change the field of the authors of all of my
> references according to the journal's requirment, and then I
> regenerated all of the bibtexkeys by using jabref.
>
> Due to the jabref use the author + year to generate all of its
> bibtexkeys, this will lead to the many references have
> different bibtexkeys from those I've used in my tex source
> file. On the other hand, I've already cited many references
> before I make the authors abbreviations according to the
> journal's requirments.
>
> So I want to use the regular expression in winedt to do
> find-and-reeplace operation for all of the bibtexkeys in the
> tex source file, but I don't know how to do this. Who can give
> me some more hints on this thing?
>
> Any hints would be appreciated.

Regular Expressions (with tags) can very likely accomplish the
task. However, you did not provide enough information to be
more specific.

(Continue reading)

Hongsheng Zhao | 26 Aug 04:59
Favicon

Re[2]: Can Winedt do batch find and replace for all of the bibtexkeys in the tex source file?

On Tuesday, August 26, 2008 at 4:58, support <at> winedt.com wrote:
>> I meet a issue like the following, let me describe it in
>> detail:
>>
>> Firstly, I cite all my references in my paper by using the
>> default bitexkeys generated by jabref for me, subsequently, I
>> found that the author's abbreviation rule for the journal I
>> want to submit my paper is not as the forms I used.
>>
>> I was forced to change the field of the authors of all of my
>> references according to the journal's requirment, and then I
>> regenerated all of the bibtexkeys by using jabref.
>>
>> Due to the jabref use the author + year to generate all of its
>> bibtexkeys, this will lead to the many references have
>> different bibtexkeys from those I've used in my tex source
>> file. On the other hand, I've already cited many references
>> before I make the authors abbreviations according to the
>> journal's requirments.
>>
>> So I want to use the regular expression in winedt to do
>> find-and-reeplace operation for all of the bibtexkeys in the
>> tex source file, but I don't know how to do this. Who can give
>> me some more hints on this thing?
>>
>> Any hints would be appreciated.

> Regular Expressions (with tags) can very likely accomplish the
> task. However, you did not provide enough information to be
> more specific.
(Continue reading)

WinEdt Team | 30 Aug 23:46
Favicon

Re: Re[2]: Can Winedt do batch find and replace for all of the bibtexkeys in the tex source file?

> Please note, the amount of references in each \cite{} is not
> always the same, just as be seen in the above sample.
>
> I can obtain all of the key_* and its corresponding new_key_*,
> what should I do complete the my batch find and replace job?

I still don't see any pattern for RegEx Replacement. This looks
more like a multiple substitution issue.

Perhaps you should consider defining and applying a string
translations table:

 "key_1" -> "new_key_1"
 "key_2" -> "new_key_2"
  etc...

Alternatively, a macro that iterates through such a
specifications and performs each replace could be written as
well.

Anyway, this is just a pointer in a possible direction as I don't
have time to get involved in this. After all, this is a rather
specific request and perhaps you should sort out the way you are
generating the keys and then stick with it rather than replacing
existing keys with new ones on a regular basis.

Of course, there is always a possibility of writing a Perl
script and leave WinEdt out of it if you are so inclined and
you want to perform such replacements frequently... Any
automation of the process will require some familiarity with a
(Continue reading)


Gmane