samatraPDF不能inverse search解决方法

  1. samatraPDF + Texlive + VSCode的配置:https://zhuanlan.zhihu.com/p/434142338
  2. 不能跳转,在
    VSCode中设置json文件参考https://forum.sumatrapdfreader.org/t/inverse-search-not-performed-for-vs-code-exe/4486

The solution which worked for me is the following (note the --ms-enable-electron-run-as-node as additional argument):

复制代码
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.viewer.command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
"latex-workshop.view.pdf.external.viewer.args": [
    "-forward-search",
    "%TEX%",
    "%LINE%",
    "-reuse-instance",
    "-inverse-search",
    "\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\cli.js\" --ms-enable-electron-run-as-node -r -g \"%f:%l\"",
    "%PDF%"
],
"latex-workshop.view.pdf.external.synctex.command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
"latex-workshop.view.pdf.external.synctex.args": [
    "-forward-search",
    "%TEX%",
    "%LINE%",
    "-reuse-instance",
    "-inverse-search",
    "\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\cli.js\" --ms-enable-electron-run-as-node -r -g \"%f:%l\"",
    "%PDF%"
],
相关推荐
seasonsyy2 天前
CTex 2.8.0 更改编辑区文字大小
latex·ctex·winedit
seasonsyy3 天前
CTex2.8.0.125改变编辑区背景颜色
latex·ctex
seasonsyy4 天前
CTex 2.9.2 更改编辑区文字大小
latex·ctex·winedit
小桥流水---人工智能7 天前
tcolorbox 设置 breakable 后断页颜色失效问题及解决方案
latex
kyzoon14 天前
LaTeX Tikz 绘图输出至图片
latex·tikz
恶猫14 天前
Win|WinEdt( LaTeX 编辑器),下载及安装教程
windows·编辑器·latex·winedt
Jovin Giogic21 天前
简明教程:记录 Ubuntu系统命令行安装TexLive,配置vscode
linux·vscode·ubuntu·latex·texlive
verse_armour24 天前
markdown插入文献引用并导出pdf
pdf·markdown·pandoc·latex
摸森堡25 天前
vs code + latex使用攻略
latex
我的golang之路果然有问题1 个月前
word中latex插入矩阵的语法问题
笔记·学习·矩阵·word·latex·template method·分享