jupyterlab / jupyterlab-latex

JupyterLab extension for live editing of LaTeX documents
BSD 3-Clause "New" or "Revised" License
630 stars 69 forks source link

Fix a bug of synctex edit command #231

Closed naoh16 closed 2 months ago

naoh16 commented 2 months ago

This PR would be a solution for the following issues:

Their problem are occured when the notebook_dir is a blank, because the generated path is an absolute path from the root: e.g. '/sample.tex'.

NOTE: This is a same solution of the implementation in build_synctex_view_cmd() function.

https://github.com/jupyterlab/jupyterlab-latex/blob/77beeb8b19a08a43f03d02113db5c36eb3874c4c/jupyterlab_latex/synctex.py#L108-L118

github-actions[bot] commented 2 months ago

Binder :point_left: Launch a Binder on branch _naoh16/jupyterlab-latex/fixsynctex