summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hitszthesis/compile.bat
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hitszthesis/compile.bat')
-rw-r--r--macros/latex/contrib/hitszthesis/compile.bat16
1 files changed, 11 insertions, 5 deletions
diff --git a/macros/latex/contrib/hitszthesis/compile.bat b/macros/latex/contrib/hitszthesis/compile.bat
index 3ef4d41463..3c99e2cb44 100644
--- a/macros/latex/contrib/hitszthesis/compile.bat
+++ b/macros/latex/contrib/hitszthesis/compile.bat
@@ -10,13 +10,11 @@ if %flag%x == x (
)
if %flag%x == thesisx (
- call :cleanall
call :thesis
if ERRORLEVEL 1 (
echo Error! Please check the 'main.log' for more details...
pause
) else (
- call :clean
echo Finished!
)
goto :EOF
@@ -54,6 +52,13 @@ if %flag%x == wordcountx (
goto :EOF
)
+if %flag%x == devx (
+ call :doc
+ call :thesis
+ call :cleanall
+ goto :EOF
+)
+
:help
echo This is the compile batch script for hitszhesis.
echo Usage:
@@ -72,7 +77,7 @@ goto :EOF
echo Compile thesis...
latex %PACKAGE%.ins
xelatex -shell-escape %THESIS%.tex
- bibtex %THESIS%.tex
+ bibtex %THESIS%
xelatex -shell-escape %THESIS%.tex
xelatex -shell-escape %THESIS%.tex
splitindex %THESIS% -- -s hitszthesis.ist
@@ -99,11 +104,12 @@ goto :EOF
latexmk -c %PACKAGE%.dtx
latexmk -c %THESIS%
del *.xdv *.hd *.aux front\*.aux body\*.aux back\*.aux >nul 2>nul
+ del main-china.idx main-english.idx >nul 2>nul
goto :EOF
:cleanall
- echo Clean pdf files...
- del /Q %PACKAGE%.pdf %THESIS%.pdf >nul 2>nul
+ echo Clean class files...
+ del %PACKAGE%.cls %PACKAGE%.cfg dtx-style.sty >nul 2>nul
goto :clean
goto :EOF