Last active
March 18, 2025 10:42
-
-
Save dschaehi/54e954d4380f743ccd467496814a7b90 to your computer and use it in GitHub Desktop.
Zotero Better BibLaTeX script for arXiv and conference papers with missing booktitle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Translator.BetterBibTeX) { | |
if (tex.entrytype === "unpublished" && !tex.has.note) { | |
tex.add({ name: "note", value: "unpublished manuscript" }); | |
} | |
if (tex.entrytype === "misc" && zotero.arXiv) { | |
if (!tex.has.misc) tex.entrytype = "article"; | |
if (tex.has.number) tex.remove("number"); | |
if (tex.has.journal) tex.remove("journal"); | |
tex.add({ | |
name: "journal", | |
value: "arXiv preprint arXiv:" + zotero.arXiv.id, | |
}); | |
} | |
if (tex.has.issn) tex.remove("issn"); | |
if (tex.has.month) tex.remove("month"); | |
if (tex.has.doi) tex.remove("doi"); | |
if (tex.has.url) tex.remove("url"); | |
} | |
// if (Translator.BetterBibLaTeX) { | |
// if (tex.entrytype === "online" && zotero.arXiv) { | |
// if (!tex.has.online) tex.entrytype = "article"; | |
// if (tex.has.number) tex.remove("number"); | |
// if (tex.has.pubstate) tex.remove("pubstate"); | |
// if (tex.has.journal) tex.remove("journal"); | |
// tex.add({ | |
// name: "journal", | |
// value: "arXiv preprint arXiv:" + zotero.arXiv.id, | |
// }); | |
// } | |
// if (tex.entrytype == "inproceedings") { | |
// if (!tex.has.booktitle && tex.has.eventtitle) { | |
// tex.add({ name: "booktitle", value: zotero.conferenceName }); | |
// } | |
// } | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment