I use LaTex a lot in Ubuntu 14.04. Recently I came to know about the sagetex package and installed sage-6.8-x86_64-Linux . Suppose the tex file is example.tex , then one has to run the following commanda to make it work.
pdflatex example.tex
sage example.sagetex.sage
pdflatex example.tex
Now I want to do run these commands from Texmaker. So I go to the menu and then Options → Configure → QuickBuild → User and define there (in User) these three commands. I used the following pipeline
pdflatex -synctex=1 -interaction=nonstopmode %.tex | sage %.sagetex.sage | pdflatex -synctex=1 -interaction=nonstopmode %.tex
After that when I run Quick Build on the file from texmaker, I get a error message,
Error : could not start the command
I want to know why the Quick Build command does not work ? also if anyone could help me so that I could run those command from Texmaker.
pdflatex -synctex=1 -interaction=nonstopmode %.texand remove the rest? – jarauh Oct 25 '15 at 13:10pdflatexdo. But after that aexample.sagetex.sagefile is created. Then I have to run thesagecommand on that file. At last againpdflatex. This is howsagetexworks. – ddas Oct 25 '15 at 16:16Quickbuildcommand. I have to write the whole path of the commandsagein Texmaker. I replace my pipeline inOptions → Configure → QuickBuild → Userwithpdflatex -synctex=1 -interaction=nonstopmode %.tex | /home/ddas/sage-6.8-x86_64-Linux/sage %.sagetex.sage | pdflatex -synctex=1 -interaction=nonstopmode %.tex. And that also worked for me. Thank you guys.. – ddas Oct 26 '15 at 08:30