TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I'm using MikTeX 2.9 and TeXstudio 2.6.6. The path to MikTeX is correct and in "Check LaTeX installation" the process exite normally.

My problem is when I tried to "Build & View" (F1) an error message pops up with the message:

Could not start Build and View:PdfLaTeX:pdflatex.exe -synctex=1 interaction=nonstopmode

and no log file is found.

Using TeXWorks the process is done without any problems.

I like using TeXstudio, what can I do to fix this?

share|improve this question

marked as duplicate by egreg, Adam Liter, Heiko Oberdiek, Svend Tveskæg, Sean Allred Mar 30 '14 at 23:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

It should be -interaction=nonstopmode with a dash. – Sigur Jan 29 '14 at 15:33
I tried with the dash. Same error. But when i tried ps2pdf.exe "System".ps occurred a Unrecoverable error: MiKTeX GPL Ghostscript 9.05...exit code 1...and Process exited normally. Does this help? – user10624 Jan 29 '14 at 17:08

I Found the answer in there Question

I changed my Command line to:

"D:\Program Files\MiKTeX\miktex\bin\pdflatex.exe" -synctex=1 -interaction=nonstopmode %.tex

and it work. Thanks for the help. And a special thanks to Sigur.

share|improve this answer
So, I didn't remember my other answer. You found it! – Sigur Jan 29 '14 at 18:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.