Skip to content

Commit

Permalink
Merge pull request #2 from eigenraum/patch-1
Browse files Browse the repository at this point in the history
Fix synctex inverse_search_command
  • Loading branch information
ahrm committed Mar 17, 2022
2 parents 30ac230 + 8695ce0 commit 04de916
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,14 @@ Synctex
- Press :code:`f4` to toggle synctex mode (:code:`toggle_synctex` command). While in this mode, right clicking on any text opens the corresponding :code:`tex` file in the appropriate location.
- You can configure the synctex inverse search command using :code:`inverse_search_command` config in :code:`prefs.config` . Here is an example for VsCode (%1 stands for the name of the file and %2 stands for the line number in the file)::

inverse_search_command "C:\path\to\vscode\Code.exe" -r -g %1:%2
inverse_search_command "C:\path\to\vscode\Code.exe" "C:\path\to\vscode\resources\app\out\cli.js" --ms-enable-electron-run-as-node -r -g "%1:%2"
- Here is a sample configuration for latex workshop in VSCode::

"latex-workshop.view.pdf.external.synctex.command": "C:\\path\\to\\sioyek.exe",
"latex-workshop.view.pdf.external.synctex.args": [
"--inverse-search",
"\"C:\\path\\to\\vscode\\Code.exe\" -r -g %1:%2",
"\"C:\\path\\to\\vscode\\Code.exe\" \"C:\\path\\to\\vscode\\resources\\app\\out\\cli.js\" --ms-enable-electron-run-as-node -r -g \"%1:%2\"",
"--reuse-instance",
"--forward-search-file",
"%TEX%",
Expand Down

0 comments on commit 04de916

Please sign in to comment.