Ask Your Question
0

using sage engine during compilation of tex file

asked 2016-11-25 23:21:45 +0100

markus gravatar image

updated 2016-11-26 05:20:24 +0100

I would like to automate calling sage after compiling a tex file in TeXShop. I have copied the sage.engine file from ~/Library/TeXShop/Engines/Inactive/Sage to ~/Library/TeXShop/Engines/ and followed the instructions in About Sage.pdf.

I've included the line % !TEX TS-program = sage in my tex file, but when I compile the file the sage expressions don't compute. I only get ?? for sage expressions. If I run sage on the sagetex.sage file and re-compile the tex file, then everything looks good.

I'm running TeXShop 3.75 on MacOS 10.10.5

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-11-26 04:12:42 +0100

markus gravatar image

I've figured it out. I needed to edit the file ~/Library/TeXShop/Engines/sage.engine. The line /Applications/Sage.app/Contents/Resources/sage/sage "$sagename" needed to be changed to /Applications/Sage-6.5.app/Contents/Resources/sage/sage "$sagename"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2016-11-25 23:21:45 +0100

Seen: 251 times

Last updated: Nov 26 '16