VSCodeで日本語LaTexオンラインプレビュー
texlive
$ sudo apt install texlive-full
拡張機能の追加
LaTex Workshopを追加する.
設定の変更
(Ctrl+Shift+P) でコマンドパレットを開き,Preferences: Open Settings (JSON)
の中に以下を書く.
{ "editor.tabSize": 4, "editor.detectIndentation": false, "files.encoding": "utf8", "vim.insertModeKeyBindings": [ { "before": ["j", "j"], "after": ["<Esc>"] } ], // 自動保存 "files.autoSave":"off", "latex-workshop.view.pdf.viewer": "tab", "latex-workshop.view.pdf.zoom":"auto", "latex-workshop.latex.autoClean.run":"onBuilt", "latex-workshop.latex.autoBuild.cleanAndRetry.enabled": true, "latex-workshop.latex.tools": [ { "command": "platex", "args": [ "-interaction=nonstopmode", "-synctex=1", "-jobname=\"%DOCFILE%\"", "-kanji=utf8", "-guess-input-enc", "%DOCFILE%.tex" ], "name": "Step 1: platex" }, { "command": "platex", "args": [ "-synctex=1", "-jobname=\"%DOCFILE%\"", "-kanji=utf8", "-guess-input-enc", "%DOCFILE%.tex" ], "name": "Step 2: platex" }, { "command": "dvipdfmx", "args": [ "%DOCFILE%" ], "name": "Step 3: dvipdfmx" } ], "latex-workshop.latex.recipes": [ { "name": "toolchain", "tools": [ "Step 1: platex", "Step 2: platex", "Step 3: dvipdfmx", ] } ], }