I've tried to make a bash script that uses pandoc in conjunction with LaTeX to convert my university notes from markdown to PDF. I initially copied the idea and script from someone of which I've edited the script and forked the project, the script I'm having the error with can be found here: https://github.com/alifhughes/notes/blob/master/compile_notes.sh
I'm really new to pandoc, LaTeX and everything that comes with it so I feel i might have left something out during installation of all these components. Currently I've installed: BasicTex, pandoc, ack (used in the script), Ghostscript and luatex.
When I run the script in my shell I get the following error:
My first thought was to install luatex, which i've done, as it was missing some .def file from that, but it hasn't solved the problem. I think this is similar to this problem also posted on the tex stackoverflow: After MiKTeX update when using LuaLaTeX: Package pgf Error: Driver file ``pgfsys-luatex.def'' not found
But if I'm 100% honest a lot of that is completely Alien to me and doesn't make much sense.
Does anyone have a possible idea of what could be wrong?? Thanks in advanced!
graphics-def
package. You should update your installation, and possibly ask to install graphics-def.TeX Live Utility
, a MacOSX interface to TeX Live Package manager. B.t.w., is it TeX Live 2016 you have?*/*.pdf
refer to? Diagnose by making the script more verbose: remove options which suppress output or send it to/dev/null
. Addset -x
. In any case, you don't want toexit 0
at the end like that. You want toexit 1
if the process doesn't succeed. Why do youunset
variables in the loops? What do you think you are releasing them for exactly? This is entirely pointless as far as I can see.IFS=$'\n'
looks very odd - are you sure about this?