浏览代码

Added scripts for pdf generation

Federico Amedeo Izzo 9 年之前
父节点
当前提交
80927e2ec4
共有 3 个文件被更改,包括 12 次插入0 次删除
  1. 7 0
      makefile
  2. 2 0
      markdown2pdf.sh
  3. 3 0
      markdown2pdf2.sh

+ 7 - 0
makefile

@@ -0,0 +1,7 @@
+all: concatenate
+
+[lesson_]%.pdf:	[lesson_]%.md 
+	pandoc --latex-engine=xelatex -t latex+tex_math_dollars -o $@ $<
+
+concatenate: [lesson_]%.pdf
+	pdftk $< cat output complete.pdf

+ 2 - 0
markdown2pdf.sh

@@ -0,0 +1,2 @@
+for file in *.md; do pandoc --latex-engine=xelatex -t latex+tex_math_dollars -o 
+$file.pdf $file; done

+ 3 - 0
markdown2pdf2.sh

@@ -0,0 +1,3 @@
+for i in {1..10}; do pandoc --latex-engine=xelatex -t 
+latex+tex_math_dollars -o lesson_$i.pdf lesson_$i.md; done
+