I just installed TeXstudio 2.5.2 and compiled the following
\documentclass{article}
\begin{document}
\end{document}
but I get this error
Error: Could not start the command: "/usr/texbin/pdflatex" -synctex=1 -interaction=nonstopmode "texstudio_qH5268".tex
I already installed MiKTeX, so why do I get this error?
Best Answer
Open TeXstudio and go to the Options menu.
Then Configure TeXstudio. On the left panel choose the second item Commands.
On the
pdflatex
field, fill it with the full path for yourpdflatex.exe
. For example, in Windows with MiKTeX, something similar toDon't forget to use double quotes with it. Then write
%.tex
to denote the currenttex
file.In summary, you'll have something like this (ignoring highlights):
You can do the same to other tools, like
dvips
for example.