You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
430 B

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