summaryrefslogtreecommitdiff
path: root/support/mnu/metafont.bat
blob: 8b9b8f6324d70629ea1caea5a8f3bc82e95c1269 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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