davepwsmith / zotpick-applescript

Leverage Better-BibTeX's citation picker in Scrivener
135 stars 18 forks source link

Brackets for pandoc from Scrivener #13

Open kakaes opened 7 years ago

kakaes commented 7 years ago

Dave Many thanks for these which are really helpful. For my workflow helps to get the citation within brackets--see that the better bibtex people allow this as an option. I tweaked your main.scpt to turn the brackets flag on, per below

set theReference to do shell script "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=pandoc&brackets=true' 2>/dev/null; exit 0"

Just figured I'd mention it in case anyone else has the same issue. Best, K.

tillgrallert commented 4 years ago

I added a fix for this in my pull request. If Pandoc is selected as output format, the reference(s) will be surrounded by square brackets.

tomasleale commented 3 years ago

I cannot begin to express how grateful I am for this. Three whole days banging my head against the wall with absentee brackets on scrivener!!!

Thanks so much @kakaes

Jmuccigr commented 3 years ago

Since you can just type brackets if you want them (or modify the script yourself), I suggest it’s easier to leave them out as the default. From my perspective, being asked for options every time is a hassle. Also pandoc users don’t need the brackets all the time.