summaryrefslogtreecommitdiff
path: root/support/mnu/texrun.bat
blob: 16b48296358053bfec3cd275c4cb114f9c51109e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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