Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !config
- # SageTeX-Rule for arara.
- #
- # Dear Windows-users, please check the paths
- # pathToBashExecutive and pathToSageStartfile
- # due to your Sage-installation!
- identifier: sagetex
- name: SageTeX
- authors:
- - TeXnician (Author)
- - cis (Idea)
- arguments: []
- commands:
- - name: A SageTeX Rule for arara
- command: >
- @{
- pathToBashExecutive = "C:\\Program Files\\SageMath 9.2\\runtime\\bin\\bash";
- pathToSageStartfile = "C:/Program Files/SageMath 9.2/runtime/opt/sagemath-9.2/sage";
- pathOfCurrentWorkingFolder = currentFile().getParent();
- theWindowsCommand = getCommand(pathToBashExecutive, "-l", pathToSageStartfile, "-c", "os.chdir(r'" + pathOfCurrentWorkingFolder + "'); load('" + getBasename(currentFile()) + ".sagetex.sage')");
- return isWindows(theWindowsCommand, getCommand("sage", getBasename(reference) + ".sagetex.sage"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement