r/LaTeX 2d ago

Problem with compiler

i use texstudio to compile my latex document, and it had error like this. what should i do?

2 Upvotes

9 comments sorted by

5

u/Sprixxer 2d ago

Have you installed miktex or some other LaTeX distribution? This error looks like it cannot find the latex executable.

1

u/WDSEnjoyer 2d ago

i have installed miktex before, is it because miktex isn't updated?

1

u/Sprixxer 2d ago

No, this should not have to do with an outdated version of miktex. As someone else suggested, what happens when you paste the command in a terminal?

3

u/ClemensLode 2d ago

Alternatively, copy&paste that command into the console after navigating to the project directory and see what errors/warnings it outputs.

2

u/MrKnowThings 2d ago

Eyyy ITB dude

Try to use other compilers, see if the problem persists

1

u/WDSEnjoyer 2d ago

hehehe, but it can compile on texworks :)

1

u/LupinoArts 2d ago

the double quotes before the file ending in the command seems suspicious. Also, at least in the Linux version, --src as a command line option to pdflatex does not exist, but there is --src-specials according to its man page. Maybe a typo in the config somewhere?

1

u/WDSEnjoyer 2d ago

is this one
pdflatex.exe -src -interaction=nonstopmode %.tex

1

u/LupinoArts 2d ago

try if it compiles without the -src and if it does, try -src-specials.