Adam Hoffman wrote:

I followed the guidance provided by Paul, in spite of my limited DOS
abilities.
I ran 'kpsewhich article.cls' and the command prompt responded with the
location of article.cls:
C:/Program Files/MiKTeX 2.7_/tex/latex/base/article.cls

Good.  That means MiKTeX is properly installed.

I interpreted that as MiKTeX being on the system path,

Correct.

so I relocated the
dos prompt as directed by Paul to:
C:\Documents and Settings\Adam\Application Data

At this point I tried to
run python configure.py, but I got an error.  I entered the following
text into the command prompt at \Application Data:
C:\program files\lyx15\python\python.exe C:\program
files\lyx15\resources\configure.py
and I received this output:
'C:\program' is not recognized as an internal or external command, operable
program, or batch file.

Two things here. First, use Windows Explorer to poke around C:\Program Files\lyx15 (assuming that's where you installed LyX) and locate python.exe. Prior to LyX 1.5.6, it had its own little subdirectory, but at least on my machine it's sitting in the LyX 1.5.6 bin directory. Change the first part of that DOS command to reflect the correct location. The configure.py script appears not to have moved.

Second, for an operating system that actively promotes spaces in the paths, Windoze isn't real bright about spaces in the paths. You need to enclose the paths in quotes:

> "C:\Program Files\lyx15\bin\python.exe" "C:\Program Files\lyx15\Resources\configure.py"

On the bright side, XP emulates Linux's tab-completion for commands at the DOS prompt. Start the command, type enough to make it unambiguous where you're going (say, c:\prog), and hit the tab key. DOS will complete the command to the correct path and supply the quote automatically. You can then type some more (say \lyx) outside the quotes, hit tab again, and DOS will extend the path and adjust the quotes. Here's the progression when I do it (^T indicates me whacking the tab key, and <> brackets stuff I type, the rest being supplied by DOS):

<c:\pr^T>
"c:\Program Files"<\ly^T>
"c:\Program Files\LyX 1.5.6"<\b^T>
"c:\Program Files\LyX 1.5.6\bin"<\py^T>
"c:\Program Files\LyX 1.5.6\bin\python.exe"< c:\pr^T>
"c:\Program Files\LyX 1.5.6\bin\python.exe" "c:\Program Files"<\ly^T>
"c:\Program Files\LyX 1.5.6\bin\python.exe" "c:\Program Files\LyX 1.5.6"<\r^T> "c:\Program Files\LyX 1.5.6\bin\python.exe" "c:\Program Files\LyX 1.5.6\Resources"<\co^T> "c:\Program Files\LyX 1.5.6\bin\python.exe" "c:\Program Files\LyX 1.5.6\Resources\configure.log"<^T> "c:\Program Files\LyX 1.5.6\bin\python.exe" "c:\Program Files\LyX 1.5.6\Resources\configure.py"

and away we go. I don't hit the Enter key until the last line. Note that in the next to last line the tab key gave me a valid path to the wrong file. Like Linux, if you keep hitting the tab key, DOS will cycle through the valid completions of the previous line. Unlike Linux, DOS paths are not case-sensitive, so you don't have capitalize anything. Besides being less typing (once you get used to it, it takes care of the quotes for you.

I assume I need to provide some sort of command to tell it to run python,
but I don't know enough DOS to do so.  I tried to use the 'help' command to
find the command to use here, but nothing looked appropriate.

The <path>\python.exe entry will run Python. The two problems above (stale advice, Python having moved, and the lack of quotes) just need to be fixed.

Good luck,
Paul

Reply via email to