diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-06-08 11:25:43 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-06-08 11:25:43 +0200 |
commit | 998bea2eb08f739897665f77459381820b3edae1 (patch) | |
tree | 614fad95e2c0ecebe59d4ef14df601d0cf6c751e | |
parent | 19aad6c4d53fce5a00b4d53775c6b1c0824c4f3d (diff) | |
download | uni-998bea2eb08f739897665f77459381820b3edae1.tar uni-998bea2eb08f739897665f77459381820b3edae1.tar.gz uni-998bea2eb08f739897665f77459381820b3edae1.tar.bz2 uni-998bea2eb08f739897665f77459381820b3edae1.tar.xz uni-998bea2eb08f739897665f77459381820b3edae1.zip |
Use beamer default
-rwxr-xr-x | gup/pdf.gup | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gup/pdf.gup b/gup/pdf.gup index 9d29900..d0ebac5 100755 --- a/gup/pdf.gup +++ b/gup/pdf.gup | |||
@@ -20,7 +20,7 @@ trap cleanup EXIT | |||
20 | 20 | ||
21 | typeset -a beamerAspects | 21 | typeset -a beamerAspects |
22 | beamerAspects=(43 169) | 22 | beamerAspects=(43 169) |
23 | beamerAspect=$beamerAspects[1] | 23 | beamerAspect="" |
24 | 24 | ||
25 | if [[ $beamerAspects[(i)${2:r:e}] -le $#beamerAspects ]]; then | 25 | if [[ $beamerAspects[(i)${2:r:e}] -le $#beamerAspects ]]; then |
26 | beamerAspect=${2:r:e} | 26 | beamerAspect=${2:r:e} |
@@ -63,7 +63,8 @@ cleanupList+=("cd /" "rm -rfv ${compileDir}") | |||
63 | 63 | ||
64 | if [[ ${base:t:r} == "presentation" ]]; then | 64 | if [[ ${base:t:r} == "presentation" ]]; then |
65 | gup -u ${buildDir}/beamer-template.tex | 65 | gup -u ${buildDir}/beamer-template.tex |
66 | extraArgs+=(--template=${buildDir}/beamer-template.tex -M "aspectratio=${beamerAspect}") | 66 | extraArgs+=(--template=${buildDir}/beamer-template.tex) |
67 | [[ -n "${beamerAspect}" ]] && extraArgs+=(-M "aspectratio=${beamerAspect}") | ||
67 | fi | 68 | fi |
68 | 69 | ||
69 | logged pandoc ${extraArgs} -o ${compileDir}/${base:t:r}.tex ${input} >&2 | 70 | logged pandoc ${extraArgs} -o ${compileDir}/${base:t:r}.tex ${input} >&2 |