Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Failing to properly install texlab alongside jupyterlab-latex & jupyterlab-lsp ? #1105

Open
valentin-poncet opened this issue Nov 11, 2024 · 0 comments

Comments

@valentin-poncet
Copy link

Hello all,

What I am trying to achieve :

I enjoy jupyter a lot, support the free and open standards philosophy. I use it for my data analysis in python and I like it, and would like now to do my document editing in it.

Thus I am trying to turn jupyterlab into a latex IDE like Overleaf. I want to be able to compile, find code piece from pdf and vice versa, and have decent auto-completions.

–––––––––––––––––––––––––––––––––––––––––––––––––––––

Steps I followed :

[From Fedora Silverblue with layered texlive-scheme-full]

I installed mamba with miniforge3-linux-64

Then,
mamba create -n latex
mamba activate latex
mamba install 'jupyterlab>=4.1.0,<5.0.0a0' jupyterlab-lsp jupyterlab-latex texlab chktex

I did not install tectonic since I already have a texlive install.

Then ,
jupyter lab --generate-config

Inside the generated file, I added :

c.LatexConfig.latex_command = 'xelatex'
c.LatexConfig.shell_escape = "allow"
c.LatexConfig.bib_command = 'biber'
c.LatexConfig.run_times = 2

–––––––––––––––––––––––––––––––––––––––––––––––––––––

What troubles me:

I was expecting out-of-the-box auto-completions. Like the one showcased on https://github.com/latex-lsp/texlab/

demo

However I have to call it with tab, then it lists (alphabetically ?) the « best » propositions and when I select one it pastes it where I pressed tab. If it’s a \begin it does not add the \end with proper environment (like showed in texlab demo) :

not_working_completion

bad_completion

–––––––––––––––––––––––––––––––––––––––––––––––––––––

What extra-steps I should take to get it working like showed ?

Fiddling with the json settings editor ?
Is it unachievable on jupyter ?

Here is my packages list in case it’s any useful.

packages.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant