When creating a bibliography in Latex sometimes the url and doi fields are added to the references. If you don't want this to occur you can modify the way Zotero exports the .bib file so the fields are ignored.
You need to modify the file in
~/Library/Application\ Support/Firefox/Profiles/uawt2ewt.default/zotero/translators/BibTeX.js
Around line 2225 you need to change the code from
for(var field in fieldMap) {
if(item[fieldMap[field]]) {
writeField(field, item[fieldMap[field]]);
}
}
to
for(var field in fieldMap) {
if (field == "url") continue; // Added to remove url
if (field == "doi") continue; // Added to remove doi
if(item[fieldMap[field]]) {
writeField(field, item[fieldMap[field]]);
}
}
Now when you export your .bib files the url and doi fields will be ignored.
No comments:
Post a Comment