LaTeX forum ⇒ MiKTeX and proTeXtMikTex 2.9 error with pdflatex - no output produced Topic is solved

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
marian
Posts: 5
Joined: Wed Feb 09, 2011 11:23 am

MikTex 2.9 error with pdflatex - no output produced

Postby marian » Wed Feb 09, 2011 11:37 am

I have just installed MikTeX 2.9 to replace my old MikTex 2.6 distribution. However, latex doesn't compile under 2.9. I get the following error message:

This is pdfTeX, Version 3.1415296-1.40.11 (MiKTeX 2.9).
pdflatex.exe: Invalid control sequence.

LaTeX-Result: 0 Error(s), 0 Warning(s), 0 Bad Box(es), 0 Page(s)

So, no output is produced. Any help on why this error occurs and what I might do to remedy it would be much appreciated!
- Marian
Last edited by marian on Thu Feb 17, 2011 11:05 am, edited 1 time in total.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Postby josephwright » Wed Feb 09, 2011 2:47 pm

You'll have to post some kind of example file: MiKTeX 2.9 works fine in general terms.
Joseph Wright

marian
Posts: 5
Joined: Wed Feb 09, 2011 11:23 am

Postby marian » Wed Feb 09, 2011 3:01 pm

I've just run the simplest tex-file thinkable

\documentclass{article}

\begin{document}
Hello!
\end{document}

It does produce a PDF-file under MikTex 2.6, but not under 2.9. I've checked the output profile definition paths several times, but that all seems fine. The executables pdflatex.exe, latex.exe and pdftex.exe all seem to be correctly addressed. I've tried running it with Texniccenter, as well as directly from the command prompt, producing the same error. Any ideas on where the problem might be located?

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Postby frabjous » Wed Feb 09, 2011 6:24 pm

Could you show us exactly what you're typing on the command line?

marian
Posts: 5
Joined: Wed Feb 09, 2011 11:23 am

Postby marian » Wed Feb 09, 2011 6:29 pm

Thank you for your replies. This is what I typed into the command line:

C:\Program Files\MiKTeX 2.9\miktex\bin>pdflatex "P:\My Documents\TeX\test.tex"

And this is the result:
This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9)
pdflatex: Invalid control sequence.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Postby frabjous » Wed Feb 09, 2011 6:40 pm

Do you get the same results if you do:

  1. cd "P:\My Documents\Tex\"


And then with the prompt:

  1. P:\My Documents\Tex>


Type in:

  1. "C:\Program Files\MikTeX 2.9\miktex\bin\pdflatex" test.tex


(I think you probably will get the same error; I just wanted to check.)

Overall, it seems that there is something seriously wrong with your pdflatex installation, however, and I'm not really sure what it could be.

marian
Posts: 5
Joined: Wed Feb 09, 2011 11:23 am

Postby marian » Thu Feb 10, 2011 2:34 pm

Dear frabjous,

Thanks for your suggestions. However, indeed I do get the same error if I type it in as you suggest... I was afraid already that something was wrong with the pdflatex.exe installation. We installed MikTex several times, also trying the base version and the complete version, but everytime the same error. During installation nothing strange happened, and we did manage before to install MikTex 2.6 on the same computer.
I've also read somewhere that changing things in the MikTex 2.9 > Settings > Formats tab may help. However, everything I try with pdflatex there (change or build) gives a similar error: a MikTex Problem Report stating "invalid control sequence". Maybe that's a related error?

Many thanks, Marian

marian
Posts: 5
Joined: Wed Feb 09, 2011 11:23 am

Postby marian » Wed Feb 16, 2011 4:10 pm

Hi all,

For those of you experiencing similar problems, I think I found the solution. The trick was in the fact that (appearantly) several format files had to be 'built'.
Here's what I did:
- In the start menu, go to Programs > MikTex 2.9 > Maintenance (Admin) > Settings
- in the Formats-tab, select tex, pdftex, pdflateX and latex (I'm not sure whether all are needed, but it worked this way), and press Build
- in the General-tab, press 'refresh NMBD', and also 'Update Formats'. You will see that the Format files are being built.

If you don't have Administrator priviliges on your PC (like me), than this won't work because Maintenance (Admin) doesn't work. To overcome that, we reinstalled MikTeX 2.9, this time only for the current user (me). Now there is only one Maintenance path (no longer for Admin), and I can do the things described above myself.

Thanks for thinking along!
Best, Marian

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Wed Feb 16, 2011 8:21 pm

marian wrote:[…] I think I found the solution. […]

Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

subrat_kar
Posts: 2
Joined: Mon Jul 06, 2015 7:27 am

Postby subrat_kar » Mon Jul 06, 2015 7:30 am

Yes, Marian's solution (<Build format> files, then <update formats> + <Update FNDB> in MikTex 2.9 as Administrator) works. That solution should be marked as a email to read before posting anything else.


Return to “MiKTeX and proTeXt”

Who is online

Users browsing this forum: No registered users and 7 guests