#!/bin/bash

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