Advertisement
diaaa

Untitled

Apr 11th, 2021
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. !config
  2. # SageTeX-Rule for arara.
  3. #
  4. # Dear Windows-users, please check the paths
  5. # pathToBashExecutive and pathToSageStartfile
  6. # due to your Sage-installation!
  7. identifier: sagetex
  8. name: SageTeX
  9. authors:
  10. - TeXnician (Author)
  11. - cis (Idea)
  12. arguments: []
  13. commands:
  14. - name: A SageTeX Rule for arara
  15. command: >
  16. @{
  17. pathToBashExecutive = "C:\\Program Files\\SageMath 9.2\\runtime\\bin\\bash";
  18. pathToSageStartfile = "C:/Program Files/SageMath 9.2/runtime/opt/sagemath-9.2/sage";
  19. pathOfCurrentWorkingFolder = currentFile().getParent();
  20. theWindowsCommand = getCommand(pathToBashExecutive, "-l", pathToSageStartfile, "-c", "os.chdir(r'" + pathOfCurrentWorkingFolder + "'); load('" + getBasename(currentFile()) + ".sagetex.sage')");
  21. return isWindows(theWindowsCommand, getCommand("sage", getBasename(reference) + ".sagetex.sage"));
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement