I am trying to use sagetex. Now in the console in sage it is written:"Sage processing complete. Run LaTeX on Beiapiel5.tex again." But when I compile the latex code again nothing happens. Now I have taken the example at the Sagemath site. I have pasted the code into Texmaker called the file st_example.tex. After running it in sage I have got the files, st_example.sagetex.sout,st_example.sagetex.scmd,sage-plots-for-st_example.tex,st_example.sagetex.sage.py.
Asked
Active
Viewed 366 times
0
sagetexyou need LaTeX code such as the example at the Sagemath site; call it MyFile.tex. First, you run LaTeX on that, to create a.sagefile. Second, you process that using Sage, as explained here. Finally, run LaTeX on that to create MyFile.pdf which will be in the same directory. If you have no pdf file, there should be an error message in MyFile.log. What does it say? – DJP Jun 13 '20 at 16:55sagetex.sty. That style file is included within the Sage distribution or may be downloaded from CTAN. – murray Jun 13 '20 at 17:08sagetex.sty, then either: (1) copy the filesage.enginefrom~/Library/TeXShop/Engines/Inactive/Sageto~/Library/TeXShop/Engines, edit it so that the version of Sage referenced is your actual version, put% !TEX TS-program = sageat the top of your file, and Typeset using the sage engine; or else copyplatexmkrcfrom~/Library/TeXShop/Engines/Inactive/Sageinto the same folder as your source.texfile, put% !TEX TS-program = pdflatexmk, and Typeset using the pdflatexmk engine. – murray Jun 13 '20 at 17:17.texfile and run Sage on the.sagefile, run latex on the.texfile again. It will take the files you mentioned to construct the final document. If you ran latex with apdflatexcommand, you should have aMyFile.pdfat the end. If you ran latex with alatexcommand, you should have aMyFile.dvifile at the end. If you have neither, openMyFile.logand read the error message. What does it say? – DJP Jun 14 '20 at 12:18