瀏覽代碼

Run pdfinfo after creating presentation PDF

Ryan C. Thompson 5 年之前
父節點
當前提交
ee306cfa58
共有 1 個文件被更改,包括 12 次插入8 次删除
  1. 12 8
      Snakefile

+ 12 - 8
Snakefile

@@ -371,14 +371,18 @@ rule build_presentation_beamer:
         theme='Boadilla',
         # https://pandoc.org/MANUAL.html#variables-for-beamer-slides
         aspectratio='169',
-    shell: '''
-    pandoc \
-      -f markdown -t beamer \
-      --pdf-engine=xelatex \
-      -o {output.pdf:q} \
-      -H {input.extra_preamble:q} \
-      {input.mkdn_file:q}
-    '''
+    run:
+        shell('''
+        pandoc \
+          -f markdown -t beamer \
+          --pdf-engine=xelatex \
+          -o {output.pdf:q} \
+          -H {input.extra_preamble:q} \
+          {input.mkdn_file:q}
+        ''')
+        if PDFINFO_PATH:
+            shell('''{PDFINFO_PATH} {output.pdf:q}''')
+
 
 rule build_presentation_ppt:
     input: