Guenter Milde <milde <at> users.sf.net> writes:

> 
> How does lyx test the latex version

First, the configuration script checks to see whether either 'latex' or
'latex2e' exists on your system path. Assuming it finds one of them, it 
writes a small file (chklatex.ltx) containing a message (\message TeX command),
runs the executable it found against that file, and looks for the message
in the output stream.

> and how could it possibly assume that my
> LaTeX version is not Latex2e?

I guess either it didn't find your LaTeX executable (unlikely if you can
run it from a shell), it couldn't write the temp file, or somehow the
temp file wasn't processed correctly. But those are just guesses.

Try putting the following in a text file naed chklatex.ltx someplace
convenient (like your desktop):

\nonstopmode\makeatletter
\ifx\undefined\documentclass\else
  \message{ThisIsLaTeX2e}
\fi
\@@end

Open a shell there and run latex against that file. You should get a message
in the shell (stdout) containing ThisIsLaTeX2e. If not, perhaps you can
figure out what failed.

One other thing: what version of Python do you have? I don't know if 
Python 3.x breaks the config script, but I know it's not always backward
compatible.

Paul




Reply via email to