[Tex/LaTex] TeXStudio: Any command is an “Undefined control sequence”

compilingerrorsmiktextexstudio

I'm trying to configure TeXStudio (using Windows) with MiKTeX. I configured the path to latex.exe and pdflatex.exe in Options\Commands and still I get errors compiling any .tex.

Every command (like \title, \usepackage, \begin) produces an error: "Undefined control sequence".

Commands

Build

Result

Best Answer

Your image shows the pdflatex command is set up to use pdftex.exe (plain tex) not pdflatex.exe (latex) so latex commands are not defined.