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%"
],
相关推荐
我的golang之路果然有问题3 天前
word中latex插入矩阵的语法问题
笔记·学习·矩阵·word·latex·template method·分享
钱彬 (Qian Bin)5 天前
从零开始发表SCI论文—第1篇:安装Latex写作工具
latex·vs code·sci论文·环境准备
他来自江湖9 天前
西南科技大学,研究生开题报告latex模板
科技·latex·开题报告·西南科技大学
Invinc-Z10 天前
LaTeX 个人简历模板
latex
嘿嘻哈呀19 天前
MaxTex下载及LaTex环境配置
latex·maxtex·latex workshop
喝凉白开都长肉的大胖子1 个月前
比较 main.tex 的两个不同版本(例如旧版和新版),并生成一个带有修改标记(如删除线、高亮、修订注释)的 PDF 或文本输出。
pdf·latex
麻雀无能为力1 个月前
LaTeX基础使用
latex
Invinc-Z1 个月前
国内外期刊和学位论文等LaTeX模板编译报错如何解决
latex
Invinc-Z1 个月前
一份简短的LaTeX相关术语的介绍
latex
吴禅染1 个月前
MDPI投稿overleaf:bib问题
latex