実現したいこと
コンパイルできるようにする。
(あわよくばコードを保存したときに自動でVScodeの右側でそのpdfが更新できるようにする方法も教えていただきたいです)
発生している問題・分からないこと
VScodeで{ サイト:https://yo5uke.com/pages/tips/240901_tex_live/ }参考に簡単なtest.texをコンパイルしようとしましたがエラーが出てしまいました。
これまでいろんなサイトを参考に設定をいじってしまいましたが .latexmkrc も setting.json このサイトから丸々コピペしましたので、このサイト通りにやってうまくいかない原因がわかりません。
右下に×マークや△マークとともに
Recipe terminated with error.
Recipe terminated with error. Retry building the project.
のメッセージがでてきます
エラーメッセージ
error
1Initial Win CP for (console input, console output, system): (CP932, CP932, CP932) 2I changed them all to CP932 3Rc files read: 4 C:/Users/hiroy/.latexmkrc 5Latexmk: This is Latexmk, John Collins, 15 June 2025. Version 4.87. 6Latexmk: Nothing to do for 'c:/my_latex/test.tex'. 7Latexmk: All targets (test.pdf) are up-to-date 8Collected error summary (may duplicate other messages): 9 pdflatex: gave an error in previous invocation of latexmk. 10 11Latexmk: Sometimes, the -f option can be used to get latexmk 12 to try to force complete processing. 13 But normally, you will need to correct the file(s) that caused the 14 error, and then rerun latexmk. 15 In some cases, it is best to clean out generated files before rerunning 16 latexmk after you've corrected the files. 17C:\texlive\2025\bin\windows\runscript.tlu:933: command failed with exit code 12: 18perl.exe c:\texlive\2025\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf -outdir=c:/my_latex c:/my_latex/test
該当のソースコード
test.tex
1\documentclass{ltjsarticle} 2 3\title{日本語のLaTeX入門} 4\author{あなたの名前} 5\date{\today} 6 7\begin{document} 8 9\maketitle 10 11\section{はじめに} 12LaTeXは、高品質な文書を作成するための強力なツールです。日本語でも簡単に利用することができます。 13 14\section{基本的な書き方} 15LaTeXでは、文章をセクションやパラグラフに分けることができます。また、数式や図表の挿入も簡単に行えます。 16 17\section{結論} 18LaTeXを使えば、美しい日本語の文書を作成することができます。ぜひ活用してみてください。 19 20\end{document}
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
特に得られた成果はありませんでした。
Recipe terminated with error.
Recipe terminated with error. Retry building the project.
補足
特になし

あなたの回答
tips
プレビュー