実現したいこと
WSLに接続した状態でTeXファイルをコンパイルしたPDFをVSCode上で閲覧したいです(ローカル環境上では見られる)
前提
WSL上にTeXをインストールし(OSはWindows11)、VSCode上でTeXのコンパイルはできるようになったのですが、PDFを見ることができません(コンパイル自体は上手くいき、他のPDFビューアーでは生成されたPDFを見ることは可能)
発生している問題・エラーメッセージ
view:latex-workshop-pdf を復元中にエラーが発生しました
該当のソースコード(コンパイルしたTeXファイルおよびVSCode上のsetting.json)
\documentclass{article} \begin{document} Hello \LaTeX. \begin{equation} p(x) = \frac{1}{\sqrt{2 \pi \sigma^2}} \exp \left[ -\frac{(x - \mu)^2}{2\sigma^2} \right] \end{equation} \end{document}
\documentclass{jarticle} \begin{document} こんにちは \LaTeX. \begin{equation} p(x) = \frac{1}{\sqrt{2 \pi \sigma^2}} \exp \left[ -\frac{(x - \mu)^2}{2\sigma^2} \right] \end{equation} \end{document}
{ "[python]": { "editor.formatOnType": true }, "workbench.iconTheme": "material-icon-theme", "latex-workshop.view.pdf.viewer": "tab", "latex-workshop.latex.autoBuild.run": "never", "latex-workshop.latex.clean.fileTypes": [ "*.blg", "*.idx", "*.ind", "*.lof", "*.lot", "*.out", "*.toc", "*.acn", "*.acr", "*.alg", "*.glg", "*.glo", "*.gls", "*.ist", "*.fls", "*.log", "*.fdb_latexmk", "*.synctex.gz", "_minted*", "*.nav", "*.snm", "*.vrb", ], "latex-workshop.latex.tools": [ { "name": "latexmk", "command": "latexmk", }, { "name": "pdflatex", "command": "pdflatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOC%" ] }, { "name": "bibtex", "command": "bibtex", "args": [ "%DOCFILE%" ] }, { "name":"ptex2pdf", "command": "ptex2pdf", "args": [ "-l", "-ot", "-kanji=utf8 -synctex=1", "%DOC%" ] }, { "name": "pbibtex", "command": "pbibtex", "args": [ "-kanji=utf8", "%DOCFILE%" ] } ], "latex-workshop.latex.recipes": [ { "name": "pdflatex -> bibtex -> pdflatex*2", "tools": [ "pdflatex", "bibtex", "pdflatex", "pdflatex" ] }, { "name": "pdflatex*2", "tools": [ "pdflatex", "pdflatex" ] }, { "name": "ptex2pdf -> pbibtex -> ptex2pdf*2", "tools": [ "ptex2pdf", "pbibtex", "ptex2pdf", "ptex2pdf" ] }, { "name": "ptex2pdf*2", "tools": [ "ptex2pdf", "ptex2pdf" ] }, { "name": "latexmk", "tools": [ "latexmk" ] }, ] }
試したこと
PCの再起動を試しましたが、うまくいきませんでした
補足情報(FW/ツールのバージョンなど)
TeXのインストール方法
sudo apt update sudo apt upgrade sudo apt install -y texlive-full latexmk
TeXのインストールは上手くいっているようです
$ pdflatex -v pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) kpathsea version 6.3.1 Copyright 2019 Han The Thanh (pdfTeX) et al. There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the pdfTeX source. Primary author of pdfTeX: Han The Thanh (pdfTeX) et al. Compiled with libpng 1.6.37; using libpng 1.6.37 Compiled with zlib 1.2.11; using zlib 1.2.11 Compiled with xpdf version 4.01
$ ptex2pdf -v This is ptex2pdf[.lua] version 20200119.0.
ネットで調べたのですが、有益な情報が得られなかったので教えていただけると幸いです。
回答1件
あなたの回答
tips
プレビュー