3

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: padoc/latex-error-message

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!

closed as unclear what you're asking by TeXnician, Phelype Oleinik, Stefan Pinnow, Troy, Milo Aug 20 '18 at 14:21

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome to TeX SX! There was a reorganisation of the graphics definition files recently, and they're now in the graphics-def package. You should update your installation, and possibly ask to install graphics-def. – Bernard Sep 29 '16 at 21:37
  • Thanks for welcoming me and replying so quick! Is this the right package? github.com/latex3/graphics-def or am I completely wrong? If so how do I go about installing that? Im on OSX if that helps.. sorry for the nooby questions, as I said, I'm very new to this all! – Alistair Hughes Sep 29 '16 at 22:01
  • I think what you mention is the development version. you probably should download this one, but preferably, you should install it via TeX Live Utility, a MacOSX interface to TeX Live Package manager. B.t.w., is it TeX Live 2016 you have? – Bernard Sep 29 '16 at 22:08
  • 1
    You will save yourself a great deal of frustration if you install MacTeX rather than BasicTeX. Unless you are on a device with serious space limitations, installing MacTeX should be a no brainer. If you do have serious constraints on the device, is there another machine you could use TeX on? Even if you know what you're doing, it will be frustrating with just BasicTeX. But in the beginning, it will be much worse. – cfr Sep 30 '16 at 1:29
  • 1
    What does */*.pdf refer to? Diagnose by making the script more verbose: remove options which suppress output or send it to /dev/null. Add set -x. In any case, you don't want to exit 0 at the end like that. You want to exit 1 if the process doesn't succeed. Why do you unset 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? – cfr Sep 30 '16 at 1:54