You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using the SageTeX functionality of this package on a TeX file that I had saved in Google Drive. When I tried to do so, it appeared that Sage was unable to find the correct file since the file path was being split on the first space in the filename. After a bit of digging, it seems like the issue lies in the definition of the sage-shell-sagetex:tex-master-maybe function. In my config file I added the advice
and this seemed to fix the line break issue I mentioned above.
At this point, it seemed that the correct filename was being fed to Sage, but using shell-quote-argument introduced escape slashes before the spaces in the filename that now caused issues in the function sage_tex_load in emacs_sage_shell.py. In particular, the .expanduser() method no longer worked on the input. I've modified this function to remove the escape slashes introduced by shell-quote-argument as follows:
So far this seems to be working, but I don't know if this will cause problems down the road or if there's a better way to handle filenames with spaces in them.
Thanks for writing a very nice package. I've gotten some good use out of it already, and I look forward to using it more in my LaTeX workflow.
The text was updated successfully, but these errors were encountered:
I tried using the SageTeX functionality of this package on a TeX file that I had saved in Google Drive. When I tried to do so, it appeared that Sage was unable to find the correct file since the file path was being split on the first space in the filename. After a bit of digging, it seems like the issue lies in the definition of the
sage-shell-sagetex:tex-master-maybe
function. In my config file I added the adviceand this seemed to fix the line break issue I mentioned above.
At this point, it seemed that the correct filename was being fed to Sage, but using
shell-quote-argument
introduced escape slashes before the spaces in the filename that now caused issues in the functionsage_tex_load
inemacs_sage_shell.py
. In particular, the.expanduser()
method no longer worked on the input. I've modified this function to remove the escape slashes introduced byshell-quote-argument
as follows:So far this seems to be working, but I don't know if this will cause problems down the road or if there's a better way to handle filenames with spaces in them.
Thanks for writing a very nice package. I've gotten some good use out of it already, and I look forward to using it more in my LaTeX workflow.
The text was updated successfully, but these errors were encountered: