Commit 53c38cd2 authored by Stan Hu's avatar Stan Hu 🔴

Revert pandoc arguments change

The Docker image uses pandoc v1.17.2, which does not have
the --pdf-engine flag yet.
parent debf3157
Pipeline #32713775 failed with stages
in 15 minutes and 46 seconds
......@@ -457,7 +457,7 @@ rule %r{^public/.*\.pdf} => [->(f) { f.pathmap('%X.html') }, PDF_TEMPLATE] do |p
wq
REGEX
end
options = %W[--template=#{PDF_TEMPLATE} --pdf-engine=xelatex -V date=#{Time.now}]
options = %W[--template=#{PDF_TEMPLATE} --latex-engine=xelatex -V date=#{Time.now}]
warn "Generating #{pdf.name}"
cmd = ['pandoc', *options, '-o', pdf.name, pdf.source]
abort("command failed: #{cmd.join(' ')}") unless system(*cmd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment