home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13415 < prev    next >
Encoding:
Text File  |  1992-11-21  |  2.0 KB  |  65 lines

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