Skip to content

Instantly share code, notes, and snippets.

@mcburton
Created December 10, 2014 23:20
Show Gist options
  • Save mcburton/b2840061893979e60c5a to your computer and use it in GitHub Desktop.
Save mcburton/b2840061893979e60c5a to your computer and use it in GitHub Desktop.
A makefile for making my dissertation into a dissertation
DATE=`date +%d%b%y`
BIBLIOGRAPHY=/Users/mcburton/Dropbox/zotero/library.bib
REFERENCE=reference.docx
num = 1,2,3,4,5,6
CHAPTERLIST := chapter-[$(num)]-*.md
.PHONY: draft
draft:
pandoc --reference-docx $(REFERENCE) \
--filter pandoc-citeproc \
--bibliography $(BIBLIOGRAPHY) \
$(CHAPTERLIST) \
-o output-docs/draft-$(DATE).docx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment