Skip to content

Commit

Permalink
Fix a bug of synctex edit command (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
naoh16 authored Sep 3, 2024
1 parent 77beeb8 commit 5a48105
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jupyterlab_latex/synctex.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ def build_synctex_edit_cmd(self, pdf_name, pos):
"""
c = LatexConfig(config=self.config)

pdf_path = os.path.join(self.notebook_dir, pdf_name+".pdf")

cmd = (
c.synctex_command,
'edit',
'-o',
f'{pos["page"]}:{pos["x"]}:{pos["y"]}:{self.notebook_dir}/{pdf_name+".pdf"}'
f'{pos["page"]}:{pos["x"]}:{pos["y"]}:{pdf_path}'
)

return cmd
Expand Down

0 comments on commit 5a48105

Please sign in to comment.