LoginSignup
4
1

More than 3 years have passed since last update.

LaTeX WorkshopでSumatraPDFを使う

Last updated at Posted at 2020-04-24

Wiki等のものをコピペしても動かなかったので調べました.

設定

settings.json に以下のものを追加します.

"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.viewer.command": 
        "C:\\(pathが入る)\\Local\\SumatraPDF\\SumatraPDF.exe",
"latex-workshop.view.pdf.external.viewer.args": [
        "-reuse-instance",
        "%PDF%"
],
"latex-workshop.view.pdf.external.synctex.command": 
        "C:\\(pathが入る)\\SumatraPDF\\SumatraPDF.exe",
"latex-workshop.view.pdf.external.synctex.args": [
        "-reuse-instance",
        "-forward-search",
        "%TEX%",
        "%LINE%",
        "%PDF%"
],

これでforward searchとpdfの表示ができました.inverse searchはTeX Wikiのもので動きました.
参照:
James-Yu/LaTeX-Workshop View
https://github.com/James-Yu/LaTeX-Workshop/wiki/View,
TeX Wiki : SumatraPDF との synctex 連携
https://texwiki.texjp.org/?Visual%20Studio%20Code%2FLaTeX#g142ea7e

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1