Part of the project I'm working on involves creating a PDF file using Pandoc. I have a part of a program that makes PDF. To figure out how to do this, I am trying to change fuel.hsfrom JGM BayHack 2014 .
However, I have difficulties. I have the following function:
export :: (MonadIO m) => Pandoc -> m (Either BL.ByteString BL.ByteString)
export = liftIO . makePDF "xelatex" writeLaTeX def { writerStandalone = True }
In the body of my modified fuel. hs
pdfbytes <- export letter
print pdfbytes
I get the following output:
$ stack runghc fuel.hs
Run from outside a project, using implicit global project config
Using resolver: lts-3.7 from implicit global project config file: /home/stevejb/.stack/global/stack.yaml
Left "! Emergency stop.\n<*> /tmp/tex2pdf.8283/input.tex\n \nNo pages of output.\nTranscript written on /tmp/tex2pdf.8283/input.log.\n"
"Fail"
However, the referenced log file does not exist. I am not sure how to debug this. I have xelatex installed.
source
share