summaryrefslogtreecommitdiff
path: root/platform/bin/pandoc/article/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'platform/bin/pandoc/article/run.sh')
-rwxr-xr-xplatform/bin/pandoc/article/run.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/bin/pandoc/article/run.sh b/platform/bin/pandoc/article/run.sh
new file mode 100755
index 0000000..045ec34
--- /dev/null
+++ b/platform/bin/pandoc/article/run.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+cd `dirname $0`
+rm -f *.pdf *.aux *.log *.nav *.out *.snm *.toc *.vrb
+
+for i in `ls *.md`; do
+ f=`echo $i | cut -d '.' -f1`
+ # echo "F === $f"
+ # read
+ echo "++++ I will generate a PDF of the article"
+ pandoc $f.md.info -o $f.info.tex
+ echo "deberia existir ahora: $f.info.tex"
+ # read
+ sed -e "/% INSERT/r./$f.info.tex" info.tpl > info.tex
+ pandoc -B info.tex --pdf-engine=xelatex -V geometry:margin=1in $f.md -o $f.pdf
+done
+
+rm *.tex *.info
+
+# make