私は MiKTeX/TeXworks を使用しており、latexmk
数年前にセットアップしました。昨日 MiKTeX を更新するまでは正常に動作していました。
latexmk
私が使用しているタイプセッティングルーチンは次のとおりです。
ただし、latexmk
処理オプションを使用してコンパイルしようとすると、次のログ ファイルが表示されます。
Latexmk: This is Latexmk, John Collins, 18 June 2019, version: 4.65.
Rule 'pdflatex': The following rules & subrules became out-of-date:
'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -synctex=1 -recorder "DOCUMENT.tex"'
------------
Latexmk: applying rule 'pdflatex'...
Can't spawn "pdflatex -synctex=1 -recorder "DOCUMENT.tex"": Inappropriate I/O control operation at C:\Program Files\MiKTeX 2.9\scripts/latexmk\latexmk.pl line 9732.
Latexmk: fls file doesn't appear to have been made.
Collected error summary (may duplicate other messages):
pdflatex: Command for 'pdflatex' gave return code 255
Refer to 'DOCUMENT.log' for details
----------------------
This message may duplicate earlier message.
Latexmk: Failure in processing file 'DOCUMENT.tex':
(Pdf)LaTeX didn't generate the expected log file 'DOCUMENT.log'
----------------------
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs, or warnings treated as errors.
Latexmk: Errors, so I did not complete making targets
何をすべきか検索してみましたが、今のところあまり役に立つものは見つかりませんでした。どなたかガイダンスを提供してもらえますか? 手動で実行すると、すべて正常にコンパイルされますpdflatex + bibtex + pdflatex + pdflatex
。
TeXworksのバージョンはバージョン0.6.3 (MiKTeX 2.9.7140 64ビット)です。
latexmk
編集:コマンドラインから実行した結果は次のとおりです。エラーメッセージ
そして出力
C:\Users\username\folder>latexmk
Latexmk: This is Latexmk, John Collins, 18 June 2019, version: 4.65.
Latexmk: Disallowing switch of output file as incompatible
with file requests.
Latexmk: applying rule 'latex'...
Rule 'latex': The following rules & subrules became out-of-date:
'latex'
------------
Run number 1 of rule 'latex'
------------
------------
Running 'latex -recorder "DOCUMENT.tex"'
------------
Can't spawn "latex -recorder "DOCUMENT.tex"": Inappropriate I/O control operati
on at C:\Program Files\MiKTeX 2.9\scripts/latexmk\latexmk.pl line 9732.
Latexmk: fls file doesn't appear to have been made.
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
latex: Command for 'latex' gave return code 255
Refer to 'DOCUMENT.log' for details
----------------------
This message may duplicate earlier message.
Latexmk: Failure in processing file 'DOCUMENT.tex':
(Pdf)LaTeX didn't generate the expected log file 'DOCUMENT.log'
----------------------
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs, or warnings treated as errors.
答え1
miktex bin フォルダ内の exe ファイルの多くは非常に小さく、単なるラッパーです。「実際の」アプリケーション コードは dll (および/またはスクリプト) にあり、ラッパーは「エントリ ポイント」を見つける必要があります。更新後にエントリ ポイントが変更され、ラッパーを再作成する必要がある場合があります。通常、miktex はこれを処理しますが、何らかの理由で失敗することがあります。この場合、ラッパーは次のように再作成できます。
initexmf --mklinks --admin --force
またはlatexmkのようなスクリプトのみが影響を受ける場合
initexmf --mklinks=scripts --admin --force
参照マニュアル