瀏覽代碼

Use 16:9 aspect ratio for Beamer slides

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

+ 4 - 1
Snakefile

@@ -367,7 +367,9 @@ rule build_presentation:
     output:
     output:
         pdf='{basename,presentation.*}.pdf'
         pdf='{basename,presentation.*}.pdf'
     params:
     params:
-        theme='Warsaw'
+        # https://pandoc.org/MANUAL.html#variables-for-beamer-slides
+        theme='Warsaw',
+        aspectratio='169',
     shell: '''
     shell: '''
     pandoc \
     pandoc \
       -f markdown -t beamer \
       -f markdown -t beamer \
@@ -375,6 +377,7 @@ rule build_presentation:
       -o {output.pdf:q} \
       -o {output.pdf:q} \
       -H {input.extra_preamble:q} \
       -H {input.extra_preamble:q} \
       -V theme:{params.theme:q} \
       -V theme:{params.theme:q} \
+      -V aspectratio:{params.aspectratio:q} \
       {input.mkdn_file:q}
       {input.mkdn_file:q}
     '''
     '''