1

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}}
  • Why do you want to do this? If you interact with your .bib file using BibDesk you never see these anyway. – Alan Munn Mar 8 at 4: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. – Mogic Mar 8 at 4:21
  • I see the use for BibDesk, I don't see the use for changing the case of the keys. – Alan Munn Mar 8 at 4:22
  • @AlanMunn you can also produce keys of entries uniformly by change the setting of BibDesk. – Mogic Mar 8 at 4:24
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.

  • Could you speak in more details? – Mogic Mar 8 at 4:30
  • @Kuttens I'm not quite sure what else to say. This is a command line tool which is part of the standard TeX distribution. Replace <your-file.bib> with the name of your .bib file (without the <>). – Alan Munn Mar 8 at 4:37
  • It can't work, sir. – Mogic Mar 8 at 4:42
  • @Kuttens Sorry I forgot to mention that the output filename is different. I've updated the answer. – Alan Munn Mar 8 at 4:50
  • It says Cannot find '--.bib'. – Mogic Mar 8 at 7:18

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.