質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
コンパイルエラー

コンパイルのフェーズで生成されるエラーです。よく無効なシンタックスやタイプが含まれているとき発生します。

LaTeX

LaTeXは、レスリー・ランポートが開発したテキストベースの文書整形システムです。 電子製版ソフトウェアである「TeX」にマクロパッケージを組み込む形で構成されており、 通常のTeXより扱いやすくなっているのが特徴です。

Q&A

1回答

1929閲覧

VSCodeでLaTeXが動くようにしたいが、`Did not find entry for byfmt=platex skipped`と言われる

skytomo

総合スコア35

コンパイルエラー

コンパイルのフェーズで生成されるエラーです。よく無効なシンタックスやタイプが含まれているとき発生します。

LaTeX

LaTeXは、レスリー・ランポートが開発したテキストベースの文書整形システムです。 電子製版ソフトウェアである「TeX」にマクロパッケージを組み込む形で構成されており、 通常のTeXより扱いやすくなっているのが特徴です。

0グッド

0クリップ

投稿2020/07/14 12:20

編集2022/01/12 10:55

前提・実現したいこと

VSCodeでLaTeXができるように@GandatsさんのVSCode で最高の LaTeX 環境を作るを基に環境構築をしたのですが、うまくコンパイルできません。

↓VS Codeのsetting.json

json

1// ---------- LaTeX Workshop ---------- 2 3 // 使用パッケージのコマンドや環境の補完を有効にする 4 "latex-workshop.intellisense.package.enabled": true, 5 6 // 生成ファイルを削除するときに対象とするファイル 7 // デフォルト値に "*.synctex.gz" を追加 8 "latex-workshop.latex.clean.fileTypes": [ 9 "*.aux", 10 "*.bbl", 11 "*.blg", 12 "*.idx", 13 "*.ind", 14 "*.lof", 15 "*.lot", 16 "*.out", 17 "*.toc", 18 "*.acn", 19 "*.acr", 20 "*.alg", 21 "*.glg", 22 "*.glo", 23 "*.gls", 24 "*.ist", 25 "*.fls", 26 "*.log", 27 "*.fdb_latexmk", 28 "*.snm", 29 "*.nav", 30 "*.dvi", 31 "*.synctex.gz" 32 ], 33 34 // 生成ファイルを "out" ディレクトリに吐き出す 35 "latex-workshop.latex.outDir": "out", 36 37 // ビルドのレシピ 38 "latex-workshop.latex.recipes": [ 39 { 40 "name": "latexmk", 41 "tools": [ 42 "latexmk" 43 ] 44 }, 45 ], 46 47 // ビルドのレシピに使われるパーツ 48 "latex-workshop.latex.tools": [ 49 { 50 "name": "latexmk", 51 "command": "latexmk", 52 "args": [ 53 "-silent", 54 "-outdir=%OUTDIR%", 55 "%DOC%" 56 ], 57 }, 58 ], 59 "latex-workshop.view.pdf.viewer": "tab",

発生している問題・エラーメッセージ

以下はコンパイルしたときのエラーメッセージです。

Latexmk: Run number 1 of rule 'latex' This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.sjis) (TeX Live 2020/W32TeX) (preloaded format=platex) restricted \write18 enabled. fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order): fmtutil: d:/texlive/2020/texmf-dist/web2c/fmtutil.cnf fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes: fmtutil: c:/users/skytomo/.texlive2020/texmf-config/web2c/fmtutil.cnf fmtutil [INFO]: writing formats under c:/users/skytomo/.texlive2020/texmf-var/web2c fmtutil [INFO]: Did not find entry for byfmt=platex skipped fmtutil [INFO]: disabled formats: 5 fmtutil [INFO]: not selected formats: 50 fmtutil [INFO]: total formats: 55 fmtutil [INFO]: exiting with status 0 Running the command D:\texlive\2020\bin\win32\fmtutil-user.exe I can't find the format file `platex.fmt'! kpathsea: Running mktexfmt platex.fmt The command name is D:\texlive\2020\bin\win32\mktexfmt Latexmk: fls file doesn't appear to have been made. Collected error summary (may duplicate other messages): latex: Command for 'latex' gave return code 1 Refer to 'out/4-4.log' for details ---------------------- This message may duplicate earlier message. Latexmk: Failure in processing file 'd:/skytomo/Documents/School/1AEI-����������/4-4': (Pdf)LaTeX didn't generate the expected log file 'out/4-4.log' ---------------------- Latexmk: Use the -f option to force complete processing, unless error was exceeding maximum runs, or warnings treated as errors. D:\texlive\2020\bin\win32\runscript.tlu:915: command failed with exit code 12: perl.exe d:\texlive\2020\texmf-dist\scripts\latexmk\latexmk.pl -silent -outdir=out d:/skytomo/Documents/School/1AEI-����������/4-4

試したこと

調べたところそういうときは大抵再インストールしてみると直ると書かれていましたが、ダメでした。
再インストールにはtlmgr install scheme-fullを試しました。

補足情報(FW/ツールのバージョンなど)

OS: Windows 10

ps1

1$ latexmk --version 2Latexmk, John Collins, 17 Apr. 2020. Version 4.69a 3 4$ platex --version 5e-pTeX 3.14159265-p3.8.3-191112-2.6 (utf8.sjis) (TeX Live 2020/W32TeX) 6kpathsea version 6.3.2 7ptexenc version 1.3.8 8Copyright 2020 D.E. Knuth. 9There is NO warranty. Redistribution of this software is 10covered by the terms of both the e-pTeX copyright and 11the Lesser GNU General Public License. 12For more information about these matters, see the file 13named COPYING and the e-pTeX source. 14Primary author of e-pTeX: Peter Breitenlohner.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

たぶん環境的な原因だと思います。
エラーメッセージ中に (Pdf)LaTeX didn't generate the expected log file 'out/4-4.log'とあって、out/4-4.log が作れないって言っていますね。

d:/skytomo/Documents/School/1AEI-����������/4-4

このディレクトリが怪しそう。

  • このディレクトリが存在するか。
  • 実行しているユーザにこのディレクトリのread/write パーミッションがあるか。
  • 文字化けしているのもあやしいので、ascii文字列置き換えてみてどうか。

を試してみてはどうでしょう。

投稿2020/07/20 23:19

rogueref

総合スコア727

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問