Skip to content

Instantly share code, notes, and snippets.

@retorquere
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retorquere/0dd80e12870366d5f51f to your computer and use it in GitHub Desktop.
Save retorquere/0dd80e12870366d5f51f to your computer and use it in GitHub Desktop.
!config
# Pull bibliography from zotero as part of build
# author: Emiliano Heyns
# last edited by: eeh, Dec 2nd 2013
# requires arara 3.0+
#
# Sample usage
#
# % arara: zoterobib
# % arara: zoterobib: {format: biblatex}
#
# for windows, use http://www.confusedbycode.com/curl/#downloads
identifier: zoterobib
name: ZoteroBib
commands:
- <arara> @{ isWindows( "cmd /c ", "" ) } echo curl --connect-timeout 5 --fail -z '@{base}.bib' -o '@{base}.bib' http://localhost:@{port}/better-bibtex/collection?@{collection}.@{format}@{exportCharset}@{exportNotes}@{useJournalAbbreviation}
arguments:
- identifier: base
flag: <arara> @{parameters.base}
default: <arara> @{getBasename(file)}
- identifier: port
flag: <arara> @{parameters.port}
default: 23119
- identifier: format
flag: <arara> @{parameters.format}
default: biblatex
- identifier: collection
flag: <arara> @{parameters.collection}
- identifier: exportCharset
flag: <arara> '&'exportCharset=@{parameters.exportCharset}
- identifier: exportNotes
flag: <arara> '&'exportNotes=@{parameters.exportNotes}
- identifier: useJournalAbbreviation
flag: <arara> '&'@useJournalAbbreviation={parameters.useJournalAbbreviation}
@retorquere
Copy link
Author

% arara: zoterobib: {collection: /0/QG6TAZSK, exportNotes: yes}
\documentclass{article}
\begin{document}
hello world
\end{document}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment