Skip to content

Instantly share code, notes, and snippets.

@ychubachi
Last active August 6, 2019 08:56
Show Gist options
  • Save ychubachi/cd7ba9e6d07d0c5d5841d6aa56b71683 to your computer and use it in GitHub Desktop.
Save ychubachi/cd7ba9e6d07d0c5d5841d6aa56b71683 to your computer and use it in GitHub Desktop.
Visual Studio CodeのLaTeX Workshopの設定
"editor.wordSeparators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~? 、。「」【】『』()!?てにをはがのともへでや",
"latex-workshop.latex.tools": [
{
"name": "latexmk with latexmkrc",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-outdir=%OUTDIR%",
"-f",
"-gg",
"-r",
"%OUTDIR%/latexmkrc",
"%DOC%"
]
},
],
"latex-workshop.latex.recipes": [
{
"name": "latexmk -r latexmkrc",
"tools": [
"latexmk with latexmkrc"
]
},
],
"latex-workshop.latex.magic.args": [
"-f",
"-gg",
"-pv",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
],
"latex-workshop.latex.clean.fileTypes": [
"*.aux",
"*.bbl",
"*.blg",
"*.idx",
"*.ind",
"*.lof",
"*.lot",
"*.out",
"*.toc",
"*.acn",
"*.acr",
"*.alg",
"*.glg",
"*.glo",
"*.gls",
"*.ist",
"*.fls",
"*.log",
"*.fdb_latexmk",
"*.dvi",
"*.synctex.gz",
"_minted*",
"*.nav",
"*.snm",
"*.vrb",
],
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.command": {
"command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
"args": [
"-reuse-instance",
"%PDF%"
]
},
"latex-workshop.view.pdf.external.synctex": {
"command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
"args": [
"-reuse-instance",
"-forward-search",
"%TEX%",
"%LINE%",
"%PDF%"
]
},
"latex-workshop.synctex.afterBuild.enabled": true,
"latex-workshop.latex.autoClean.run": "onFailed",
"latex-workshop.message.latexlog.exclude": [
"(Font shape `(JY1|JT1|JY2|JT2)(/.*)(sl|it|sc)'.*|Some font shapes were not available.*)"
],
@ychubachi
Copy link
Author

inverse search をするには,
SumatraPDF の [☰] > [設定(S)] > [オプション(O)...] の
「逆順検索コマンドラインの設定」に以下の設定をする.

"C:\Program Files\Microsoft VS Code\bin\code.cmd" -g "%f:%l"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment