diff options
author | Karl Berry <karl@freefriends.org> | 2017-06-05 23:13:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-06-05 23:13:51 +0000 |
commit | 8e82251d20e2e042e3140d2b1fb11d0acc5b174e (patch) | |
tree | ce54a1658d15509397a7ef0ec8db4d5fc7785b45 /Master/texmf-dist/source/latex/cquthesis | |
parent | 364767eaf5c0a40fc4300c3426b2062498f1d3fb (diff) |
cquthesis (31may17)
git-svn-id: svn://tug.org/texlive/trunk@44476 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/cquthesis')
3 files changed, 382 insertions, 153 deletions
diff --git a/Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx b/Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx index 1136b11b8b0..142e36b5e06 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}[2016/12/07 v1.16 Chongqing University Thesis Template] +\ProvidesFile{cquthesis.dtx}[2017/05/30 v1.20 Chongqing University Thesis Template] \documentclass{ltxdoc} \usepackage{dtx-style} @@ -30,7 +30,7 @@ %</driver> % \fi % -% \CheckSum{1852} +% \CheckSum{1893} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -84,7 +84,11 @@ % \changes{v1.00}{2016/06/17}{最后一些小修补,今年的毕设工作完全结束了。目前本科方面的格式审查没有问题,研究生和博士生哪边还没有数据。} % \changes{v1.00}{2016/06/17}{版本号格式从vX.Y.Z改为vX.YZ,更简洁一些。} % \changes{v1.10}{2016/06/21}{增加了CQUThesis的开发工具Makefile和makewin.bat,现在它对\LaTeX 中高阶用户和开发者更加友好,文档也相应更新了。} -% \changes{v1.14}{2016/08/18}{改进了makewin.bat,默认的thesis选项加入了自动判定,如果dtx没有解包,程序会自动解包。这也就是说,新手可以在几乎所有情况下放心地通过双击makewin.bat来完成编译了。} +% \changes{v1.14}{2016/08/18}{改进了\file{makewin.bat},默认的thesis选项加入了自动判定,如果dtx没有解包,程序会自动解包。这也就是说,新手可以在几乎所有情况下放心地通过双击makewin.bat来完成编译了。} +% \changes{v1.20}{2017/05/30}{新增选项blankleft,可选目录和章节右开时空白的左页是否让页眉页脚空白。} +% \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}有中英文两个版本了。} % % \def\indexname{代码索引} % \def\glossaryname{更新记录} @@ -350,7 +354,10 @@ % % \DescribeOption{openany} % \DescribeOption{openright} -% 正规出版物的章节出现在奇数页,也就是右手边的页面,这就是 \option{openright},在这种情况下,如果前一章的最后一页也是奇数,那么模板会自动生成一个纯粹的空白页以保证新章节右开。这个选项适合页数较多的论文,您可根据实际情况和个人喜好选择是否开启。默认值\option{openany},本选项在单页打印时自动失效。 +% 正规出版物的章节出现在奇数页,也就是右手边的页面,这就是 \option{openright},在这种情况下,如果前一章的最后一页也是奇数,那么模板会自动生成一个空白页以保证新章节右开。这个选项适合页数较多的论文,您可根据实际情况和个人喜好选择是否开启。默认值\option{openright},本选项在单页打印时自动失效。 +% +% \DescribeOption{blankleft} +% 开启此项,并且在 \option{openright}开启的情况下,模板生成的空白页纯粹空白,不含页眉页脚,本选项默认关闭。 % % \DescribeOption{seriftoc} % 开启此项,目录中的不同级别会采用不同的字号和字体,这是按照学校word样例的实现。但是,蹊跷的是,样例里的这些做法在官方文件里却没有体现,而且一二级标题字号差别太大,个人观点有碍美观,所以这里列为可选项,适用于三级标题很多的情况。本选项默认关闭。 @@ -361,6 +368,14 @@ % \DescribeOption{abstractopenright} % 开启此项,双页打印模式时中英文摘要右开,这算是开发中的一个彩蛋。本选项默认关闭。 % +% \DescribeOption{blindtrail} +% 盲审模式开关,盲审模式由宏\cs{secretize}和环境\env{secretizeEnv}构成,在盲审模式开启时: +% \begin{itemize} +% \item 宏\cs{secretize}内的内容会被三个星号***替代; +% \item 环境\env{secretizeEnv}的内容会输出为一片空白。 +% \end{itemize} +% \cquthesis 默认为封面作者及导师姓名配置宏\cs{secretize},为致谢的内容部分配置环境\env{secretize},如果您有更多需求,可以自行配置。 +% % \DescribeOption{draft} % 草稿模式,推荐在写作时开启。这个模式下,\LaTeX 不会加载图片,不会渲染文档内超链接,部分宏包会跳过一些工作以降低编译难度,结合\cs{includeonly}命令可以大大提高预览速度,例如: % @@ -760,14 +775,14 @@ %<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<cls>\ProvidesClass{cquthesis} %<cfg>\ProvidesFile{cquthesis.cfg} -%<cls|cfg>[2016/12/07 v1.16 Chongqing University Thesis Template] +%<cls|cfg>[2017/05/30 v1.20 Chongqing University Thesis Template] % \end{macrocode} % 定义一些开发常量: % \begin{macrocode} %<*cls> \hyphenation{Cqu-Thesis} \newcommand{\cquthesis}{\textsc{CquThesis}} -\def\version{1.16} +\def\version{1.20} %</cls> % \end{macrocode} % \file{cquthesis.cfg}中,涉及文档部件的部分常量: @@ -819,13 +834,21 @@ % \end{macrocode} % 每个章首页是否右开 % \begin{macrocode} -\DeclareBoolOption[true]{openany} +\DeclareBoolOption[false]{openany} \DeclareComplementaryOption{openright}{openany} % \end{macrocode} +% 右开时空白的左页是否让页眉页脚空白 +% \begin{macrocode} +\DeclareBoolOption[false]{blankleft} +% \end{macrocode} % 双页模式下英文摘要页右开 % \begin{macrocode} \DeclareBoolOption[false]{abstractopenright} % \end{macrocode} +% 盲审模式开关 +% \begin{macrocode} +\DeclareBoolOption[false]{blindtrail} +% \end{macrocode} % 论文是单面打印还是双面打印(默认:自动,手动模式一般不用) % \begin{macrocode} \newif\if@onesideprint @@ -1025,20 +1048,20 @@ % \subsection{页面类设置} % \subsubsection{页面功能} % \begin{macro}{\cleardoublepage} -% 首页右开的时候,全空的左页不留页眉页脚 +% 首页右开的时候,全空的左页不留页眉页脚,这个功能受blankleft开关影响 % \begin{macrocode} \let\cqu@cleardoublepage\cleardoublepage \renewcommand{\cleardoublepage}{% - \clearpage{\pagestyle{style@empty}\cqu@cleardoublepage} + \clearpage{\ifcqu@blankleft\pagestyle{style@empty}\fi\cqu@cleardoublepage} }%\cleardoublepage % \end{macrocode} % \end{macro} % \begin{macro}{\cqu@addblankpage} -% 用来在强制完成空页工作,注意这里的pagestyle调整范围在花括号之内 +% 用来在强制完成空页工作,注意这里的pagestyle调整范围在花括号之内,这个功能受blankleft开关影响 % \begin{macrocode} \newcommand\cqu@addblankpage{% \afterpage{% - {\null\pagestyle{style@empty}\clearpage}}} + {\null\ifcqu@blankleft\pagestyle{style@empty}\fi\clearpage}}} % \end{macrocode} % \end{macro} % @@ -1080,12 +1103,13 @@ % % \subsubsection{页面设置} % 定义页面,页眉页脚,先建立页面环境,完成分页再决定单双面打印 +% \changes{v1.20}{2017/05/30}{页眉页脚高度以及垂直间距向Word版本靠拢。} % \begin{macrocode} \RequirePackage{geometry} \geometry{ a4paper, ignoreall, nomarginpar, - inner=25mm, outer=25mm, top=30mm, bottom=25mm, - bindingoffset=10mm, head=16mm, headsep=5mm, foot=15mm, footnotesep=5mm} + inner=25mm, outer=25mm, top=30mm, bottom=28mm, + bindingoffset=10mm, head=16mm, headsep=11mm, foot=12mm, footnotesep=5mm} % \end{macrocode} % % \subsubsection{单双页打印的自动判定} @@ -1497,11 +1521,13 @@ % 定制表格和插图的题注样式,这里注意\pkg{caption}宏包在设置表格的\option{position}为\option{top}时,\option{aboveskip}和\option{belowskip}的定义会相互调换,即\option{top}时反义,\option{bottom}时字面义。 % \changes{v1.12}{2016/07/06}{题注的字体设置对中英文都进行了适配。} % \changes{v1.16}{2016/12/07}{正文中的题注的名称和序号不再加粗,同时优化了题注和插图(插表)的垂直距离。} +% \changes{v1.20}{2017/05/30}{现在,题注有多行时,最后一行会进行居中处理。} % \begin{macrocode} \def\cqu@tabular{\zihao{5}\@tabular} \DeclareCaptionLabelFormat{cqu}{{\zihao{5}\rmfamily\songti #1~#2}} -\DeclareCaptionLabelSeparator{cqu}{\hspace{\ccwd}} +\DeclareCaptionLabelSeparator{cqu}{\hspace{0.5\ccwd}} \DeclareCaptionFont{cqu}{\zihao{5}\rmfamily\songti} +\captionsetup{justification=centerlast} \captionsetup{labelformat=cqu,labelsep=cqu,font=cqu} \captionsetup[table]{position=top,belowskip=6bp,aboveskip=0bp} \captionsetup[figure]{position=bottom,belowskip=0bp,aboveskip=6bp} @@ -1700,6 +1726,35 @@ % \end{macro} % \end{macro} % +% \subsection{盲审模式} +% +% \begin{macro}{\secretize} +% 定义盲审模式工具宏\cs{secretize}: +% \begin{macrocode} +\newcommand{\secretize}[1]{% + \ifcqu@blindtrail + {***} + \else + {#1} + \fi +} +% \end{macrocode} +% \end{macro} +% +% \begin{environment}{secretizeEnv} +% 定义盲审模式工具环境\env{secretizeEnv}: +% \begin{macrocode} +\newcommand{\cqu@@secretizeenv}[1]{\long\gdef\cqu@secretizeenv{#1}} +\newenvironment{secretizeEnv}{\Collect@Body\cqu@@secretizeenv}{% + \ifcqu@blindtrail + \relax + \else + \cqu@secretizeenv + \fi +} +% \end{macrocode} +% \end{environment} +% % \subsection{封面绘制} % \subsubsection{信息录入} % \begin{macro}{\cqu@def@term} @@ -2095,7 +2150,7 @@ \def\cqu@studentEN{Ph.D. Candidate} \def\cqu@supervisorCN{指导教师} \def\cqu@supervisorEN{Supervised by{ }} - \def\cqu@majorCN{学科专业} + \def\cqu@majorCN{专业} \def\cqu@majorclassCN{学科门类} \def\cqu@majorEN{Specialty} \def\cqu@universitynameCN{重庆大学} @@ -2220,6 +2275,7 @@ % 目录和索引标题居中,包含\cs{fixhead} % \changes{v0.9.0}{2016/05/16}{把目录加到了PDF书签中。} % \changes{v1.12}{2016/07/06}{现在,目录、图录、表录、公式表的英文字体也采用了无衬线字。} +% \changes{v1.20}{2017/05/30}{现在,目录中的章节层级也有了尾随圆点,并且,圆点的间距更近了。} % \begin{macrocode} %<*cls> \renewcommand{\cfttoctitlefont}{% @@ -2233,13 +2289,19 @@ \renewcommand{\cftafterlottitle}{\hfill} \renewcommand{\cftafterequtitle}{\hfill} \renewcommand{\cftafterequENtitle}{\hfill} +\renewcommand{\cftdot}{…} +\renewcommand{\cftdotsep}{0} +\renewcommand{\cftchapdotsep}{\cftdotsep} +\renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}} +\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % \end{macrocode} % % 重写使用tocloft宏包情况下的目录和索引生成,每次生成新开一页 % \begin{macrocode} +% \changes{v1.20}{2017/05/30}{除非openany选项打开,否则目录和索引现在会在双页模式进行右开。} \ifcqu@continuoustoc\relax\else - \renewcommand{\@cfttocstart}{\clearpage} - \renewcommand{\@cfttocfinish}{\clearpage} + \renewcommand{\@cfttocstart}{\cleardoublepage} + \renewcommand{\@cfttocfinish}{\cleardoublepage} \fi % \end{macrocode} % diff --git a/Master/texmf-dist/source/latex/cquthesis/makewin-English.bat b/Master/texmf-dist/source/latex/cquthesis/makewin-English.bat new file mode 100755 index 00000000000..f9950c6eb2a --- /dev/null +++ b/Master/texmf-dist/source/latex/cquthesis/makewin-English.bat @@ -0,0 +1,139 @@ +@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 b7a547cb29c..67b06a7212c 100755 --- a/Master/texmf-dist/source/latex/cquthesis/makewin.bat +++ b/Master/texmf-dist/source/latex/cquthesis/makewin.bat @@ -1,136 +1,164 @@ -@echo off - -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 clean 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 clean 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 +@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 ԴGithubLiam0205/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
|