I'm using the pandoc-mode package for easy conversion between multiple formats. I set the pdf-engine option in pandoc-mode to xelatex, but when I am trying to convert a markdown file to a PDF, pandoc-mode always uses the latex PDF engine, which, by default, does not include support for UTF-8 characters. Pdf-engine-opt= STRING. Use the given string as a command-line argument to the pdf-engine. For example, to use a persistent directory foo for latexmk ’s auxiliary files, use -pdf-engine-opt=-outdir=foo. Note that no check for duplicate options is done. Citation rendering-C, -citeproc.
[makePDF] temp dir:
/private/var/folders/65/gpz82csd1_s358m496fk0ff5lmh3lj/T/tex2pdf.2846
[makePDF] Command line:
pdflatex '-halt-on-error' '-interaction' 'nonstopmode' '-output-directory' '/private/var/folders/65/gpz82csd1_s358m496fk0ff5lmh3lj/T/tex2pdf.2846' '/private/var/folders/65/gpz82csd1_s358m496fk0ff5lmh3lj/T/tex2pdf.2846/input.tex'
[makePDF] Environment:
('TEXINPUTS','/private/var/folders/65/gpz82csd1_s358m496fk0ff5lmh3lj/T/tex2pdf.2846:')
('TERM_PROGRAM','Apple_Terminal')
('SHELL','/bin/bash')
('TERM','xterm-256color')
('TMPDIR','/var/folders/65/gpz82csd1_s358m496fk0ff5lmh3lj/T/')
('Apple_PubSub_Socket_Render','/private/tmp/com.apple.launchd.NXDmkrZaBu/Render')
('TERM_PROGRAM_VERSION','388.1.1')
('TERM_SESSION_ID','92FF0D2D-9B19-4131-AA4E-D6B17275210D')
('USER','kyle')
('SSH_AUTH_SOCK','/private/tmp/com.apple.launchd.CJLCVbzkwg/Listeners')
('__CF_USER_TEXT_ENCODING','0x67480E71:0x0:0x2')
('PATH','/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin')
('PWD','/Users/kyle/Desktop')
('LANG','en_NZ.UTF-8')
('XPC_FLAGS','0x0')
('XPC_SERVICE_NAME','0')
('SHLVL','1')
('HOME','/Users/kyle')
('LOGNAME','kyle')
('DISPLAY','/private/tmp/com.apple.launchd.2MooiJHYB4/org.macosforge.xquartz:0')
('SECURITYSESSIONID','186a7')
('_','/usr/local/bin/pandoc')
('OLDPWD','/Users/kyle')
[makePDF] Contents of /private/var/folders/65/gpz82csd1_s358m496fk0ff5lmh3lj/T/tex2pdf.2846/input.tex:
Would really appreciate some help with this if anyone has any ideas.