Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to use MaTeX in WSL #31

Open
ghost opened this issue Nov 22, 2019 · 4 comments
Open

How to use MaTeX in WSL #31

ghost opened this issue Nov 22, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 22, 2019

I have a Windows machine, which don't have LaTeX installed, but I have install TeX in windows subsystem in Linux, so how to config MaTeX to use LaTeX installed in WSL?

@szhorvat
Copy link
Owner

szhorvat commented Nov 23, 2019 via email

@ghost
Copy link
Author

ghost commented Nov 23, 2019

Ok, maybe replace it with RunProcess[{"wsl","pdflatex"}, args___] etc.(a way to call wsl function in windows) will work.

@szhorvat
Copy link
Owner

szhorvat commented Nov 23, 2019 via email

@szhorvat
Copy link
Owner

szhorvat commented Dec 5, 2019

I looked into this briefly. While this is certainly a reasonable request, it does not seem to be trivial to implement in a robust way. Things to consider:

  • There may be more than one Linux environment. There should be a way to select which one to use.
  • Paths need to be converted. wslpath can do this.

Ideally, the entire WSL interface would be wrapped into a script, and this script could be used instead of pdflatex. The problem is that RunProcess won't run a script or a .cmd file. It requires an executable. As a workaround it may be possible to convert a batch file to an executable, but I have not tried this.

For the moment I'll have to put this aside because of lack of time.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant