blob: 1fae167b28d1a7685ce15a6de6752a7cc6196f74 (
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
|
@echo off
@rem vim:ts=4:sw=4
@rem
@rem Copyright (c) 2008-2009 solvethis
@rem Copyright (c) 2010-2012 Casper Ti. Vector
@rem Public domain.
set JOBNAME=thesis
@rem Õâ¸ö±äÁ¿µÄÖµ¿ÉÒÔΪ latex »ò pdflatex¡£
set LATEX=latex
@rem Èç¹ûÎÞ·¨Ê¹Óà biber£¬¿ÉÒÔ¸ÄΪ¡°bibtex¡±¡£
set BIBTEX=biber -l zh__pinyin
set GBK2UNI=gbk2uni
set DVIPDF=dvipdfmx
if "%LATEX%"=="latex" (set DODVIPDF=%DVIPDF% %JOBNAME%
) else (set DODVIPDF=echo No need to run %DVIPDF%.)
@rem Óà pdflatex ʱ¿ÉÄÜÐèҪʹÓà gbk2uni ת»» .out Îļþ±àÂëÒÔ·ÀÊéÇ©ÂÒÂë¡£
if "%LATEX%"=="pdflatex" (@rem set DOGBK2UNI=%GBK2UNI% %JOBNAME%
) else (set DOGBK2UNI=echo No need to run %GBK2UNI%.)
if "%1"=="" goto doc
if "%1"=="doc" goto doc
if "%1"=="clear" (goto clear) else (goto usage)
:doc
%LATEX% %JOBNAME%
%BIBTEX% %JOBNAME%
%DOGBK2UNI%
%LATEX% %JOBNAME%
%LATEX% %JOBNAME%
%DODVIPDF%
goto end
:clear
del *.aux *.bbl *.bcf *.blg *.dvi *.lof *.log *.lot *.run.xml *.toc *.out
del missfont.log chap\*.aux
goto end
:usage
echo %0 [doc] [clear]
goto end
:end
|