別ソフト(Pari-GP)を使う為にシステム環境変数のPathを編集したら、その後5時間ほどは問題なくtexが使えていましたが、Pathの編集後から5時間後にtexが使えなくなりました。一部のファイルでエラーが出ているのではなく、今まで上手く使えていた全てのtexファイルで動かなくなってしまいました。
使用環境等:
windows11
pdfTeX 3.141592653-2.6-1.40.25 (TeX Live 2023)
kpathsea version 6.3.5
エラーメッセージ:
This is ptex2pdf[.lua] version 20200520.0.
Processing empty.tex
Invalid PATH setting found. Please ensure that cmd.exe can be found.
ptex2pdf processing of empty.tex failed.
エラーが出るコードの一例:
\documentclass[dvipdfmx]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{graphicx,color}
\setlength{\topmargin}{-0.5cm}
\setlength{\oddsidemargin}{0.50cm}
\setlength{\evensidemargin}{-0.5cm}
\setlength{\textheight}{20cm}
\setlength{\textwidth}{12cm}
\newtheorem{thm}{定理}[section]
\newtheorem{defn}{定義}[section]
\newtheorem{exmp}{例}[section]
\newtheorem{lem}{補題}[section]
\newtheorem{prof}{証明}[section]
\newtheorem{prop}{命題}[section]
\newtheorem{rem}{注意}[section]
\newtheorem{cor}{系}[section]
\newtheorem{axm}{公理}[section]
\newtheorem{excs}{Ex}[section]
\renewcommand{\theenumi}{\roman{enumi}}
\renewcommand{\labelenumi}{(\theenumi)}
\begin{document}
empty
\end{document}
システム環境変数のPathの変数値:
C:\texlive\2023\bin\windows;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\System32\WindowsPowerShell\v1.0\;%SystemRoot%\System32\OpenSSH\;C:\Users\victo\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Pari64-2-17-1;C:\Users\victo\AppData\Local\Programs\Microsoft VS Code\bin;
以下試したことと、その結果。
①コマンドプロンプトにて、
platex empty.tex
dvipdfmx empty.dvi と2段階で実行した→レイアウトはずれたものの、PDFが生成された。
②Pathの中で、C:\texlive\2023\bin\windowsが一番上にくるようにした→変化なし。