ashthespy / Atom-LaTeX

The only LaTeX package you need for typesetting with Atom.
https://atom.io/packages/atom-latex
MIT License
22 stars 9 forks source link

Reverse Synctex opens new file #220

Closed jancurse closed 4 years ago

jancurse commented 4 years ago

System: Ubuntu 18.04 Latex: 2017.20180305-1 Atom: 1.29.0

Steps to reproduce: I compiled a .tex file within atom using atom-latex:build and view it as a tab within atom. I then try to reverse-sync using Ctrl-left click in the pdf

Result: Atom opens a new tab of the (correct) tex-file and points to the correct location in that file. (If I make changes in that new tab and compile using atom-latex:build, the pdf is unchanged (it seems to compile the old file which is still open in the original tab).)

Expected result: The cursor points to the correct location in the already opened tab.

Thank you.

Aerijo commented 4 years ago

I'm not sure what you mean by "current tex-file"? Is this the correct file that corresponds to that position in the PDF? And you are saying the correct file opens, but it does not place the cursor in the right position?

Also your Atom version is out of date; the current is 1.40.1

jancurse commented 4 years ago

I'm not sure what you mean by "current tex-file"? Is this the correct file that corresponds to that position in the PDF? And you are saying the correct file opens, but it does not place the cursor in the right position?

Also your Atom version is out of date; the current is 1.40.1

I changed the question to make this more clear.

ashthespy commented 4 years ago

@jancurse Is there a MWE of your issue? In the normal case,

  1. If the file is already open, Atom should just focus the tab, and not open a new editor tab.
  2. Unless you have "Save before build" it could just be that the file is not saved, and hence you don't see the changes?
ashthespy commented 4 years ago

Closing for now, feel free to respond with new info to reopen.