Software Collection, Department of Mathematics, University of York

What to do if "Macro failed" messages persist after restarting

Return to the main index of information about the CD

This is what to do if every item on the TeX menu gives an error message "Macro failed ..."

The most common cause for this is trying to use TeX immediately after installation, without first restarting the computer. If it persists after a restart, you'll need to manually edit the PATH environment variable. So far I have only seen this problem with Windows XP. I don't know what causes it, but this is the solution. Incorrectly setting the PATH can stop parts of your system from working, so take care with this!

Under Windows XP or Windows 2000 (or, I suppose, NT4 in the highly unlikely event anyone is using NT4!): right-click My Computer, click Properties, click Advanced, click Environment Variables. In the list of System Variables, click on Path, then click on Edit. At the end of the "Variable value" box add
Be sure to get this exactly right, including the semicolon. Now you can click on OK a few times to get rid of all the My Computer windows. If you have a copy of MicroEMACS running, close it. The next time you open MicroEMACS, the TeX menu should work.

Under Windows 95, 98 or ME: edit c:\autoexec.bat and at the end of the file add the line
set path=%path%;c:\texmf\miktex\bin
You now have to restart your computer before trying to use TeX.

Return to the main index of information about the CD