rem ... The "subroutine batch" called from TEXBAT.BAT
:start
if not exist %TEXDIR%\%TEXVER%.exe goto bsorry
set MARK=
set EDITPAR=
if %TEXVER%==tex386 set MARK=b
if not exist %TEXDIR%\%MARK%texfmts\%FMT%.fmt goto sorry
:run
rem ... for csSLITEX and tex.exe we need to enlarge font-memory:
set OPT=
if %FMT%==csSLITEX  set OPT=/mf48000
if %TEXVER%==tex386 set OPT=
if exist %RAM%\ed.bat del %RAM%\ed.bat
%TEXDIR%\%TEXVER% /mt25000 /a%RAM%\ed.bat &%FMT% %1.%2
if exist %RAM%\ed.bat call %RAM%\ed
if exist %RAM%\ed.bat goto start
if errorlevel 2 %ERRCOM%
goto end
:bsorry
set MNU=31
:sorry
if exist %FMT%.fmt goto run
%RAM%\mnu %TEXDIRCFG%\sorry.mnu
:end
