summaryrefslogtreecommitdiff
path: root/support/mnu/texrun.bat
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/mnu/texrun.bat
Initial commit
Diffstat (limited to 'support/mnu/texrun.bat')
-rw-r--r--support/mnu/texrun.bat24
1 files changed, 24 insertions, 0 deletions
diff --git a/support/mnu/texrun.bat b/support/mnu/texrun.bat
new file mode 100644
index 0000000000..16b4829635
--- /dev/null
+++ b/support/mnu/texrun.bat
@@ -0,0 +1,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