設定を開いて右上の設定(JSON)を開くをクリック

image.png

settings.jsonに以下を追加

	// ---------- LaTeX Workshop ----------
	"latex-workshop.latex.recipes": [
		{
			"name": "latexmk",
			"tools": [
				"latexmk"
			]
		},
		{
			"name": "ptex2pdf -> pbibtex -> ptex2pdf*2",
			"tools": [
				"ptex2pdf",
				"pbibtex",
				"ptex2pdf",
				"ptex2pdf"
			]
		},
		{
			"name": "make_ptex2pdf",
			"tools": [
				"ptex2pdf"
			]
		},
		{
			"name": "pdflatex -> bibtex -> pdflatex*2",
			"tools": [
				"pdflatex",
				"bibtex",
				"pdflatex",
				"pdflatex"
			]
		},
		{
			"name": "pdflatex",
			"tools": [
				"pdflatex"
			]
		},
		{
			"name": "ptex2pdf (uplatex)",
			"tools": [
				"ptex2pdf (uplatex)"
			]
		},
		{
			"name": "ptex2pdf (uplatex) -> pbibtex -> ptex2pdf (uplatex) *2",
			"tools": [
				"ptex2pdf (uplatex)",
				"pbibtex",
				"ptex2pdf (uplatex)",
				"ptex2pdf (uplatex)"
			]
		},
	],
	"latex-workshop.latex.tools": [
		{
			"name": "ptex2pdf",
			"command": "ptex2pdf",
			"args": [
				"-l",
				"-ot",
				"-interaction=nonstopmode",
				"-kanji=utf8 -synctex=1",
				"%DOC%"
			]
		},
		{
			"command": "bibtex",
			"args": [
				"%DOCFILE%"
			],
			"name": "bibtex",
		},
		{
			"command": "ptex2pdf",
			"args": [
				"-interaction=nonstopmode",
				"-l",
				"-ot",
				"-kanji=utf8 -synctex=1",
				"%DOC%.tex"
			],
			"name": "ptex2pdf",
		},
		{
			"command": "ptex2pdf",
			"args": [
				"-l",
				"-u",
				"-ot",
				"-kanji=utf8 -synctex=1",
				"%DOC%"
			],
			"name": "ptex2pdf (uplatex)",
		},
		{
			"name": "latexmk",
			"command": "latexmk",
			"args": [
				"%DOCFILE%"
			]
		},
		{
			"command": "pbibtex",
			"args": [
				"-kanji=utf8",
				"%DOCFILE%"
			],
			"name": "pbibtex",
		}
	],
	"latex-workshop.view.pdf.viewer": "tab",
	// ---------- LaTeX Workshop ----------