Convert citations made with the newer Mendeley Cite Word add-in into fields that Paperpile or Zotero can recognize.
The script creates a new .docx file. It does not overwrite the original or
change the document's visible text.
- Python 3.8 or newer
- A
.docxfile containing Mendeley Cite citations
No extra packages are required.
Download this repository and put your Word document in the same folder as
mendeley_cite_port.py. Close the document in Word before continuing.
For Paperpile:
py mendeley_cite_port.py "manuscript.docx"For Zotero:
py mendeley_cite_port.py "manuscript.docx" --format zoteroOn macOS or Linux, use python3 instead of py.
The new file appears beside the original:
manuscript_LEGACY_MENDELEY_fields.docxfor Paperpilemanuscript_ZOTERO_fields.docxfor Zotero
Keep the original until you have checked the converted document.
Paperpile: Open the new document in Word, then choose Paperpile → Settings and Tools → Convert from → Mendeley.
Zotero: Import your Mendeley library into Zotero, open the Zotero-format document in Word, then choose Zotero → Refresh.
References without a DOI may need to be matched manually.
Create both formats and export the references:
py mendeley_cite_port.py "manuscript.docx" --format both --bib references.bib --dois dois.txtSee all options:
py mendeley_cite_port.py --helpThe converter supports citations in the main document, footnotes, endnotes, headers, and footers. Paperpile or Zotero may reformat citations when refreshed, so compare the result with the original.
python -m unittest discover testsCreated by Amin Akbari and released under The Unlicense.