Browse Source

Run pdfinfo after creating presentation PDF

Ryan C. Thompson 5 years ago
parent
commit
ee306cfa58
1 changed files with 12 additions and 8 deletions
  1. 12 8
      Snakefile

+ 12 - 8
Snakefile

@@ -371,14 +371,18 @@ rule build_presentation_beamer:
         theme='Boadilla',
         theme='Boadilla',
         # https://pandoc.org/MANUAL.html#variables-for-beamer-slides
         # https://pandoc.org/MANUAL.html#variables-for-beamer-slides
         aspectratio='169',
         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:
 rule build_presentation_ppt:
     input:
     input: