#!/bin/bash

PATH=~/local/bin:/opt/SLIM/ScholarlyMarkdown/bin:/usr/texbin:/usr/local/bin:/opt/local/bin:/sw/bin:/usr/bin:/bin:/usr/sbin:/sbin
scholdoc --css='https://slimgroup.slim.gatech.edu/ScholMD/standalone/slimweb-scholmd-standalone-v0.1-latest.min.css' --mathjax='https://slimgroup.slim.gatech.edu/MathJax/MathJax.js?config=TeX-AMS_HTML-full' --to=html --default-image-extension=png --citeproc "Paper_final.md" "/opt/SLIM/ScholarlyMarkdown/configs/slim_js.yaml" "/opt/SLIM/ScholarlyMarkdown/configs/default_csl.yaml" -o "Paper_final.html" 2>&1 && sed -i'.sedbak' -e "s|<h1 class=\"scholmd-title\">|&<p class=\"pull-right\"><a href=\"Paper_final.pdf\"><img src=\"https://slimgroup.slim.gatech.edu/ScholMD/icons/PDF_file_96.png\" alt=\"PDF Version\" width=48px height=48px /></a><a href=\"Paper_final.md\"><img src=\"https://slimgroup.slim.gatech.edu/ScholMD/icons/SchMD_file_96.png\" alt=\"Markdown Version\" width=48px height=48px /></a></p>|" "Paper_final.html" && rm "Paper_final.html.sedbak"
