Scripting for Better Bibtew in Zotero

This commit is contained in:
lhark 2019-04-03 00:34:19 -04:00
parent 0d66bd4840
commit 6186237a0f

15
how_to
View file

@ -207,6 +207,7 @@ MAC spoofing:
sudo ip link set dev <IF> up
Mount as user:
/!\ on filesystems with permissions, it is permanent
sudo mount /dev/sd[a-z][0-9] /mnt
sudo chown <user> /mnt
@ -456,3 +457,17 @@ Echo to stderr
Reset gpg-agent passphrase cache
Useful mainly for testing purposes
echo RELOADAGENT | gpg-connect-agent
Better Bibtex, Zotero:
Add URL to webpages
https://retorque.re/zotero-better-bibtex/scripting/
if (Translator.BetterBibTeX && item.itemType === 'webpage') {
if (item.accessDate) {
this.add({ name: 'note', value: "(accessed " + item.accessDate + ")" });
}
if (item.url) {
this.add({ name: 'howpublished', bibtex: "{\\url{" + this.enc_verbatim({value: item.url}) + "}}" });
}
}