Saturday, November 14, 2009

MikTeX 2.8 and WinEdt 5.6

The current WinEdt needs some adjustment to work with MikTeX 2.8. The developer of WinEdt has a post here to show how to do this. I tried to follow his instruction. But it still took me some times to figure out which file I need to make the change. Basically, we need to alter the "menu.dat." The file is located in:

Windows XP
C:\Program Files\WinEdt Team\WinEdt\Config\MikTeX\menu.dat

Windows Vista & Windows 7
C:\Program Files (x86)\WinEdt Team\WinEdt\Config\MikTeX\menu.dat

Then follow the post:

Run('mo.exe')

should be modified to

Run('mo_admin.exe')

The same with package manager. Replace

Run('mpm.exe')

with

Run('mpm_mfc_admin.exe')

And the update in 2.8 should be defined (in one line) as:

Run(|%$('TeX-Root');\miktex\bin\internal\copystart_admin.exe "%$('TeX-Root');\miktex\bin\internal\miktex-update_admin.exe"|);
In Windows Vista or Windows 7, if we want to refresh the TeX system, I found that running the following commands in the "Command Prompt" (Run as administrator) works better:

initexmf -u --admin
updmap -u --admin

That is running initexmf and updmap. in the administrative mode. These changes are going to be adopted in the next version of WinEdt. In the meantime, we just have to change these manually.


No comments: