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%"
],
相关推荐
bu_shuo11 天前
将AI生成的数学公式正确复制到word中
人工智能·chatgpt·word·latex
꧁Q༒ོγ꧂12 天前
LaTeX 语法入门指南
开发语言·latex
seasonsyy14 天前
Latex中&符号的作用:对齐
latex·software
seasonsyy15 天前
Latex:把图标以图片形式插入到某句话中
latex·software
爱数模的小云20 天前
美赛LaTeX小白入门指南
数学建模·latex·数模美赛
时光Autistic20 天前
【环境配置】安装LaTeX并配置到PyCharm使用
ide·python·pycharm·latex
seasonsyy23 天前
CTex 2.8.0 更改编辑区文字大小
latex·ctex·winedit
seasonsyy24 天前
CTex2.8.0.125改变编辑区背景颜色
latex·ctex
seasonsyy25 天前
CTex 2.9.2 更改编辑区文字大小
latex·ctex·winedit
小桥流水---人工智能1 个月前
tcolorbox 设置 breakable 后断页颜色失效问题及解决方案
latex