Does anyone know how to set up inverse search with sumatra pdf? The sumatra-forwardsearch package works when compiling latex files, but I have not be able to get inverse search working. Thanks for your help.
As far as I know Atom currently cannot open a file at a specific line from the command line, so I don’t think this is possible.
Atom can open files at specific lines, but there is a bug with the feature depending on how you do it:
Aha, I did not know that.
In that case, in theory something like this should work, perhaps once the bug is fixed. Assuming SumatraPDF is in your path, if not cd to its directory, execute the following in your console or command prompt:
SumatraPDF.exe -inverse-search "\"C:\Path\To\atom.exe\" \"%f:%l\""
In case of someone still could not make it work, I entered the following command in the “Set inverse search command-line” field in the Settings panel of SumatraPDF,
This works as of Atom v1.8 and SumatraPDF 3.1.1 on Windows 10.
Hope this helps.
I found that this version works the best, that way if there are spaces in your directory names it still points to the right location.
I also entered it in the “Set inverse search command-line” field in the Settings panel of SumatraPDF.