On 07/02/2010 06:51 PM, William Hanson wrote:
Thanks for the advice. My OS is Windows XP. A search found the file,
article.cls, in
C:\Program Files\MiKTeX 2.7\tex\latex\base
and in several other folders. I tried reconfiguring LyX, but the
effort failed. It said, "Default textclass is used but LyX may not be
able to work properly." A second try at reconfiguring gave the same
result. What next?
Did you run kpsewhich successfully in a DOS prompt. That's a quick way
to tell whether the MiKTeX bin directory is on the system path -- if
it's not, DOS won't be able to find kpsewhich. Alternatively, you can
run 'latex --version' in a DOS window (someplace other than in the
MiKTeX bin directory, of course). If it runs, MiKTeX's on the command path.
If MiKTeX is not on the command path, you can add it manually. Locate
the bin directory (looks like it should be C:\Program Files\MiKTeX
2.7\bin). Right-click My Computer, click Properties (I think -- I'm on
a Linux system now so I'm doing this from memory), find the Advanced
tab, then find Environment Variables. There should be two path strings,
one for all users and one for you. Add the path to the bin directory to
either one, separated from what's already there by a semicolon. Then
restart/reconfigure/restart LyX.
If MiKTeX is already on the command path, then there may be a problem
with a damaged LyX configuration file or some funky write permission
issue. You can try locating your LyX user directory (probably
C:\Documents and Settings\<you>\Application Data\lyx16, but you can
check Help > About in LyX to find out if necessary). Delete the entire
...\lyx16 directory (LyX will reconstruct it) and reconfigure again.
/Paul