blob: 9b8b41fa10f1fe3a28db2a21036cdb8dd66018f9 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
@echo off
rem ±ÜÃâÔÚ¹ÜÀíÔ±Éí·Ýϵķ¾¶ÎÊÌâ
cd /d "%~dp0"
title CQUThesis×Ô¶¯»¯±àÒë³ÌÐò
set flag=%1
if %flag%x == x (
set flag=thesis
)
if %flag%x == thesisx (
call:thesis
goto :EOF
)
if %flag%x == thesisxx (
call:thesisx
goto :EOF
)
if %flag%x == docx (
call:extract
call:document
goto :EOF
)
if %flag%x == cleanx (
call:cleanaux
goto :EOF
)
if %flag%x == cleanpdfx (
call:cleanpdf
goto :EOF
)
if %flag%x == cleanallx (
call:cleanaux
call:cleanpdf
goto :EOF
)
if %flag%x == extractx (
call:extract
goto :EOF
)
if %flag%x == allx (
call:thesis
call:document
goto :EOF
)
if %flag%x == buildx (
call:extract
call:thesis
goto :EOF
)
if %flag%x == buildxx (
call:extract
call:thesis
call:document
goto :EOF
)
:help
echo *************************************************************
echo CQUThesis×Ô¶¯»¯±àÒë³ÌÐò£¨Windows£©
echo ÖØÇì´óѧ±ÏÒµÉè¼ÆLaTeXÄ£°å£º https://github.com/nanmu42/CQUThesis
echo (C) 2016-2017 ÀîÕñéª ÒÀ¾ÝLPPL 1.3ÐÒ鿪Դ
echo ±¾³ÌÐòµÄÁé¸ÐÀ´Ô´£ºGithub£ºLiam0205/sduthesis£¬ÔÚ´ËÖÂл¡£
echo *************************************************************
echo *
echo ÃüÁîÓ÷¨£º
echo makewin [²ÎÊý]
echo ²ÎÊý£º
echo help չʾ±¾°ïÖúÐÅÏ¢
echo thesis ͨ¹ýlatexmkÖÇÄÜ£¬¿ìËٵرàÒëÂÛÎÄ£¨Ë«»÷»òÎÞ²ÎÊýʱĬÈÏÔËÐУ©
echo thesisx ½øÐÐÒ»´ÎÍêÕûµÄÂÛÎıàÒ루Èç¹ûÄãµÄϵͳÉÏû°²×°latexmk¾ÍÓÃÕâÒ»Ï·ñÔòÍƼöÓÃÉÏÃæµÄ£©
echo doc ±àÒëCQUThesisÓû§Îĵµ
echo clean ÇåÀíËùÓÐ.auxÎļþ
echo cleanpdf ÇåÀíËùÓÐ.pdfÎļþ
echo cleanall ÇåÀíËùÓÐ.auxÎļþÒÔ¼°.pdfÎļþ
echo extract ´Ó.dtxÎļþÖÐÌáÈ¡Ä£°å
echo all thesis + doc
echo build extract + thesis
echo buildx extract + thesis + doc
echo *
echo ***********************Happy TeXing**************************
echo ************************д×÷Óä¿ì£¡***************************
goto :EOF
:checkfiles
IF NOT EXIST cquthesis.cls call:extract
IF NOT EXIST cquthesis.cfg call:extract
goto :EOF
:thesis
call:checkfiles
echo ÇëÈ·ÈÏÄúµÄϵͳÒÑÕýÈ·ÅäÖÃlatexmk...
echo ʹÓÃlatexmkÖÇÄܱàÒëÂÛÎÄÖÐ...
latexmk -xelatex main.tex
echo * *
echo *********Ì«°ôÁË£¡ÂÛÎıàÒëÍê³É£¡**********
echo * *
goto pauseIfDoubleClicked
:thesisx
call:checkfiles
echo ÂÛÎıàÒëÖÐ......
xelatex main.tex
bibtex main.tex
xelatex main.tex
xelatex main.tex
xelatex main.tex
echo * *
echo ***************Ì«°ôÁË£¡ÂÛÎıàÒëÍê³É£¡*****************
echo Ìáʾ£º±¾·½°¸ËٶȽÏÂý£¬ÍƼöʹÓÃmakewin thesis½øÐбàÒë¡£
echo * *
goto :EOF
:cleanaux
echo ÇåÀíËùÓÐ.auxÎļþÖÐ...
for %%i in (*.aux *.bbl *.equ *.glo *.gls *.hd *.idx *.ilg *.ind *.lof *.lot *.out *.blg *.log *.thm *.toc *.synctex.gz *.lofEN *.lotEN *.equEN) do (
del %%i
)
echo .auxÎļþÇåÀíÍê³É¡£
goto :EOF
:cleanpdf
echo ÇåÀíËùÓÐ.pdfÎļþÖÐ...
for %%i in (*.pdf) do (
del %%i
)
echo .pdfÎļþÇåÀíÍê³É¡£
goto :EOF
:clean_all
call:cleanaux
call:cleanpdf
goto :EOF
:extract
echo ÕýÔÚÌáÈ¡CQUThesisÄ£°åÎļþ...
latex cquthesis.ins
echo * *
echo *******Ä£°åÎļþÌáÈ¡Íê³É********
echo * *
goto :EOF
:document
echo ±àÒëCQUThesisÓû§ÎĵµÖÐ...
set cmode=-interaction=batchmode
xelatex cquthesis.dtx
makeindex -s gind.ist -o cquthesis.ind cquthesis.idx
makeindex -s gglo.ist -o cquthesis.gls cquthesis.glo
xelatex cquthesis.dtx
xelatex cquthesis.dtx
xelatex cquthesis.dtx
echo * *
echo *******Óû§Îĵµ±àÒëÍê³É********
echo * *
goto :EOF
:pauseIfDoubleClicked
setlocal enabledelayedexpansion
set testl=%cmdcmdline:"=%
set testr=!testl:%~nx0=!
if not "%testl%" == "%testr%" pause *
goto :EOF
|