From d811ebd312fa93d2ceef5345a32ee9ccf270aa99 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 8 Oct 2021 03:01:38 +0000 Subject: CTAN sync 202110080301 --- macros/latex/contrib/buctthesis/doc/ChangeLog.md | 15 +- macros/latex/contrib/buctthesis/doc/buctthesis.pdf | Bin 433065 -> 448464 bytes .../latex/contrib/buctthesis/doc/chapter/app1.tex | 2 +- .../contrib/buctthesis/doc/chapter/resume.tex | 22 --- .../contrib/buctthesis/doc/cover/buctcover.tex | 2 +- macros/latex/contrib/buctthesis/doc/main.tex | 13 +- macros/latex/contrib/buctthesis/doc/mycfg.sty | 2 +- macros/latex/contrib/buctthesis/doc/thesisbib.bib | 2 +- .../latex/contrib/buctthesis/source/buctthesis.dtx | 184 ++++++++++++++------- .../latex/contrib/buctthesis/source/buctthesis.ins | 6 +- 10 files changed, 156 insertions(+), 92 deletions(-) delete mode 100644 macros/latex/contrib/buctthesis/doc/chapter/resume.tex (limited to 'macros/latex') diff --git a/macros/latex/contrib/buctthesis/doc/ChangeLog.md b/macros/latex/contrib/buctthesis/doc/ChangeLog.md index 14bbbe196d..32ad1ee556 100644 --- a/macros/latex/contrib/buctthesis/doc/ChangeLog.md +++ b/macros/latex/contrib/buctthesis/doc/ChangeLog.md @@ -1,13 +1,24 @@ # Changelog of BUCTthesis 在这里记录 BUCTthesis 中较为重要的改动。 -## v1.1 - 2021/03/21. +## v1.2 - 2021/09/10 ### Added -- 增加论文封面,仅支持硕博 +- 增加 `fontset` 选项,从而可在非 Windows 系统下选择**中文**字库。 + +### Fixed + +- 封面的下划线现在支持动态调整,具体长度与标题首行相等 +- 英文摘要中的论文标题现在能正确换行了,且调整了垂直间距 +## v1.1 - 2021/03/29 +**本版本提交至CTAN** + +### Added + +- 增加论文封面,仅支持硕博 ## v1.0 - 2021/02/18 diff --git a/macros/latex/contrib/buctthesis/doc/buctthesis.pdf b/macros/latex/contrib/buctthesis/doc/buctthesis.pdf index bcb0ad14f6..170b49620a 100644 Binary files a/macros/latex/contrib/buctthesis/doc/buctthesis.pdf and b/macros/latex/contrib/buctthesis/doc/buctthesis.pdf differ diff --git a/macros/latex/contrib/buctthesis/doc/chapter/app1.tex b/macros/latex/contrib/buctthesis/doc/chapter/app1.tex index 4280b9dd0b..0e755c62e9 100644 --- a/macros/latex/contrib/buctthesis/doc/chapter/app1.tex +++ b/macros/latex/contrib/buctthesis/doc/chapter/app1.tex @@ -37,7 +37,7 @@ \zhlipsum[name = xiangyu] \begin{dfigure}[tbp] - \centering\includegraphics[height=.9\textwidth ,angle=-90]{worm gear.pdf} + \centering\includegraphics[height=.9\textwidth ,angle=-90]{worm-gear.pdf} \caption{设计图纸测试} \end{dfigure} diff --git a/macros/latex/contrib/buctthesis/doc/chapter/resume.tex b/macros/latex/contrib/buctthesis/doc/chapter/resume.tex deleted file mode 100644 index f35b219c12..0000000000 --- a/macros/latex/contrib/buctthesis/doc/chapter/resume.tex +++ /dev/null @@ -1,22 +0,0 @@ -%% 成果与简介--resume.tex -\begin{achievements} - - \section*{发表及已接受的论文:} - - \begin{bibenumerate} - \item - \end{bibenumerate} - - \section*{成果及专利:} - \begin{bibenumerate} - \item - \end{bibenumerate} - -\end{achievements} - - -\begin{resume} - \section*{作者简介:} \zhlipsum[1] - - \section*{导师简介:} \zhlipsum[2] -\end{resume} \ No newline at end of file diff --git a/macros/latex/contrib/buctthesis/doc/cover/buctcover.tex b/macros/latex/contrib/buctthesis/doc/cover/buctcover.tex index 2c6ff3345b..dd8ef95e93 100644 --- a/macros/latex/contrib/buctthesis/doc/cover/buctcover.tex +++ b/macros/latex/contrib/buctthesis/doc/cover/buctcover.tex @@ -6,7 +6,7 @@ %%%%% 各选项之间不要留有空行,并以西文逗号“,”分隔 %%%%% % 学号,位于右上角 studentid = {2021010234}, - % 标题。封面的标题有两行,每一行控制在 13 个汉字长度以内 + % 标题。封面的标题有两行,每一行控制在 18 个汉字长度以内 titleA = {一二三四五六七八九十甲乙丙}, titleB = {丁戊己庚辛壬癸一二三四五六}, % 作者 diff --git a/macros/latex/contrib/buctthesis/doc/main.tex b/macros/latex/contrib/buctthesis/doc/main.tex index 2935af5d6d..18cd777ac9 100644 --- a/macros/latex/contrib/buctthesis/doc/main.tex +++ b/macros/latex/contrib/buctthesis/doc/main.tex @@ -4,6 +4,7 @@ type = bachelor, % bachelor | master | doctor %submit, %openany, % openany | openright(default) + fontset = windows, % fandol | windows (normal) ]{buctthesis} % 在这个文件里载入其他对写作有帮助的宏包,或自定义命令等 @@ -17,17 +18,17 @@ etitle = {HOW TO \TeX\ WITH BUCTthesis: AN EXAMPLE}, % 作者姓名 cauthor = {张三}, - % 班级,仅本科 + % 班级 class = {某某1024}, - % 学号,仅本科 + %学号 studentid = {2018020999}, - % 学院,仅本科 + % 学院 school = {材料科学与工程学院}, - % 专业名称,仅本科 + % 专业名称 major = {高分子材料与工程}, - % 导师的姓名与职称,仅本科 + % 导师的姓名与职称 supervisor = {李四教授}, - % 专业负责人姓名,仅本科 + % 专业负责人姓名 msupervisor = {王五}, % 中文、英文关键词,各关键词间以西文逗号“,”分隔 ckeywords = {论文,\LaTeX{},模板}, diff --git a/macros/latex/contrib/buctthesis/doc/mycfg.sty b/macros/latex/contrib/buctthesis/doc/mycfg.sty index 5c281f6d3f..eacb380ffb 100644 --- a/macros/latex/contrib/buctthesis/doc/mycfg.sty +++ b/macros/latex/contrib/buctthesis/doc/mycfg.sty @@ -16,7 +16,7 @@ \caption{#3}\label{#4} \end{figure} } -\newcommand{\version}{v1.1} +\newcommand{\version}{v1.2} \newcommand{\cs}[1]{\texttt{\textbackslash#1}} \newcommand{\file}{\textsf} \newcommand{\pkg}{\textsf} diff --git a/macros/latex/contrib/buctthesis/doc/thesisbib.bib b/macros/latex/contrib/buctthesis/doc/thesisbib.bib index e1e6bf30a4..91e8f780f5 100644 --- a/macros/latex/contrib/buctthesis/doc/thesisbib.bib +++ b/macros/latex/contrib/buctthesis/doc/thesisbib.bib @@ -22,7 +22,7 @@ publisher = {ACS Publications} } @software{buctthesis, - title = {{BUCTthesis: A LaTeX writting template for BUCT undergraduate thesis}}, + title = {{BUCTthesis: A LaTeX writting template for BUCT thesis}}, author = {{Miracle0565}}, year = {2020}, urldate = {2020-04-08}, diff --git a/macros/latex/contrib/buctthesis/source/buctthesis.dtx b/macros/latex/contrib/buctthesis/source/buctthesis.dtx index 6ed3c2fa66..ce1f4b1f46 100644 --- a/macros/latex/contrib/buctthesis/source/buctthesis.dtx +++ b/macros/latex/contrib/buctthesis/source/buctthesis.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2019-2020 by Miracle0565 +% Copyright (C) 2019-2021 by Miracle0565 % % https://github.com/Miracle0565/BUCTthesis % ------------------------------------------------------- @@ -20,7 +20,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \iffalse %<*driver> -\ProvidesFile{buctthesis.dtx}[2020/03/23 v1.1 BUCT Thesis Template] +\ProvidesFile{buctthesis.dtx}[2021/09/10 v1.2 BUCT Thesis Template] \documentclass{ltxdoc} \usepackage{manual} \begin{document} @@ -186,7 +186,7 @@ % sOmetHInG GoEs wRoNg. % \end{document} % \end{latex} -% \item 如果有必要的话可以将 \file{.log} 文件通过 \url{https://paste.ubuntu.com} 一并提交。 +% \item 如果有必要的话可以将 \file{.log} 文件通过 \href{https://pastebin.com/}{Pastebin} 一并提交。 % \end{enumerate} % % \section{使用说明}\label{sec:usage} @@ -197,9 +197,10 @@ % 主文件 \file{main.tex} 以 % \begin{latex} % \documentclass[ -% type = doctor, % bachelor | master | doctor +% type = doctor, % bachelor | master | doctor +% fontset = windows, % fandol | windows | ... % submit, -% openany, % openany | openright(default) +% openany, % openany | openright(default) % ]{buctthesis} % \end{latex} % 命令载入文档类,从而控制全文格式。 @@ -217,8 +218,29 @@ % \documentclass[type = bachelor,]{buctthesis} % \end{latex} % +% \DescribeOpt{fontset = } +% 该选项会传递至 \pkg{ctex} 宏集,从而指定全文的字体。模板的设置如表~\ref{tab:fontset}~所示。 +% +% 其中选项 \opt{fandol} 或使用 \opt{\meta{others}} 选项 \footnote{参见\pkg{ctex}宏集第 4.3 小节。}是为了一些不方便安装字体的系统或平台(如 Overleaf)所采取的\emph{临时解决方案}。 +% 这些字体与中易系列字体有少许差别,且偶尔有缺字现象。 +% 因此,强烈建议在最后提交论文前,在合适的环境下使用 \opt{fontset = windows} 进行编译。 +% +% \begin{table}[ht] +% \centering +% \caption{模板的字体配置}\label{tab:fontset} +% \begin{tabular}{llll} +% \toprule +% \opt{fontset =} & \opt{windows} & \opt{fandol} & \opt{\meta{others}}\\ +% \midrule +% 中文 & 中易字库 (宋、黑开启伪粗体) & Fandol 字库 & / \\ +% 西文 & Times New Roman & Times New Roman & Times New Roman \\ +% \bottomrule +% \end{tabular} +% \end{table} +% % \DescribeOpt{submit} -% 是否为提交版本。如果启用则会将文章超链接和代码块的颜色全部设置为黑色,适合论文最终提交与付梓。 +% 是否为提交版本。如果启用则会将文章超链接和代码块的文字颜色全部设置为黑色,适合论文最终提交与付梓。 +% 需要提醒的是,它不能转换插图的颜色。 % % \DescribeOpt{openright} % \DescribeOpt{openany} @@ -584,13 +606,15 @@ % % 与本科模板不同的是,BUCTthesis 的硕博模板在 \file{cover} 文件夹中仿制了学校的封面。 % 在该文件夹中的三个文件都与封面有关,编译时请确保它们位于同一路径之下。 +% +% \emph{注意:这里的“仿制”仅是实现封面的效果,学校印制的封面需要手写内容,故不能替代学校统一印制的封面。} % \begin{enumerate} % \item \file{cover.tex}:源文档。与 \cs{buctsetup} 类似,这里使用\cs{coversetup} 定义论文信息。 % \begin{latex} % \coversetup{ % % 学号,位于封面的右上角 % studentid = {2021010234}, -% % 标题。封面的标题有两行,每一行控制在 13 个汉字长度以内 +% % 标题。封面的标题有两行,每一行控制在 18 个汉字长度以内 % titleA = {甲乙丙丁戊己庚辛壬癸一二三}, % titleB = {四五六七八九十甲乙丙丁戊己}, % % 作者 @@ -620,9 +644,9 @@ % % 所使用的字体清单: % \begin{enumerate} -% \item SimSun,宋体(特指中易宋体) -% \item SimHei,黑体(特指中易黑体) -% \item KaiTi,楷体(特指中易楷体) +% \item SimSun,中易宋体 +% \item SimHei,中易黑体 +% \item KaiTi,中易楷体 % \item STXingkai,华文行楷 % \item FZDaBiaoSong-B06S,方正大标宋简体 % \item FZXiaoBiaoSong-B05S,方正小标宋简体 @@ -638,7 +662,7 @@ % \begin{macrocode} %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<*class> -\ProvidesClass{buctthesis}[2020/03/20 v1.1 BUCT Thesis Template] +\ProvidesClass{buctthesis}[2021/09/10 v1.2 BUCT Thesis Template] % \end{macrocode} % % 装载 \pkg{ifxetex} 宏包,并通过 \cs{RequireXeTeX} 命令检查编译命令。 @@ -868,17 +892,37 @@ % \end{macrocode} % % \subsection{字体配置} -% 以下仅对 Windows 系统下做了适配。 +% \begin{macro}{\buct@fontsetval} +% 首先来设置中文的字体。在 \pkg{ctex} 宏集中的 \cs{g\_\_ctex\_fontset\_tl} 存储着选项 \opt{fontset} 的值。 +% 模板尽可能避免使用 \LaTeX 3 语法,所以先用一个 \cs{buct@fontsetval} 来保存它。 +% \begin{macrocode} +\newcommand\buct@fontsetval{\csname g__ctex_fontset_tl\endcsname} +% \end{macrocode} +% \end{macro} +% +% 根据\cs{buct@fontsetval} 的值,分别设置不同的字体。 % -% 开启“伪粗体”和“伪斜体”,并设置的相关系数。 % \begin{macrocode} -\xeCJKsetup{EmboldenFactor=2.2,SlantFactor=0.2} -\setCJKmainfont{SimSun}[AutoFakeBold,AutoFakeSlant] -\setCJKsansfont{SimHei}[AutoFakeBold] +\ifthenelse{\equal{\buct@fontsetval}{windows}}{ +% \end{macrocode} +% +% 在 Windows 系统下,需要对中易宋体、中易黑体开启“伪粗”和“伪斜”,并设置相关系数。 +% \begin{macrocode} + \xeCJKsetup{EmboldenFactor=2.2,SlantFactor=0.2} + \setCJKmainfont{SimSun}[AutoFakeBold,AutoFakeSlant] + \setCJKsansfont{SimHei}[AutoFakeBold] +} +% \end{macrocode} +% 而在非Windows 系统下,则由 \pkg{ctex} 宏集自动检测环境并保留其默认设置, +% 同时警告所使用的字体与《规范》(即默认设置)存在不同。 +% \begin{macrocode} +{ + \ClassWarning{buctthesis}{The fonts differ to the default.} +} % \end{macrocode} % % \begin{macro}{\bfsong} -% 设置“伪粗体”后,使用 \cs{bfseries}将产生加粗的宋体, +% 因设置中易宋体开启“伪粗体”,使用 \cs{bfseries}将产生加粗的效果, % 这与一般的 \LaTeX\ 常识是相悖的。 % 因此模板提供了更明确的命令 \cs{bfsong}。 % \begin{macrocode} @@ -887,7 +931,7 @@ % \end{macro} % \begin{macro}{\bfhei} % -% 对于黑体同理。此外要注意模板将预设的无衬线字体(微软雅黑)改为了黑体。 +% 对于黑体同理。此外要注意模板将Windows下预设的无衬线字体(微软雅黑)改为了黑体。 % \begin{macrocode} \newcommand{\bfhei}{\sffamily\bfseries} % \end{macrocode} @@ -914,6 +958,11 @@ }{} % \end{macrocode} % +% +% 指定 Unicode 中带圈数字 \symbol{"2460}--\symbol{"2469} 使用中文字体。 +% \begin{macrocode} +\xeCJKDeclareCharClass{CJK}{"2460->"2469} +% \end{macrocode} % 页眉与页脚的字体。 % \begin{macrocode} \newcommand{\buct@headfont}{\zihao{-5}\songti} @@ -939,7 +988,7 @@ % \begin{macrocode} \ifbuct@bachelor \newcommand{\buct@abs@titfont}{\zihao{3}\bfsong} - \newcommand{\buct@abs@infofont}{\zihao{5}\songti} + \newcommand{\buct@abs@infofont}{\zihao{5}\mdseries} \newcommand{\buct@abs@absfont}{\zihao{4}\songti} \newcommand{\buct@keywordsfont}{\zihao{4}\heiti\CJKfamily+{}} \newcommand{\buct@abs@titfonten}{\zihao{3}\bfseries} @@ -1311,22 +1360,27 @@ \newenvironment{cabstract}{% \cleardoublepage \buct@pdfmark{\buct@cabstract@title}{cabstract} - \centerline{\buct@abs@titfont\buct@ctitle}\vspace{22pt}% - \centerline{% + \begin{center} + \buct@abs@titfont\buct@ctitle + \vskip22pt \buct@abs@infofont\buct@cauthor\quad% \buct@class\quad\buct@studentid\quad% \buct@supervisor@title\buct@supervisor% - }\vspace{22pt}% - \centerline{\buct@abs@absfont\buct@cabstract@title}\vspace{22pt}% - }{\par\vspace{1em}\noindent\buct@keywordsfont\buct@ckeywords@title\buct@ckeywords} + \vskip22pt + \buct@abs@absfont\buct@cabstract@title + \end{center}\par\vspace{18pt} + }{\vskip1em\noindent\buct@keywordsfont\buct@ckeywords@title\buct@ckeywords} \else \newenvironment{cabstract}{% \cleardoublepage \buct@pdfmark{\buct@cabstract@title}{cabstract}\markboth{\buct@cabstract@title}{} - \centerline{\buct@abs@titfont\buct@ctitle}\vspace{24pt}% - \centerline{\buct@abs@absfont\buct@cabstract@title}\vspace{24pt}% + \begin{center} + \buct@abs@titfont\buct@ctitle + \vskip24pt + \buct@abs@absfont\buct@cabstract@title + \end{center}\par\vspace{12pt} \buct@abs@textfont - }{\par\vspace{24pt}% + }{\vskip24pt% \noindent\buct@keywords@titfont\buct@ckeywords@title\buct@keywords@font\buct@ckeywords} \fi % \end{macrocode} @@ -1339,21 +1393,24 @@ \newenvironment{eabstract}{% \cleardoublepage% \buct@pdfmark{\buct@eabstract@title}{abstracten} - \centerline{\buct@abs@titfonten{\buct@etitle}}\vspace{22pt}% - \centerline{\buct@abs@absfonten\buct@eabstract@title}\vspace{22pt}% - }{\par\vspace{1em}\noindent\buct@keywordsfonten \buct@ekeywords@title\buct@ekeywords} + \begin{center} + \buct@abs@titfonten\buct@etitle\vskip22pt + \buct@abs@absfonten\buct@eabstract@title + \end{center} + \par\vspace{22pt} + }{\vskip1em\noindent\buct@keywordsfonten \buct@ekeywords@title\buct@ekeywords} \else \newenvironment{eabstract}{% \cleardoublepage% - \buct@pdfmark{\buct@eabstract@title}{eabstract}\markboth{\buct@eabstract@title}{} - { - \setlength{\leftskip}{3em plus 1em minus .5em} - \setlength{\rightskip}{3em plus 1em minus .5em} - \centerline{\buct@abs@titfonten\buct@etitle}\vspace{72pt} - \centerline{\buct@abs@absfonten\buct@eabstract@title}\vspace{48pt} - } + \buct@pdfmark{\buct@eabstract@title}{eabstract}\markboth{\buct@eabstract@title}{} + \begin{center} + \setlength{\leftskip}{3em plus 1em minus .5em} + \setlength{\rightskip}{3em plus 1em minus .5em} + \buct@abs@titfonten\buct@etitle\vskip76pt + \buct@abs@absfonten\buct@eabstract@title + \end{center}\par\vspace{40pt} \buct@abs@textfont - }{\par\vspace{48pt}% + }{\vskip48pt% \noindent\buct@keywords@titfonten\buct@ekeywords@title\buct@keywords@fonten\buct@ekeywords} \fi % \end{macrocode} @@ -1523,7 +1580,7 @@ \newcommand{\buct@listof}[2]{% \xpatchcmd{\@dottedtocline}{\hbox{.}}{\hbox{$\cdot$}}{}{} \renewcommand{\@dotsep}{1.7}% - \@ifundefined{ext@#1}{\float@error{#1}}{% + \@ifundefined{ext@#1}{\float@error{#1}}{% \@namedef{l@#1}{\@dottedtocline{1}{0em}{2em}} \float@listhead{\buct@toc@tocfont{}#2}% \begingroup\setlength{\parskip}{\z@}% @@ -1776,8 +1833,8 @@ % 在“符号说明表”中我们嵌套了 \env{longtable} 环境,但其中的字号仍应为小四号。 % 因此这里需要保留原先的定义。 % \begin{macrocode} - \let\oldlongtable=\longtable - \let\endoldlongtable=\endlongtable + \let\oldlongtable\longtable + \let\endoldlongtable\endlongtable \ifbuct@bachelor\relax\else \def\longtable{\zihao{5}\oldlongtable} \AtEndEnvironment{longtable}{\normalsize} @@ -2045,7 +2102,7 @@ % 由于学校会统一印制封面,这里仅提供\emph{硕博论文封面}的一个参考实现。 % \begin{macrocode} %<*cover> -\ProvidesClass{buctcover}[2020/03/20 Cover Maker for BUCTthesis] +\ProvidesClass{buctcover}[2021/04/24 Cover Maker for BUCTthesis] \RequirePackage{ifxetex} \RequireXeTeX \RequirePackage{kvoptions} @@ -2101,9 +2158,9 @@ ]{geometry} % \end{macrocode} % -% 载入表格与插图的宏包。 +% 载入表格、插图、计算尺寸的宏包。 % \begin{macrocode} -\RequirePackage{array,graphicx,hyperref} +\RequirePackage{array,graphicx,calc,hyperref} % \end{macrocode} % % 清空页眉页脚。 @@ -2118,9 +2175,10 @@ \xeCJKsetup{EmboldenFactor=2.3} % \end{macrocode} % -% 各种字体的声明与设置。分别是:中易黑体、华文行楷、中易楷体、方正小标宋和方正大标宋。 +% 各种字体的声明与设置。分别是:中易宋体、中易黑体、华文行楷、中易楷体、方正小标宋和方正大标宋。 % 后二者需前往方正字库网站下载。 % \begin{macrocode} +\setCJKmainfont{SimSun}[AutoFakeBold] \setCJKsansfont{SimHei}[AutoFakeBold] \newCJKfontfamily[xingkai]\xingkai{STXingkai} \newCJKfontfamily[zhkai] \zhkai {KaiTi} [AutoFakeBold] @@ -2133,6 +2191,13 @@ % \usepackage[unit=cm,type=upperleft,hshift=0cm,vshift=0cm]{fgruler} % \end{macrocode} % +% 定义下划线命令,这里利用了 \pkg{calc} 宏包的 \cs{widthof} 命令, +% 取 \cs{buct@titleA} (即首行标题)的长度,用以固定下划线的长度。 +% \begin{macrocode} +\newcommand\buct@title@ul[1]{% + \CJKunderline{\makebox[\widthof{\buct@titleA\enspace}][l]{#1}} +} +% \end{macrocode} % 日期格式处理,将输入的 \cs{buct@date} 拆分。 % \begin{macrocode} \newcommand\buct@format@date[1]{% @@ -2214,20 +2279,19 @@ \begin{tabular}{ >{\begin{CJKfilltwosides}[b]{4\ccwd}\sffamily\bfseries}r% <{\end{CJKfilltwosides}}% - @{}l% - @{}>{\zihao{3}\bfseries}l% + @{}>{\enspace\zihao{3}\bfseries}l% <{\vspace{.2em}}% } % \end{macrocode} % -% 题目需要手动断行,且长度宜控制在 \SI{26}{em} 以内。 +% 题目需要手动断行,且长度控制在 \SI{36}{em} 以内。 % 因表格本身的横线与文字间距较大,这里采用下划线的方式来划线。 % \begin{macrocode} - 题目 &: & \CJKunderline{\makebox[13em][l]{\buct@titleA}}\\ - &\phantom{:} & \CJKunderline{\makebox[13em][l]{\buct@titleB}}\\ - 专业 &: & \CJKunderline{\makebox[13em][l]{\buct@major}}\\ - 研究生 &: & \CJKunderline{\makebox[13em][l]{\buct@author}}\\ - 指导教师 &: & \CJKunderline{\makebox[13em][l]{\buct@supervisor}}\\ + 题目 & \buct@title@ul{\buct@titleA}\\ + &\buct@title@ul{\buct@titleB}\\ + 专业 & \buct@title@ul{\zihao{4}\buct@major}\\ + 研究生 & \buct@title@ul{\zihao{4}\buct@author}\\ + 指导教师 & \buct@title@ul{\zihao{4}\buct@supervisor}\\ \end{tabular} \end{center} % \end{macrocode} @@ -2264,7 +2328,7 @@ % \iffalse % \begin{macrocode} %<*manual> -\ProvidesPackage{manual}[2020/01/23 document style for BUCTthesis] +\ProvidesPackage{manual}[2021/09/25 document style for BUCTthesis] \RequirePackage{hypdoc} \PassOptionsToPackage{AutoFakeSlant}{xeCJK} \RequirePackage[UTF8, heading, fontset = none, linespread = 1.2,]{ctex} @@ -2295,10 +2359,14 @@ name = {第,节}, }, } +\xeCJKDeclareCharClass{CJK}{"2460->"2469} \setcounter{secnumdepth}{4} \setcounter{tocdepth}{3} -\setmainfont{Libertinus Serif} -\setmathfont{LibertinusMath-Regular.otf} +\setmainfont{TeX Gyre Pagella} +\setmonofont[ + HyphenChar = None , + UprightFont=* Light, BoldFont=* Bold, + SlantedFont=* Light Oblique]{CMU Typewriter Text} \captionsetup{strut=off, labelsep=quad, labelfont+=bf} \lstdefinestyle{base}{ aboveskip = 0 pt, @@ -2336,6 +2404,8 @@ } \lstnewenvironment{latex}{\lstset{style=latex}}{} \lstnewenvironment{shell}{\lstset{style=shell}}{} +\let\oldCodelineNo\theCodelineNo +\def\theCodelineNo{\textcolor{gray}{\oldCodelineNo}} \setlist{ leftmargin = 0em, nosep @@ -2393,7 +2463,7 @@ \ctexset{section/numbering=false}% } \hypersetup{ - pdftitle = {BUCTthesis: 北京化工大学学位论文模板}, + pdftitle = {BUCTthesis:北京化工大学学位论文模板}, pdfauthor = {Miracle0565}, } \CodelineIndex diff --git a/macros/latex/contrib/buctthesis/source/buctthesis.ins b/macros/latex/contrib/buctthesis/source/buctthesis.ins index d2374560ac..ada3e84b4a 100644 --- a/macros/latex/contrib/buctthesis/source/buctthesis.ins +++ b/macros/latex/contrib/buctthesis/source/buctthesis.ins @@ -46,7 +46,11 @@ of LaTeX version 1999/12/01 or later. \usedir{tex/latex/buctthesis} \file{buctthesis.cls}{\from{\jobname.dtx}{class} } \file{manual.sty} {\from{\jobname.dtx}{manual}} - \file{buctcover.cls} {\from{\jobname.dtx}{cover}} +} + +\generate{ + \usedir{tex/latex/buctthesis/cover} + \file{buctcover.cls}{\from{\jobname.dtx}{cover}} } \obeyspaces -- cgit v1.2.3