Problema ao executar o pdflatex

Sep 30 2020

Eu sou novo no látex e tenho alguns problemas quando tento executar um código de látex no TexStudio.
Escrevi o seguinte programa de látex no TexStudio:

\documentclass{article}
\begin{document}
    Hello world
\end{document}

e quando tento executá-lo, TexStudio me mostra o seguinte erro:

Could not start Build & View:PdfLatex:
pdflatex.exe -synctex=1 -interaction=nonstopmode
"<FileName>".tex

Estou usando o TexLive no Windows.
Já adicionei C: \ texlive \ 2020 \ bin \ win32 ao PATH,
e em TexStudio -> Opções -> Configurar TexStudio -> Comandos -> PdfLatex, escrevi:

pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex

Quando executo o teste pdflatex no cmd, recebo:

This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX) (preloaded format=pdflatex)
 restricted \write18 enabled.

kpathsea: Running mktexfmt pdflatex.fmt

The command name is C:\texlive\2020\bin\win32\mktexfmt
Running the command C:\texlive\2020\bin\win32\fmtutil-user.exe
C:\texlive\2020\bin\win32\runscript.tlu:935: C:\texlive\2020\bin\win32\runscript.tlu:858: no appropriate script or program found: fmtutil
I can't find the format file `pdflatex.fmt'!

Alguém por favor pode me ajudar ?

Respostas

Freud Sep 30 2020 at 19:11

Tentei usar MikTex em vez de TexLive e funciona agora.