実現したいこと
VScode内で、.texのファイルをビルドし、pdfが表示されるようにしたいです。
発生している問題・分からないこと
https://qiita.com/rainbartown/items/d7718f12d71e688f3573
を基にLatexを導入しました。ですが、お試しでつくったtest.texのファイルをビルドしようとするとエラーが出て、pdfファイルが生成されません。
VScodeの右下の方にポップアップする形で以下のようなエラーが出てきます。
ただ、PCのコマンドプロンプトから
$lualatex test.tex
のように実行するとpdfができています。LatexWorkshop側の問題なのでしょうか。
.latexmkrcのファイルは、"C:\Users\自分のユーザー名.latexmkrc"のところにあります。
エラーメッセージ
error
1compiler logを開くと以下のようになっています。 2Initial Win CP for (console input, console output, system): (CP932, CP932, CP932) 3I changed them all to CP932 4Rc files read: 5 C:/Users/ogima/.latexmkrc 6Latexmk: This is Latexmk, John Collins, 4 Apr. 2023. Version 4.80. 7Latexmk: Doing main (small) clean up for 'c:/Users/ogima/Research/tex/test.tex' 8No existing .aux file, so I'll make a simple one, and require run of *latex. 9Force everything to be remade. 10Latexmk: applying rule 'lualatex'... 11Rule 'lualatex': Reasons for rerun 12Category 'other': 13 Rerun of 'lualatex' forced or previously required 14 15------------ 16Run number 1 of rule 'lualatex' 17------------ 18------------ 19Running 'lualatex� -synctex=1 -interaction=nonstopmode -file-line-error -recorder �-synctex=1�-interaction=nonstopmode�"c:/Users/ogima/Research/tex/test.tex"' 20------------ 21'lualatex ' �́A�����R�}���h�܂��͊O���R�}���h�A 22����\�ȃv���O�����܂��̓o�b�` �t�@�C���Ƃ��ĔF������Ă��܂���B 23Latexmk: No log file was found, neither the expected one, 'test.log', nor one in '.'. 24Latexmk: fls file doesn't appear to have been made. 25Latexmk: Couldn't read log file 'test.log': 26 No such file or directory 27Latexmk: Getting log file 'test.log' 28Latexmk: Errors, in force_mode: so I tried finishing targets 29Collected error summary (may duplicate other messages): 30 lualatex: Run of rule 'lualatex' gave a non-zero error code 31 view: Command for 'view' gave return code -1 32 33Needed source file 'test.pdf' does not exist. 34---------------------- 35This message may duplicate earlier message. 36Latexmk: Failure in processing file 'c:/Users/ogima/Research/tex/test': 37 *LaTeX didn't generate the expected log file 'test.log' 38---------------------- 39C:\texlive\2023\bin\windows\runscript.tlu:921: command failed with exit code 12: 40perl.exe c:\texlive\2023\texmf-dist\scripts\latexmk\latexmk.pl -f -gg -pv -lualatex -synctex=1 -interaction=nonstopmode -file-line-error c:/Users/ogima/Research/tex/test
該当のソースコード
test.tex
1\documentclass{ltjsarticle} 2\begin{document} 3 4\title{\TeX} 5\author{Mo} 6\maketitle 7\section{abc} 8 9%こうやって文字をうつ 10\subsection{def} 11 12\begin{equation} 13 E=mc^{2} 14\end{equation} 15\begin{equation} 16 c=299{,}792{,}458\,\mathrm{m/s} 17\end{equation} 18\begin{equation} 19 S=\sum_{n=1}^\infty a_n\left( \frac{1}{2} \right) 20\end{equation} 21 22\end{document}
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
setting.jsonの中身を確認したり、LaTeX Workshopを再インストールしたりしたのですが、何も変わりはありません。LaTeXもVScodeも初心者なので、教えていただける方いれば幸いです。
補足
特になし

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。