blob: a44bfdb3e308c25ff7b42e5eaee50d28698b7eb8 (
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
43
44
45
46
47
48
49
50
51
52
53
54
|
@ECHO OFF
rem Sample custom submenu for the tray menu
rem Usage: edit and copy to the root of the installation.
rem For a batch-mode main menu, see tlmenu.bat.
rem Note. The system tray menu has already taken care of the searchpath.
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
set tlroot=%~dp0
:menuloop
set ans=
cls
echo === TeX Live Menu ===
echo.
echo 1 TexMakerX
echo 2 Emacs
echo 3 Notepad
echo Q Quit
echo.
set /p ans="Make a choice: "
if "%ans%"=="1" (
%tlroot%texmakerx\texmakerx.exe
exit
)
if "%ans%"=="2" (
rem load emacs with the included initialization file _emacs
%tlroot%emacs\bin\emacs.exe -q -l %tlroot%emacs\_emacs
exit
)
if "%ans%"=="3" (
%windir%\notepad.exe
exit
)
if "%ans%"=="Q" (
exit
)
if "%ans%"=="q" (
exit
)
goto :menuloop
|