dimisit/compile.sh

28 lines
819 B
Bash
Raw Normal View History

2015-10-23 14:29:11 +00:00
#!/usr/bin/env zsh
for fic in **/*.md(.); do
print -n -- ${fic:r}.html
prefix=$(print -- $fic|perl -pe 's#[^/]*/#../#g;s#[^/]*$##')
pandoc -s -S --toc --css "${prefix}styling.css" \
-V lang=en \
-V highlighting-css= --mathjax \
--smart --to=html5 -A footer.html \
-o "${fic:r}.html" \
$fic
print " [DONE]"
2015-10-26 13:51:17 +00:00
## print -n -- ${fic:r}.pdf
## # --variable mainfont="Hoefler Text" \
## # --variable sansfont="Futura" \
## # --variable monofont="Menlo" \
## pandoc -s -S -N --toc \
## --template=template.latex \
## --variable fontsize=14pt \
## --variable linkcolor=orange \
## --variable urlcolor=orange \
## --latex-engine=xelatex \
## -o ${fic:r}.pdf \
## $fic
## print " [DONE]"
2015-10-23 14:29:11 +00:00
done