[Tex/LaTex] ny way to run windows Texlive on WSL

debianinstallinglinuxtexlivewindows

Is there any way to run existing TexLive installed on my Windows 10 through the Linux feature of windows WSL (windows sub-system for linux) or should it be installed separately on the WSL?

I have the feeling that installing a complete TL on the WSL while it is already installed on windows will be a waste of hardware memory space resources.

Best Answer

The only advantage of installing TL over WSL is the speed at compile times, I did the test installing using WSL 1.0 (version 2.0 is not yet available). If you're looking to improve the compile times a bit, it's better to install the 64-bit TL version.

Back to your question, the answer is YES, to use TL from windows under WSL, you only have to call the executables with their extension .exe. for example:

pdflatex.exe file.tex

And if you have decided to install TL under WSL, you only have to add wsl before the executable. for example:

wsl pdflatex file.tex

(be careful if you use xelatex, you will have to install fc and some more libraries).

Related Question