markdownacademic/render.sh
2018-10-10 20:15:43 +02:00

8 lines
430 B
Bash
Executable File

#!/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 "$@"