sagetex
sagetex copied to clipboard
How to use SageTeX on Windows?
trafficstars
- I have installed Sage at
C:\Users\xyz\AppData\Local\SageMath 9.3. C:\Users\xyz\AppData\Local\SageMath 9.3\runtime\binandC:\Users\xyz\AppData\Local\SageMath 9.3\runtime\opt\sagemath-9.3have been addeded toPATHenvironment variable.sagetexfolder fromC:\Users\xyz\AppData\Local\SageMath 9.3\runtime\opt\sagemath-9.3\local\share\texmf\tex\latexhas been copied to TeXMF LocalC:\texlive\texmf-local\tex\latex\local.- Installed Python
C:\Users\xyz\AppData\Local\Programs\Python\Python310has been added toPATHenvironment variable.
Attempting
- Now I copy the provided
example.texfromC:\Users\xyz\AppData\Local\SageMath 9.3\runtime\opt\sagemath-9.3\local\share\texmf\tex\latex\sagetextoc:\myfolder. - Open command prompt (terminal) with administrative privilege enabled.
- Run
pdflatex exampleand produces some warnings that are normal. A file namedexamples.sagetex.sageis also produced. - Run
bash -l sage example.sagetex.sagebut it fails with the following errors:
/opt/sagemath-9.3/src/bin/sage-preparse: File 'example.sagetex.sage' is missing
python3: can't open file 'example.sagetex.sage.py': [Errno 2] No such file or directory
Question
What am I missing here?
Are you actually able to run Sage in a terminal?
Probably it has to do with the way one needs to provide a filename to a Cygwin application (you're running Sage on Cygwin here).
PS. Sorry for the delay in answering - I somehow turned off notifiations for this repo :-(