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%"
],
相关推荐
cnkeysky5 小时前
vscode 配置 latex
vscode·latex
磁悬浮青蛙呱呱呱13 天前
xdvipdfmx:fatal: File ended prematurely. No output PDF file written.
latex
EtherWanderer14 天前
Markdown 到 LaTeX:Overleaf 学习笔记
笔记·学习·latex
hallo-ooo16 天前
【LaTex】基础语法入门
latex
伊织code19 天前
LaTeX OCR - 数学公式识别系统
python·ai·ocr·latex·数学公式识别
Etincelle1 个月前
【LaTeX】Word插入LaTeX行间公式如何编号和对齐
word·wps·latex
伊织code1 个月前
MixTeX - 支持CPU推理的多模态LaTeX OCR
python·ai·ocr·latex·mixtex
CarnivoreRabbit2 个月前
Beamer-LaTeX学习(教程批注版)【2】
学习·latex·beamer
蔗理苦2 个月前
2025-04-03 Latex学习1——本地配置Latex + VScode环境
ide·vscode·学习·latex
北极象2 个月前
Flutter中实现拍照识题的功能
flutter·latex·数学公式