[Tex/LaTex] Texmaker gives an error: could not start the command

texmaker

The Texmaker version is 4.0.2.

I have installed the TeXworks a couple of months ago and it works fine. Now I want to try TeXmaker, and it gives

error: could not start the command

enter image description here

I just checked that C:/Program Files/Asymptote/asy.exe and C:/Program Files/gs/gs9.07/bin/gswin32c.exe do not exist

Best Answer

Please have a look at this answer Unable to compile TeXmaker 4.0.2 with MiKTeX 2.9 and based on your position/error apply the related trick assuming MiKTeX is installed properly and test the installation by following steps

  • when you run cmd from Start Menu search it would open at C:\Users\username>
  • type cd Desktop to get C:\Users\username\Desktop>
  • now type pdflatex sample2e to get sample2e.pdf then it is confirmed that installation is working properly and Path is set ok.

  • also Type at C:\Users\username\Desktop> Path to see if there is MiKTeX bin like C:\Program Files (x86)\MiKTeX 2.9\bin depending where it was installed on 32 bit or 64 bit OS and MiKTeX Distro

Latest TeXmaker is 4.0.3 released on July 29th 2013.

In Worst case Options-->Settings file-->Reset settings and Remember to save the settings file somewhere for backup incase required. Restart TeXmaker so that TeXmaker automatically configures the latex dvips executables

Note : You might need to save the file as filename.tex before running QuickBuild. Make sure Ghostscript is installed incase of latex-dvips-ps2pdf route compilation/PSTricks otherwise use pdflatex compilation.