rem ..... The "subroutine batch" called from TEXBAT.BAT
if errorlevel 58 goto viewMP
if errorlevel 57 goto texMP
if errorlevel 56 goto editMP
if errorlevel 54 goto convert
if errorlevel 53 goto metafont
if errorlevel 52 goto editMF
goto end
:EditMF
 %EDIT% %MF%.mf %EDITPAR%
 set EDITPAR=
 set MNU=53
 goto end
:metafont
 set MNU=52
 :mfstart
 set EDITPAR=
 if exist %RAM%\ed.bat del %RAM%\ed.bat
 call %RAM%\mfbat
 if errorlevel 1 %ERRCOM%
 %TEXDIR%\totext
 if exist %RAM%\ed.bat call %RAM%\ed
 if exist %RAM%\ed.bat goto mfstart
 goto end
:convert
 echo %GFOPT% > %RAM%\gfbat.bat
 %COMSPEC% /c %RAM%\gfbat
 goto end
rem ................................. include a new font in TeX:
:editMP
 %EDIT% %MF%.mp %EDITPAR%
 set EDITPAR=
 set MNU=57
 goto end
:texMP
 set MNU=58
 call %RAM%\texrun %MF% mp
 goto end
:ViewMP
 %TEXDIR%\dvidrv dviscr @scr.cnf %SCROPT% %MF%
 set MNU=56
:end