-
-
Notifications
You must be signed in to change notification settings - Fork 133
cleaning the bibliography
Sometimes you get some weird errors while processing the bibliography file, most specially when it was exported from Mendeley or Zotero, such as
Package inputenc Error: Invalid UTF-8 byte sequence
You may clean the bibliography file with the following python3 script from David Magalhães Sousa ([email protected])
https://github.com/joaomlourenco/novathesis-extras/raw/main/Scripts/ntcleanbib.py
For example, to create a file clean.bib
from a dirty file dirty.bib
do:
python ntcleanbib.py -i dirty.bib -o clean.bib
Bibliography exported from Mendeley may have invalid characters in the cite key, namely "(" and ")". If you run the script with the addition option -k
, it will also replace those invalid characters with "_".
python ntcleanbib.py -k -i dirty.bib -o clean.bib
Thanks for using this template and for contributing with your suggestions. We really appreciate it. If you may, please don't send us emails directly. Post your question in the GitHub Discussions page or the Facebook Group and you will get your answer there — perhaps even faster.