BibTeX, biblatex and biberExclude some Fields from appearing in the Bibliography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
nunder11
Posts: 2
Joined: Thu Oct 28, 2010 4:33 pm

Exclude some Fields from appearing in the Bibliography

Post by nunder11 »

I am using EndNote web to produce a bibtex .bib file. It contains a field called "Times Cited" which I don't actually want to appear in the bibliography.

I am using natbib with the plainnat bibliography style. At the moment the bibliography prints out fine but includes a Times Cited entry for each of the items in my bibliography.

I suppose one option would be to go in to the file and manually delete this field from each of the items, but wondered if there was some way to tell BibTex to exclude this field?

Thanks for your help

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Exclude some Fields from appearing in the Bibliography

Post by frabjous »

Could you post an example item from this bib file? I don't think the field could literally be called "Times Cited" and work with natbib's plainnat!
nunder11
Posts: 2
Joined: Thu Oct 28, 2010 4:33 pm

Exclude some Fields from appearing in the Bibliography

Post by nunder11 »

Thanks for the reply - you're right. I've looked and I attach a sample.

Code: Select all

@article{seidenfeld:85,
   author = {Seidenfeld, T.},
   title = {CALIBRATION, COHERENCE, AND SCORING RULES},
   journal = {Philosophy of Science},
   volume = {52},
   number = {2},
   pages = {274-294},
   note = {Times Cited: 10},
   year = {1985}
}
Seems like it's in a field called note. Any ideas how/if I can stop this printing out.

Thanks very much
erickb
Posts: 1
Joined: Thu Jun 21, 2012 4:07 pm

Exclude some Fields from appearing in the Bibliography

Post by erickb »

You can use this tiny little awk script

Code: Select all

#!/usr/bin/awk -f
!/^[ \t]*note/
If you save it as, e.g., "cleanbib" and then run "chmod +x cleanbib" so that you can execute it, then you can run a command like this:

Code: Select all

$ cleanbib bib_with_notes_field.bib > bib_without_notes_field.bib
It works as long as all notes fields are printed out on a single line, as is done by, e.g., Zotero export (and possibly JabRef, etc.).

Best regards,
Eric
Post Reply