From 4aa8843c99834395edcb086d56f9ecb98fdb45dd Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 30 Oct 2022 20:47:00 +0000 Subject: bithesis (30oct22) git-svn-id: svn://tug.org/texlive/trunk@64871 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/bithesis/bithesis.pdf | Bin 1033346 -> 1043619 bytes .../texmf-dist/source/latex/bithesis/bithesis.dtx | 115 ++++++++++++++------- Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls | 2 +- Master/texmf-dist/tex/latex/bithesis/bithesis.cls | 69 +++++++------ Master/texmf-dist/tex/latex/bithesis/bitreport.cls | 2 +- 5 files changed, 119 insertions(+), 69 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf index 3e80f53288e..2ce81197106 100644 Binary files a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf and b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf differ diff --git a/Master/texmf-dist/source/latex/bithesis/bithesis.dtx b/Master/texmf-dist/source/latex/bithesis/bithesis.dtx index 1038cef3644..1a99ce12386 100644 --- a/Master/texmf-dist/source/latex/bithesis/bithesis.dtx +++ b/Master/texmf-dist/source/latex/bithesis/bithesis.dtx @@ -21,7 +21,7 @@ %\ProvidesExplClass{bithesis} %\ProvidesExplClass{bitreport} %\ProvidesExplClass{bitbeamer} -%{2022-10-23}{3.1.0}{BIT Thesis Templates} +%{2022-10-29}{3.1.1}{BIT Thesis Templates} % %\NeedsTeXFormat{LaTeX2e}[2020/10/01] %\ProvidesClass{bitbook} @@ -30,7 +30,7 @@ % [2022/05/09 v2.1.1 BIT Thesis Templates] % %<*driver> -\ProvidesFile{bithesis.dtx}[2022/10/23 3.1.0 BIT Thesis Templates] +\ProvidesFile{bithesis.dtx}[2022/10/29 3.1.1 BIT Thesis Templates] \documentclass[letterpaper]{l3doc} \usepackage{dtx-style} @@ -1254,7 +1254,7 @@ % 攻读学位期间发表论文与研究成果清单。 % \end{function} % -% \begin{function}{\addpubs,\addpub} +% \begin{function}[added=2022-10-23]{\addpubs,\addpub} % \begin{bitsyntax}[emph={[1]publications,addpubs,addpub}] % \begin{publications} % \addpub{\meta{单条引用内容的key}} @@ -1266,7 +1266,7 @@ % 用于添加个人成果,添加过的成果可以通过 |printbibliography| 打印。 % \end{function} % -% \begin{function}{\pubsection} +% \begin{function}[added=2022-10-23]{\pubsection} % \begin{bitsyntax}[emph={[1]publications,pubsection,printbibliography}] % \begin{publications} % \addpubs{\meta{引用内容的key},\meta{引用内容的key2}} @@ -1283,7 +1283,7 @@ % 用于添加分类的目录。 % \end{function} % -% \begin{function}{\Author,\AuthorEn} +% \begin{function}[added=2022-10-23]{\Author,\AuthorEn} % \begin{bitsyntax}[emph={[1]Author}] % \Author[][<覆盖普通模式下内容>][<覆盖盲审模式下内容>] % \end{bitsyntax} @@ -1317,6 +1317,22 @@ % 个人简介。 % \end{function} % +% \section{常见问题和疑难解答} +% +% \subsection{如何修改数学公式的字体?} +% +% 本项目已经使用 \pkg{unicode-math} 宏包, +% 可以在导言区使用 |\setmathfont{XITS Math}| 修改数学环境下字体: +% +% \begin{latex} +% \unimathsetup{bold-style=ISO} +% \setmathfont{XITS Math} +% \end{latex} +% +% \textit{请事先安装 XITS 字体。} +% +% \textit{更多字体与使用方法请参考 \url{https://ctan.org/pkg/unicode-math?lang=zh}。} +% % \section{\cls{bitreport.cls} 使用与配置} % \label{sec:bitreport} % @@ -2198,12 +2214,14 @@ \RequirePackage{multirow} \RequirePackage{tikz} \RequirePackage{etoolbox} -\RequirePackage{hyperref} +% Hide color and border in hyperref. +\RequirePackage[hidelinks]{hyperref} \RequirePackage{xcolor} \RequirePackage{caption} \RequirePackage{array} \RequirePackage{amsmath} \RequirePackage{amssymb} +\RequirePackage{pifont} \RequirePackage{amsthm} \RequirePackage{unicode-math} \RequirePackage{pdfpages} @@ -2257,13 +2275,17 @@ } % \end{macrocode} % -% 根据学校的要求,在图片前后加上一行空白。 +% 根据学校的要求,在本科生模板图片前后加上一行空白。 % \begin{macrocode} -\setlength{\intextsep}{2\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} +\@@_if_bachelor_thesis:T { + \setlength{\intextsep}{2\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} +} % \end{macrocode} % % 设置 Times New Roman 字体。 +% 根据学校规范要求,默认情况下也使用 Times New Roman 字体。 % \begin{macrocode} +\setmainfont{Times~New~Roman} \setromanfont{Times~New~Roman} % \end{macrocode} % @@ -3060,6 +3082,14 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\BigStar} +% 提供密级选项中需要的五角星,在普通环境中使用。 +% \begin{macrocode} +\DeclareDocumentCommand \BigStar { } + { \ding{72} } +% \end{macrocode} +% \end{macro} +% % \begin{environment}{blindPeerReview} % 用于包裹涉及个人信息的内容。 % @@ -3830,6 +3860,40 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\addpub,\addpubs} +% 添加一个或多个参考文献。 +% \begin{macrocode} +\NewDocumentCommand \addpub {m} { + \nocite{#1} + \addtocategory{mypub}{#1} +} + +\NewDocumentCommand \addpubs {m} { + % apply a clist + \clist_map_function:nN {#1} \addpub +} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\pubsection} +% 设置小标题。 +% \begin{macrocode} +\NewDocumentCommand \pubsection {m} { + { + % 自增计数器 + \par\stepcounter{pub} + % 设置小标题,暂时没有考虑英文模式 + \noindent + \textbf{ + \heiti{ + \zhnumber{\thepub}、#1 + } + }\par + } +} +% \end{macrocode} +% \end{macro} +% % \begin{environment}{publications} % 生成攻读学位期间发表论文与研究成果清单。 % \begin{macrocode} @@ -3914,34 +3978,13 @@ } } - % 添加一个参考文献 - \cs_new:Npn \addpub ##1 { - \nocite{##1} - \addtocategory{mypub}{##1} - } - - % 添加多个参考文献 - \cs_new:Npn \addpubs ##1 { - % apply a clist - \clist_map_function:nN {##1} \addpub - } - - % 设置计数器 - \newcounter{pub} - % 设置小标题 - \cs_new:Npn \pubsection ##1 { - { - % 自增计数器 - \stepcounter{pub} - % 设置小标题,暂时没有考虑英文模式 - \noindent - \textbf{ - \heiti{ - \zhnumber{\thepub}、##1 - } - }\par - } - } + \if_cs_exist:N \c@pub { + % 重置计数器 + \setcounter{pub}{0} + } \else: { + % 设置计数器 + \newcounter{pub} + } \fi: % 设置参考文献的排序 \bool_if:NTF \l_@@_publications_sorting_bool { diff --git a/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls b/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls index 21506abfc63..d8a691efeee 100644 --- a/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls +++ b/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bitbeamer} -{2022-10-23}{3.1.0}{BIT Thesis Templates} +{2022-10-29}{3.1.1}{BIT Thesis Templates} \keys_define:nn { bitbeamer } { titlegraphic .tl_set:N = \l_bit_titlegraphic_tl, diff --git a/Master/texmf-dist/tex/latex/bithesis/bithesis.cls b/Master/texmf-dist/tex/latex/bithesis/bithesis.cls index 147f23a209c..d8c5256555f 100644 --- a/Master/texmf-dist/tex/latex/bithesis/bithesis.cls +++ b/Master/texmf-dist/tex/latex/bithesis/bithesis.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bithesis} -{2022-10-23}{3.1.0}{BIT Thesis Templates} +{2022-10-29}{3.1.1}{BIT Thesis Templates} \int_new:N \g__bithesis_thesis_type_int \int_new:N \g__bithesis_head_zihao_int \bool_new:N \g__bithesis_twoside_bool @@ -416,12 +416,13 @@ \RequirePackage{multirow} \RequirePackage{tikz} \RequirePackage{etoolbox} -\RequirePackage{hyperref} +\RequirePackage[hidelinks]{hyperref} \RequirePackage{xcolor} \RequirePackage{caption} \RequirePackage{array} \RequirePackage{amsmath} \RequirePackage{amssymb} +\RequirePackage{pifont} \RequirePackage{amsthm} \RequirePackage{unicode-math} \RequirePackage{pdfpages} @@ -460,7 +461,10 @@ footskip = 2.6cm + 7bp - 2cm, } } -\setlength{\intextsep}{2\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} +\__bithesis_if_bachelor_thesis:T { + \setlength{\intextsep}{2\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} +} +\setmainfont{Times~New~Roman} \setromanfont{Times~New~Roman} \ctex_at_end_preamble:n { \__bithesis_if_thesis_english:TF { @@ -1036,6 +1040,8 @@ } \DeclareDocumentCommand \BITSetup { m } { \keys_set:nn { bithesis } { #1 }} +\DeclareDocumentCommand \BigStar { } + { \ding{72} } \NewDocumentEnvironment {blindPeerReview} {O{\c_true_bool} +b} { \bool_if:nTF {\g__bithesis_blind_mode_bool && #1} {} { @@ -1711,6 +1717,28 @@ } } } +\NewDocumentCommand \addpub {m} { + \nocite{#1} + \addtocategory{mypub}{#1} +} + +\NewDocumentCommand \addpubs {m} { + % apply a clist + \clist_map_function:nN {#1} \addpub +} +\NewDocumentCommand \pubsection {m} { + { + % 自增计数器 + \par\stepcounter{pub} + % 设置小标题,暂时没有考虑英文模式 + \noindent + \textbf{ + \heiti{ + \zhnumber{\thepub}、#1 + } + }\par + } +} \NewDocumentEnvironment {publications} {+b} { % 同时设置 omit 以及 blindPeerReview 才能跳过此章节生成。 @@ -1792,34 +1820,13 @@ } } - % 添加一个参考文献 - \cs_new:Npn \addpub ##1 { - \nocite{##1} - \addtocategory{mypub}{##1} - } - - % 添加多个参考文献 - \cs_new:Npn \addpubs ##1 { - % apply a clist - \clist_map_function:nN {##1} \addpub - } - - % 设置计数器 - \newcounter{pub} - % 设置小标题 - \cs_new:Npn \pubsection ##1 { - { - % 自增计数器 - \stepcounter{pub} - % 设置小标题,暂时没有考虑英文模式 - \noindent - \textbf{ - \heiti{ - \zhnumber{\thepub}、##1 - } - }\par - } - } + \if_cs_exist:N \c@pub { + % 重置计数器 + \setcounter{pub}{0} + } \else: { + % 设置计数器 + \newcounter{pub} + } \fi: % 设置参考文献的排序 \bool_if:NTF \l__bithesis_publications_sorting_bool { diff --git a/Master/texmf-dist/tex/latex/bithesis/bitreport.cls b/Master/texmf-dist/tex/latex/bithesis/bitreport.cls index 3f0966ab68c..128e40d364e 100644 --- a/Master/texmf-dist/tex/latex/bithesis/bitreport.cls +++ b/Master/texmf-dist/tex/latex/bithesis/bitreport.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bitreport} -{2022-10-23}{3.1.0}{BIT Thesis Templates} +{2022-10-29}{3.1.1}{BIT Thesis Templates} \int_new:N \g__bithesis_report_type_int \clist_const:Nn \c__bithesis_report_type_clist { common, undergraduate_proposal} -- cgit v1.2.3