summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lshort-chinese/src/make.bat
blob: 686897658a2515c4bd1d7358b88f93c8cb317e4c (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
@echo off
set LSHORT=lshort-zh-cn
set PDF=%LSHORT%.pdf
set TEMP=%LSHORT%.aux %LSHORT%.log %LSHORT%.idx %LSHORT%.ind %LSHORT%.ilg %LSHORT%.out %LSHORT%.toc %LSHORT%.los %LSHORT%-example.aux

if "%1"=="clean" goto clean

set TEX=xelatex
set MODE=-interaction=nonstopmode
set MAKEINDEX=makeindex

%TEX% %MODE% %LSHORT%
%MAKEINDEX% -s %LSHORT%.ist %LSHORT%
%TEX% %MODE% %LSHORT%

if exist %PDF% (
move %PDF% ..
start "" "..\%PDF%"
)
exit

:clean
del %TEMP%
exit