4

I have a problem with compiling a latex file. The error that I'm getting is: Could not start the command.

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

I looked into the forum (like here) but couldn't find the solution. Using Texmaker 4.5 now and my settings look like that: enter image description here

Any ideas?

Taher A. Ghaleb
  • 5,120
  • 5
  • 31
  • 44
Edyta
  • 41
  • 1
  • 1
  • 2

2 Answers2

4

I was having the same issue in Windows 10. I had installed Texmaker (version 5.0.2) first and then MiKTeX. I am not sure if OP did the same. Here is what worked for me:

  1. I uninstalled both Texmaker and MikTeX
  2. I installed MiKTeX
  3. I installed Texmaker

Got help from here

Bottom line: MiKTex should be installed before Texmaker

Mohit Pandey
  • 506
  • 5
  • 16
0

I think your LaTex path is not specified. Look in your MikTeX path for a latex file:

"C:/Program Files/MikTex 2.9/miktex/bin" latex -interaction=nonstopmode %.tex

and

"C:/Program Files/MikTex 2.9/miktex/bin" pdflatex -synctex=1 -interaction=nonstopmode %.tex