Skip to content

Commit 5a48105

Browse files
authored
Fix a bug of synctex edit command (#231)
1 parent 77beeb8 commit 5a48105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyterlab_latex/synctex.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ def build_synctex_edit_cmd(self, pdf_name, pos):
7979
"""
8080
c = LatexConfig(config=self.config)
8181

82+
pdf_path = os.path.join(self.notebook_dir, pdf_name+".pdf")
83+
8284
cmd = (
8385
c.synctex_command,
8486
'edit',
8587
'-o',
86-
f'{pos["page"]}:{pos["x"]}:{pos["y"]}:{self.notebook_dir}/{pdf_name+".pdf"}'
88+
f'{pos["page"]}:{pos["x"]}:{pos["y"]}:{pdf_path}'
8789
)
8890

8991
return cmd

0 commit comments

Comments
 (0)