Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to learn LaTeX, I installed MiKTeX and TeXworks as a editor and gave the path to MiKTeX in edit/preference/typesetting. I'm trying to run some code it gives me an error that the program pdftext.exe was not found!

share|improve this question

migrated from stackoverflow.com Jun 21 '12 at 14:39

This question came from our site for professional and enthusiast programmers.

1  
Did you select .../MiKTeX 2.9/miktex/bin where .../ means the path to which you installed MiKTex? –  azetina Jun 21 '12 at 14:48
1  
Note also that Miktex 2.9 comes already with Texworks installed. So it should be pre-configured. –  azetina Jun 21 '12 at 14:57
    
Welcome to TeX.sx! Your answer was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or edit your answer. –  Martin Schröder Jun 21 '12 at 20:37

1 Answer 1

You mentioned that you set the path to MikTeX. It is, however, not enough to set the path to C:\Program Files\MikTeX 2.9\. You need to set the path to where the pdflatex.exe is located. This is .../MiKTeX 2.9/miktex/bin as mentioned in the comment above.

The easiest is probably to write this path to the environmental variables in windows. Then pdflatex.exe could be found anywhere on the system and there would be no need of specifying the whole path - writing pdflatex.exe in the editor settings would be enough.

The procedure on how to set this environmental variable in Windows depends on the version you are using. In good old XP times this was found in the control panel under System in the "Advanced" tab.

But before you do all that, open a command line start->run->cmd and type in pdflatex.exe and check if it can be found.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.