[Tex/LaTex] “Go to source code” function with texstudio

forward-inverse-searchtexstudio

I am using Texstudio. A useful function of the integrated visualizer is that if I right click at some point of the pdf, I can go to the corresponding code. This works for all of my tex files, except ONE ! (the one I'm working on now, of course…)
When I click right, the other options are there (zoom in, zoom out, etc) but not go to source code.

Any idea how I can fix this ?

Best Answer

I believe the problem is related to a missing / defect yourFileName.synctex.gz file. In my case the problem was caused by Google Drive (other cloud sync services like Dropbox or OneDrive might cause the same issues).

To solve it, I removed all generated files (.aux, .log, .out, .pdf and .synctex.gz if it exists) and recreated the entire document. Afterwards the button was available again.

Related Question