Configuring Sage with Texmaker for a quickbuild

asked 2015-06-24 08:20:26 +0200

Jason021 gravatar image


After some toying around I have gotten sage installed, and I have Texmaker installed. I have run the example.tex file that comes with sage through the pdflatex, which generated the .sage file. I then successfully compiled the .sage file within sage itself, and then recompiled in texmaker via pdflatex and got a fully configured file. Thus everything seems to be running fine.

I also adjusted the latexmkrc file as per

The problem comes when I try to configure the quickbuild to get Texmaker to run all of this at once. I have tried configuring the metapost to sage %.sagetex.sage and then created a macro to run latexmk then metapost then latexmk then pdfviewer as per this post here:

When I try to run that macro, it gives the oh-so-helpful error of "Error : could not start the command". For diagnostic purposes I tried running through the custom macro just latexmk, and just the custom metapost. Both work fine (minus the expected failures in context) individual, however the macro of latexmk then metapost gives that error.

The helpful people at the tex stackexchanged recommended I posted here to see if anyone had an idea as to where the error is and/or how to solve it.

edit retag flag offensive close merge delete