blob: 045ec34f6052d493e874531dfa3011d6e18bf259 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|