studio-lab-examples icon indicating copy to clipboard operation
studio-lab-examples copied to clipboard

Allow installing XeLaTeX via apt-get

Open AtivJoshi opened this issue 2 years ago • 9 comments

Is your feature request related to a problem? Please describe. Unable to use the PGF image format in matplotlib as it requires the installation of XeLaTeX.

Describe the solution you'd like Allow the installation of XeLaTeX, preferably via apt or apt-get since it cannot be installed using pip or conda

Describe alternatives you've considered Tried installing texlive-core package via conda, but it does not include XeLaTeX.

AtivJoshi avatar May 06 '22 13:05 AtivJoshi

I understand XeLaTeX is a kind of TeX that can include font and can handle Unicode. We do not provide apt install so that to install XeLateX seems to be difficult. Do you try to convert Jupyter Notebook to PDF?

https://nbconvert.readthedocs.io/en/latest/install.html

icoxfog417 avatar May 07 '22 11:05 icoxfog417

This also has the same issue. The nbconvert docs asks you to install tex separately. There is no way to install XeLaTeX via pip or conda.

AtivJoshi avatar May 07 '22 12:05 AtivJoshi

I found tectonic is one of the alternative of XeLaTeX. There was not many document about it so that I'm not clear it enables convert to PDF.

https://github.com/jupyter/nbconvert/issues/808

icoxfog417 avatar May 07 '22 13:05 icoxfog417

Thanks for the suggestion, it looks lie a great alternative. Although tectonic is dependent on xelatex, installing tectonic does not install xelatex. And matplotlib does not support tectonic yet. I guess the only option is to wait!!

AtivJoshi avatar May 07 '22 13:05 AtivJoshi

The TeX families are complex and not easy to install. Do you write article on Studio Lab? We are interested in the use case to output PDF on Studio Lab. If it is frequent needs. we will consider to install XeLaTeX be default.

icoxfog417 avatar May 07 '22 14:05 icoxfog417

No, I need to generate some plots using matplotlib with proper fonts, which is to be included in a latex article.

AtivJoshi avatar May 07 '22 14:05 AtivJoshi

Thanks - I will note this as an enhancement request. Can you tell me if this is for school, a class, or a type of project?

MicheleMonclova avatar May 18 '22 04:05 MicheleMonclova

This was a college project.

AtivJoshi avatar May 18 '22 04:05 AtivJoshi

I found that export to PDF causes the error because XeLaTeX is required.

image

image

icoxfog417 avatar Jun 26 '22 06:06 icoxfog417