markdownacademic/render.sh

8 lines
430 B
Bash
Raw Normal View History

2018-10-10 18:15:43 +00:00
#!/bin/bash
# depends on pandoc-citeproc
# needs https://github.com/citation-style-language/styles to be in ~/src/styles
title=$(basename "$@" .md)
echo -e "\n\n# Bibliography" >> "$@"
pandoc -s --filter=/usr/bin/pandoc-citeproc --bibliography ~/Seafile/zotero/My\ Library.bib --csl ~/src/styles/chicago-author-date-16th-edition.csl --reference-doc ~/src/markdownacademic/reference.docx -f markdown -t docx -o "$title".docx "$@"