+checking for package geometry [geometry]... yes
+checking for package jurabib [jurabib]...
creating packages.lst
creating doc/LaTeXConfig.lyx
LyX: Fertig!
lyx: Disabling LyX socket.

And this is the problem: In the example above configure.py checks for the LaTeX-package jurabib and MiKTeX tries to install it as it isn't currently installed. As no internet connection is available this is of course unsuccessful. But now comes the problem: configure.py doesn't continue but jumps to the section where the list files are created - the created are buggy because the inspection of LaTeX was incomplete.

I investigated a lot now: The reason for this is this routine in configure.py:

        # we have chklayouts.tex, then process it
        fout = os.popen(LATEX + ' wrap_chkconfig.ltx')
        while True:
            line = fout.readline()
            if not line:
                break;
            if re.match('^\+', line):
                print line,
        fout.close()

When the check is unsuccessful the line becomes invalid and therefore the while 
loop breaks.
The problem of this is line 77 in chkconfig.ltx (command definition of 
\TestItem) :

    \IfFileExists{\file}
      {}
      {\IfFileExists{\file.#4}{}{\existsfalse}}


When MiKTeX's option "Install Missing Packages on the fly" is set as "Yes" but no Internet connection is open when \ifFileExists is invoked, the latex-script is closed by MiKTeX and you get in the console:

======================================================================
latex: No Data

I wrote an email to the MiKTeX-developer but I don't have hope that this could 
easily be fixed :-(.

regards Uwe

Reply via email to