2

As you see, in the following example all the first letters of the field names such as Author, Booktitle, and so on, are capital. I want to make all of them be lowercase. The file is produced by BibDesk. Since there are many references in the file, is there a uniform way to do this once?

@incollection{Ctfl1956,
    Author = {A. Tarski},
    Booktitle = {Logic, Semantics, Metamathematics, Papers from 1923 to 1938},
    Pages = {152--278},
    Publisher = {The Clarendon Press, Oxford},
    Title = {The Concept of Truth in Formalized Language},
    Translator = {Woodger, J. H.},
    Type = {J},
    Year = {1956}}
Alan Munn
  • 218,180
M. Logic
  • 4,214
  • Why do you want to do this? If you interact with your .bib file using BibDesk you never see these anyway. – Alan Munn Mar 08 '19 at 04:06
  • @AlanMunn There is an advantage to use BibDesk to open .bib file: it can make the format uniform such as the spaces around = are equal, },} at the end of entries could be replaced by }} uniformly, and so on. – M. Logic Mar 08 '19 at 04:21
  • I see the use for BibDesk, I don't see the use for changing the case of the keys. – Alan Munn Mar 08 '19 at 04:22
  • @AlanMunn you can also produce keys of entries uniformly by change the setting of BibDesk. – M. Logic Mar 08 '19 at 04:24
  • @AlanMunn: In my case, I use the package usebib, unfortunately, it can only deal with lower case fields :( – v01pe Oct 05 '20 at 16:10

1 Answers1

1

You can use biber in tool mode to do the change you want.

From the command line, navigate to the directory where your .bib file is and then use the following command:

biber --tool --output-fieldcase=lower --output-indent=4 <your-file.bib>

This will produce a file called your-file_bibertool.bib with the converted format.

Alan Munn
  • 218,180