2

I think I'm looking for the equivalent of isbn=false which stops the ISBN number being printed, but for stopping the bibtex key being printed. The problem is that currently my bibliography contains all the bibtex keys. For example:

\documentclass{article}
\usepackage[backend=bibtex, style=authoryear]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@book{georgescu-roegen_entropy_1971,
address = {Cambridge, MA},
title = {The entropy law and the economic process},
publisher = {Harvard University Press},
author = {Georgescu-Roegen, Nicholas},
year = {1971},
note = {bibtex: georgescu-roegen\_entropy\_1971}
}
\end{filecontents}

\bibliography{bibligraphy.bib}                  
\begin{document}
This is a book (\cite{georgescu-roegen_entropy_1971}).
\printbibliography
\end{document}

prints:

This is a book (Georgescu-Roegen 1971).

References

Georgescu-Roegen, Nicholas (1971). The entropy law and the economic process. bibtex: georgescu-roegen_entropy_1971. Cambridge, MA: Harvard University Press.

  • 4
    biblatex doesn't do this normally. Show your bib-entry. – Ulrike Fischer May 2 '17 at 9:21
  • 3
    bib is not the same like bbl. It seems you have added the key to the note field. But to reproduce this, I need the entry from the bib file. Please show us a MWEB. – Schweinebacke May 2 '17 at 9:41
  • Thanks, yes it looks like it. I'm using Zotero, so the note field is generated automatically. Is this then a Zotero problem, do you think? – TilmanHartley May 2 '17 at 9:58
  • 3
    If you don't want to see that, then this is indeed a Zotero problem. You should be able to tell Zotero to stop doing that. – moewe May 2 '17 at 10:00
  • 1
    You probably want to export with Better biblatex, and not the standard biblatex. The better Bib(La)TeX plugin for Zotero lets you specify a key manually by writing bibtex: ... in the Extra field, but it removes that if you export with notes. – Torbjørn T. May 2 '17 at 10:43
3

I would recommend to tell Zotero not to occupy the note field for the key. But If you cannot do so, and if you are not able to remove the note field using, e.g., sed, you can switch from backend bibtex to biber and use source mapping to remove the note fields from all entries:

\documentclass{article}
\usepackage[backend=biber, style=authoryear]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@book{georgescu-roegen_entropy_1971,
address = {Cambridge, MA},
title = {The entropy law and the economic process},
publisher = {Harvard University Press},
author = {Georgescu-Roegen, Nicholas},
year = {1971},
note = {bibtex: georgescu-roegen\_entropy\_1971}
}
\end{filecontents}

\DeclareSourcemap{
  \maps[datatype=bibtex]{%
    \map{
      \step[fieldset=note,null]
    }
  }
}
\begin{document}
This is a book (\cite{georgescu-roegen_entropy_1971}).
\printbibliography
\end{document}

results in:

removed key from note

after running pdflatex, biber and two times pdflatex.

Note: Backend bibtex does not support source mapping! This is one of several advantages of using biber.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.