On 09/03/2011 05:00 PM, Jane Shevtsov wrote:
I successfully added the MiKTeX bin directory to the system path and
exported a file. Running pdflatex gave this message:
This is pdfTeX, Version 3.1415926-1.40.10 <MiKTeX 2.8>
initexmf.exe: No formats.ini exists.
I can't find the default format file!
Okay, this may be progress. In the Start menu, MiKTeX entry, there
should be a folder labeled "Maintenance", and in that a shortcut to an
application that I think is labeled "Settings". I seem to recall that
on Win 7 there are actually two of them, with either the program or
folder name including "Admin" (I'm on Linux right now, so I'm working
from memory). I'm not sure it makes a difference if you're the only
MiKTeX user on the machine, but run the Admin version just to be safe.
On the first tab, click the second button (the label is something like
"Update Formats") and then the first button ("Refresh FNDB"). Then
repeat what you did above and see if the "no formats.ini" message goes
away and (hopefully) the trivial document compiles.
Interestingly, LyX is also saying (in Document > Settings) that all
document classes are unavailable.
That's because LyX thinks you don't have LaTeX installed. Once we sort
out your problems with MiKTeX, reconfiguring and restarting LyX should
solve this.
Paul