2010-05-22 sanitize a bibtex file using bibtool

2010-05-22 17:32:57
  • goal: before distributing a bibtex file, you may want to remove all stuff created by tools like BibDesk
  • install bibtool:
    sudo port install bibtoool
  • create a  filter.rsc  file :
    print.entry.types = {pncs}
    pass.comments = on
    ignored.word = "on"
    ignored.word = "the"
    ignored.word = "a"
    ignored.word = "an"
    ignored.word = "if"
    
    preserve.keys = on
    preserve.key.case=on
    key.generation = off
    key.number.separator = {}
    key.base = {digit}
    key.format = {{%s(key) # %n(author) # %n(editor) # %-5.1W(institution) # %-5.1W(organization) } %2d(year)%-T(title)}
    print.align.key = n
    
    delete.field = { date-added }
    delete.field = { date-modified }
    delete.field = { bdsk-file-1 }
    delete.field = { bdsk-file-2 }
    delete.field = { bdsk-url-1 }
    delete.field = { bdsk-url-2 }
  • apply the filter
    bibtool -i babel.bib -r filter.rsc -M /dev/null -o new.bib -v -#
  • more info: http://www.gerd-neugebauer.de/software/TeX/BibTool/Manual/index.html

Comments

Comments powered by Disqus