Zotero iOS Shortcuts: Better BibTeX Citation Keys

Zotero Ios Better Bibtex

This is the long awaited iOS Shortcut for Zotero to extract Better BibTeX citation keys for Pandoc. I know a fair few people have been waiting on this, apologies it has taken so long to post. If you need more detail, read on, otherwise the shortcut can be downloaded below.

Zotero and Better BibTeX

There are a couple simple but important reasons I use Zotero, and the standard BibTeX support is not one of them. The web API allows me to build these shortcuts, but more importantly Zotero is an antidote to the closed and proprietary reference management systems of big academic publishers. 1

Despite the importance of both those things, if it wasn’t for the Better BibTex plugin I would almost certainly be using Bookends. The Zotero desktop app is a glorified browser, and an ugly one at that, whereas Bookends is a powerful native app. But I digress, the point is Better BibTex improves Zotero significantly, and I find it to be the best way of dealing with Pandoc citations. If you don’t use it already, you can look into it here.  Or if you want a visual guide, for anything to do with plain scholarship using Zotero I recommend the excellent tutorials by Nicholas Cifuentes-Goodbody

If you already use Better BibTeX and you're looking for an iOS solution, you may find this useful.

Notes:

  • Better BibTeX  writes custom citations keys to an ‘extra’ field. For most people that won’t matter, but if have other plugins running there is always a chance the crude regular expression I have written to extract the keys will run into problems. 2
  • Make sure your keys are ‘pinned’ on the desktop, if they have an asterisk next to them they will not get written to the web database, meaning the shortcut will break. This is the most common reason the shortcut doesn’t work
  • Unlike the previous shortcuts, this version searches the entire library by default. It seems most users prefer that. If you want it to search a particular collection, it is easy enough to change the URL for the API call. The Zotero documentation includes examples of how the URL should look. You can also look at other versions of these Zotero shortcuts that use a collection instead of the library.
  • If you want to use the shortcut with multiple text editors, delete the final ‘open in app’ action and use multitasking to paste the keys.
  • The shortcut should run fine from the share sheet, but the best way to use these shortcuts is via the widget.

As always, any problems drop me a line.

Download Zotero Better BibTeX Shortcut

Ios Zotero Shortcut
Zotero Better BibTeX

 

 

 

 

 

Important: If you are an iOS only user, and do not maintain your Zotero database on a desktop, this shortcut will not work for you. You need to use one of the earlier versions.


  1. e.g Mendeley has an API, but it’s made by Elsevier ↩︎
  2. If anyone with actual RegEx chops wants to improve the expression, please let me know and I will update the shortcut ↩︎

iOS Shortcuts: Clipboard Shortcut for Bibliographic Data

Ios Shortcuts Book Scanner.png

I recently shared an iOS Shortcut for scanning citations directly from the barcode of a book. Handy as it is, I have another shortcut I’m getting a lot of mileage from when I write on my Mac. Both Zotero, and Bookends 1 can add references to your library directly by scanning different metadata, including any book’s ISBN. You can obviously search for the numbers, or type them out by hand, but this little trick can add items to your library by using an iOS device as a scanner.

Zotero Quick Add.png
Zotero can add items to your library automatically using metadata, such as the ISBN

The shortcut works by scanning the ISBN from a barcode of any book and copying it to the clipboard.  If the Universal Clipboard is working properly, the ISBN will become immediately available on the nearest Mac to paste into Zotero, or Bookends. I have also set it to copy the number to my clipboard manager in case the universal clipboard fails, as it does far too often 2.

This version of shortcut is configured to use my favourite clipboard manager, Copied. You could also use the equally impressive Paste, which is included with Setapp. Or any other app  with a URL scheme that uses iCloud sync, like Gladys or Yoink. You could even use Apples own Notes App in a pinch.

Download the shortcut and adapt it to your needs here: IBSN Scan To Copied

 

  1. These are the two I recommend, but other reference managers will do this too 
  2. I have lost hours troubleshooting the universal clipboard when it stops working, it’s not worth it.