From 68f82734361bd2681fdbec0be05baa870c9c5381 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 6 Mar 2018 22:52:46 +0000 Subject: cquthesis (6mar18) git-svn-id: svn://tug.org/texlive/trunk@46863 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/cquthesis/cquthesis.dtx | 8 +- .../source/latex/cquthesis/makewin-English.bat | 139 -------------------- .../source/latex/cquthesis/makewin-en.bat | 141 +++++++++++++++++++++ .../texmf-dist/source/latex/cquthesis/makewin.bat | 3 +- 4 files changed, 148 insertions(+), 143 deletions(-) delete mode 100755 Master/texmf-dist/source/latex/cquthesis/makewin-English.bat create mode 100755 Master/texmf-dist/source/latex/cquthesis/makewin-en.bat (limited to 'Master/texmf-dist/source/latex/cquthesis') diff --git a/Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx b/Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx index 142e36b5e06..7750fb6ca39 100644 --- a/Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx +++ b/Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx @@ -16,7 +16,7 @@ % % \iffalse %<*driver> -\ProvidesFile{cquthesis.dtx}[2017/05/30 v1.20 Chongqing University Thesis Template] +\ProvidesFile{cquthesis.dtx}[2018/02/23 v1.30 Chongqing University Thesis Template] \documentclass{ltxdoc} \usepackage{dtx-style} @@ -89,6 +89,8 @@ % \changes{v1.20}{2017/05/30}{调整了几个可选项的默认值,现在,openright默认开启。} % \changes{v1.20}{2017/05/30}{新功能:盲审模式,由开关blindtrail和\cs{secretize}宏以及\env{secretizeEnv}环境构成。} % \changes{v1.20}{2017/05/30}{再次改进了\file{makewin.bat},现在,Windows用户以管理员身份运行\file{makewin.bat}时不再会遭遇路径错误了。此外,\file{makewin.bat}有中英文两个版本了。} +% \changes{v1.30}{2017/05/30}{从\href{https://github.com/zepinglee/gbt7714-bibtex-style}{上游供应商zepinglee/gbt7714-bibtex-style}更新了\file{cqunumerical.bst}。} +% % % \def\indexname{代码索引} % \def\glossaryname{更新记录} @@ -775,14 +777,14 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesClass{cquthesis} %\ProvidesFile{cquthesis.cfg} -%[2017/05/30 v1.20 Chongqing University Thesis Template] +%[2018/02/23 v1.30 Chongqing University Thesis Template] % \end{macrocode} % 定义一些开发常量: % \begin{macrocode} %<*cls> \hyphenation{Cqu-Thesis} \newcommand{\cquthesis}{\textsc{CquThesis}} -\def\version{1.20} +\def\version{1.30} % % \end{macrocode} % \file{cquthesis.cfg}中,涉及文档部件的部分常量: diff --git a/Master/texmf-dist/source/latex/cquthesis/makewin-English.bat b/Master/texmf-dist/source/latex/cquthesis/makewin-English.bat deleted file mode 100755 index f9950c6eb2a..00000000000 --- a/Master/texmf-dist/source/latex/cquthesis/makewin-English.bat +++ /dev/null @@ -1,139 +0,0 @@ -@echo off -cd /d %~dp0 - -title CQUThesis Build Helper - -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 This is the Makefile script for CQUThesis on Windows. - echo For CQUThesis: https://github.com/nanmu42/CQUThesis - echo by Zhennan Li (C) 2016 under LPPL 1.3 - echo The idea comes from Github Liam0205/sduthesis, Many thanks! - echo ************************************************************* - echo * - echo USAGE: - echo makewin [param] - echo param: - echo help Display this help text - echo thesis (default)Compile the thesis via latexmk - echo thesisx Compile the thesis via XeLaTeX(only if latexmk is not installed.) - echo doc Compile the documentation of CQUThesis - echo clean Clean all aux files - echo cleanpdf Clean all PDFs - echo cleanall Clean all aux files and all PDFs - echo extract Extract the Thesis Template from .dtx files. - echo all thesis + doc - echo build extract + thesis - echo buildx extract + thesis + doc - echo * - echo ***********************Happy TeXing************************** -goto :EOF - -:checkfiles - IF NOT EXIST cquthesis.cls call:extract - IF NOT EXIST cquthesis.cfg call:extract -goto :EOF - -:thesis - call:checkfiles - latexmk -xelatex main.tex -goto :EOF - -:thesisx - call:checkfiles - xelatex main.tex - bibtex main.tex - xelatex main.tex - xelatex main.tex - xelatex main.tex -goto :EOF - -:cleanaux - echo cleaning 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 Done. -goto :EOF - -:cleanpdf - echo cleaning pdf... - for %%i in (*.pdf) do ( - del %%i - ) - echo Done. -goto :EOF - -:clean_all - call:cleanaux - call:cleanpdf -goto :EOF - -:extract - echo extracting... - latex cquthesis.ins - echo *******CQUThesis has been extracted.******** -goto :EOF - -:document - echo building documents... - 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 -goto :EOF diff --git a/Master/texmf-dist/source/latex/cquthesis/makewin-en.bat b/Master/texmf-dist/source/latex/cquthesis/makewin-en.bat new file mode 100755 index 00000000000..5feedc19dc9 --- /dev/null +++ b/Master/texmf-dist/source/latex/cquthesis/makewin-en.bat @@ -0,0 +1,141 @@ +@echo off + + +cd /d "%~dp0" + +title CQUThesis Build Helper + +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 This is the Makefile script for CQUThesis on Windows. + echo For CQUThesis: https://github.com/nanmu42/CQUThesis + echo by Zhennan Li (C) 2016 under LPPL 1.3 + echo The idea comes from Github Liam0205/sduthesis, Many thanks! + echo ************************************************************* + echo * + echo USAGE: + echo makewin [param] + echo param: + echo help Display this help text + echo thesis (default)Compile the thesis via latexmk + echo thesisx Compile the thesis via XeLaTeX(only if latexmk is not installed.) + echo doc Compile the documentation of CQUThesis + echo clean Clean all aux files + echo cleanpdf Clean all PDFs + echo cleanall Clean all aux files and all PDFs + echo extract Extract the Thesis Template from .dtx files. + echo all thesis + doc + echo build extract + thesis + echo buildx extract + thesis + doc + echo * + echo ***********************Happy TeXing************************** +goto :EOF + +:checkfiles + IF NOT EXIST cquthesis.cls call:extract + IF NOT EXIST cquthesis.cfg call:extract +goto :EOF + +:thesis + call:checkfiles + latexmk -xelatex main.tex +goto :EOF + +:thesisx + call:checkfiles + xelatex main.tex + bibtex main.tex + xelatex main.tex + xelatex main.tex + xelatex main.tex +goto :EOF + +:cleanaux + echo cleaning 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 Done. +goto :EOF + +:cleanpdf + echo cleaning pdf... + for %%i in (*.pdf) do ( + del %%i + ) + echo Done. +goto :EOF + +:clean_all + call:cleanaux + call:cleanpdf +goto :EOF + +:extract + echo extracting... + latex cquthesis.ins + echo *******CQUThesis has been extracted.******** +goto :EOF + +:document + echo building documents... + 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 +goto :EOF diff --git a/Master/texmf-dist/source/latex/cquthesis/makewin.bat b/Master/texmf-dist/source/latex/cquthesis/makewin.bat index 67b06a7212c..9b8b41fa10f 100755 --- a/Master/texmf-dist/source/latex/cquthesis/makewin.bat +++ b/Master/texmf-dist/source/latex/cquthesis/makewin.bat @@ -1,7 +1,8 @@ @echo off + rem ڹԱµ· -cd /d %~dp0 +cd /d "%~dp0" title CQUThesisԶ -- cgit v1.2.3