home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!math.fu-berlin.de!fauern!dec16!wpcx41.phys-chemie.uni-wuerzburg.de!kruel
- From: kruel@phys-chemie.uni-wuerzburg.dbp.de (Thomas-Martin Kruel)
- Subject: Re: merging BibTeX bibliographies
- Message-ID: <1992Nov21.144425.21959@phys-chemie.uni-wuerzburg.dbp.de>
- Organization: Institut fuer Physikalische Chemie / Uni Wuerzburg
- References: <1992Nov12.184758.4760@dsg.cs.tcd.ie>
- Date: Sat, 21 Nov 1992 14:44:25 GMT
- Lines: 54
-
- The proposal seems too complicated to me. Here is how we do it:
-
- 1. copying the various bib-files together
- 2. sorting the common file
- 3. checking for double entries
-
- You can achieve step 2 and 3 through the tool "btt", which is
- available on "cerberus.cor.epa.gov".
- There you can find a lot of other bib-stuff also.
-
- If we find double entries, we add the letters "a,b,c,..." to the cite
- key. This does not guarantee backwards compatibility, but occurs only in
- few cases.
-
- The mechanism to generate cite-keys is the following:
-
- 1. Take the authors initials, but at most 3;
- 2. If there are more than 3 authors, add a "+"-sign;
- 3. If there is only one author, take the first 3 letters from his surname;
- 4. Add the last two digits from the year, e.g. "92" for 1992.
-
-
- In addition to that, we check the uniqueness of different bib-files
- before merging by the shell-command:
-
-
- #!/bin/sh
- #
- # report duplicate labels in (multiple) BibTeX files.
-
- args=$*
-
- if [ $# -eq 0 ]; then
- echo "usage: keycheck [bibfile(s)]"
- fi
-
- echo "The following keys occur more than once in the BibTeX file(s)"
- echo $args":"
- cat $args | grep @ | awk -F"{" '{print $2}' | sort | uniq -d
-
-
- Our bib-files comprise somewhat around 2000 entries together, but
- despite this big number I found that it is always better to do
- a hand check than to rely solely on automatic tools.
-
- I know this is only of partial help, but better than nothing.
-
- Good luck,
- Thomas.
- --
-
- Th.-M. Kruel Institut fuer Physikalische Chemie der Universitaet Wuerzburg
- Marcusstr. 9-11, D-8700 Wuerzburg (Germany)
- Phone: +49 931 31579
-