diff options
author | Karl Berry <karl@freefriends.org> | 2022-07-29 21:02:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-07-29 21:02:18 +0000 |
commit | 212c1c64ea2e4d29a96ff4a7da6e6610a7a16b31 (patch) | |
tree | b29bb4f8a734ff8d7884b3aab288175e806c5fe3 | |
parent | 83759346c1967decfbe3e25ad73fe062d222e6c9 (diff) |
buctthesis (28jul22)
git-svn-id: svn://tug.org/texlive/trunk@64004 c570f23f-e606-0410-a88d-b1316a301751
35 files changed, 565 insertions, 2001 deletions
diff --git a/Master/texmf-dist/doc/latex/buctthesis/AddBib.png b/Master/texmf-dist/doc/latex/buctthesis/AddBib.png Binary files differdeleted file mode 100644 index 3ed15fb86d4..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/AddBib.png +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/buctthesis/BUCT-badge.pdf b/Master/texmf-dist/doc/latex/buctthesis/BUCT-badge.pdf Binary files differdeleted file mode 100644 index 663feec77f9..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/BUCT-badge.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/buctthesis/ChangeLog.md b/Master/texmf-dist/doc/latex/buctthesis/ChangeLog.md deleted file mode 100644 index 32ad1ee5564..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/ChangeLog.md +++ /dev/null @@ -1,171 +0,0 @@ -# Changelog of BUCTthesis -在这里记录 BUCTthesis 中较为重要的改动。 - -## v1.2 - 2021/09/10 - -### Added - -- 增加 `fontset` 选项,从而可在非 Windows 系统下选择**中文**字库。 - -### Fixed - -- 封面的下划线现在支持动态调整,具体长度与标题首行相等 -- 英文摘要中的论文标题现在能正确换行了,且调整了垂直间距 - -## v1.1 - 2021/03/29 - -**本版本提交至CTAN** - -### Added - -- 增加论文封面,仅支持硕博 - -## v1.0 - 2021/02/18 - -### Added - -- 增加硕博论文模板,`\documentclass[]{buctthesis}` 必须指定类型 - -### Fixed - -- `denotation` 环境第二列宽的默认值的单位修正 -- 本科中文摘要的关键词中,字体都使用中易黑体 - -### Deleted - -- 模板发行版中取消 `blank` 文件夹,建议写作时直接在示例文件中修改 - -## Beta.v0.9.6 - 2020/12/10 - -### Added - -- 启用 `DocStrip`,增加文件 `buctthesis.dtx` 和 `buctthesis.ins`,以后将说明将在 `buctthesis.pdf` 查看;同时对示例文件进行大幅更改 -- `\buctsetup` 命令中增加一个 `studentid` 键 -- “诚信声明” 现在使用 `\makedeclare` 命令:其后可跟一个可选参数,参数为扫描页的路径 - -### Changed - -- 自定义命令的 `myconfig.tex` 文件更改为 `mycfg.sty` -- 更改了 `\buctsetup` 命令中的键名称大小写 -- 调整“任务书”中部分垂直间距,并在“进度安排”的表格里画上了竖线 -- 重排“摘要”部分,且现在中英文摘要只能排在不同页上 -- 设计图纸: `\designfig` -> `\dcaption`;以前需要在 `\caption` 后跟上 `\designfig` ,现在简化成了一个命令 `\dcaption` -- `denotation` 环境现在只接受一个参数,控制第二列宽度 - -### Deleted - -- 删除了校徽和校名的插图 -- 删除公式编号中“式”字 -- 删除 `declare` 、 `abstract*` 和 `abstracten*`环境 - -## Beta.v0.9.5 - 2020/08/17 - -### Added - -- 文档类选项 `openany` | `openright` ,适用于单双页打印:前者为原先设置;而后者会在适当之处插入一完全空白页,使得章页右开 -- 现在多余的文档类选项将传递至 `ctexbook` - -### Changed - -- 重写字体配置,修改字体切换的命令:粗体、黑体等有所变化 -- 微调双面摘要的垂直间距 -- 文档类选项 `TextBlack` 重命名为 `submit` -- 代码的标签编号以 `-` 而不是 `.` 连接,形如 `代码 2-1` -- “任务书”中,插入论文信息部分命令修改为带可选星号的 `\taskinfo` 命令。原定义 `\taskinfo` -> `\taskinfo*` ,`\Taskinfo` -> `\taskinfo`。类似于“摘要”的环境,带星号的是按照《规范》来定义的,无星号的则是为了应对一些变化 -- 修改了数学公式中的字体 - -### Deleted - -- 删除文档类选项 `LessTOC` ,代之以相应位置的 PDF 书签 -- 删除了“符号说明”中表格的表头 -- 删除了 `dcolumn` 宏包,其功能与 `siunitx` 有所重合 - -## Beta.v0.9.4 - 2020/06/08 - -### Changed - -- 格式控制从宏包改为文档类 -- 主文件 `buctthesis.tex` 更名为 `main.tex` ,并将“诚信声明” `declare.tex` 、“任务书” `taskbook.tex` 和“摘要” `abstract.tex` 整合成一个文件 `frontmatter.tex` -- “任务书”部分代码简化 -- 英文摘要关键词的字体改为中易黑体 -- 将“前言”编入 `\frontmatter` 里,将“第一章”设置为第一页 - -### Added - -- 主文件中增加 `\buctsetup` 命令,代替以往的多个 `\def` 来存储论文的相关信息 -- 以 `threeparttable` 宏包来排版有脚注的表格 -- 以 `gbt7714` 宏包控制参考文献格式 - -### Deleted - -- 删除原先的参考文献格式控制文件 `gbt7714-2005.bst` - -## Beta.v0.9.3 - 2020/04/08 - -### Changed - -- 脚注:修复正文里脚注标记与前后文字的间距问题;脚注文字固定在页面底部且跨页重置计数 -- 使用 `unicode-math` 宏包来配置数学字体 -- `\emph{}` `\em` 命令:中文改用加粗的宋体而非楷体,西文改用粗体而非斜体 - -### Deleted - -- 删除了算法的宏包,根据需要自行在 `myconfig.tex` 中调用 -- 删除 `bm` 宏包 - -### Added - -- 新增“任务书”部分 -- 新文件 `myconfig.tex`,用于装载宏包或自定义命令 -- 使用 `pdfpages` 宏包的相关命令来插入扫描PDF,可替换诚信声明、摘要页等 -- 新环境 `dfigure` ,用于排版机械专业的设计图纸,在主文件的生成目录命令后使用 `\listofdesignfigures` 产生“设计图纸目录”;原定义 `\designfig` 仍然可以在普通插图中使用,但效果不同 - -## Beta.v0.9.2 - 2020/03/14 - -### Changed - -- 重构宏包代码,重排了部分文本。 -- 取消等宽字体的使用,一律使用 Times New Roman,并稍微修改了代码环境 -- 现在使用 `\cite{}` 实现上标引用参考文献 -- 现在使用 `subcaption` 宏包来插入并列子图,而 `subfigure` 宏包好久没更新了 -- 一级编号列表环境的序号改变了样式 -- 修改章节标题间距、缩短插图后的间距,列表环境现在改为正常的行间距 -- 章、节、小节标题一律使用加粗的宋体,浮动体标签和数学定理内容改为宋体 -- “诚信申明”改为“诚信声明”;修正了“前言”的拼写错误 -- 在“结论”这一章标题中间加上了一个全角空格 -- 简化了“符号说明”的代码 - -### Deleted - -- 删除了在上个版本在摘要部分加入的作者及导师信息 -- 删除参考文献的文件 bibliography.tex,简化原来的代码并移动至主文件 -- 删除了一些宏包 - -### Added - -- 宏包载入多了选项:`TextBlack` 用于将超链接全部设置为黑色,`LessTOC` 将会取消将“第一章”之前的所有内容编目(这与《规范》的示例相同) - -## Beta.v0.9.1 - 2020/02/06 - -### Changed - -- 正文字号修正 -- 摘要同页排版的环境( `abstract*` 与 `abstracten*` ),关键词的代码( `\keywords` 和 `\keywordsen` )和格式 -- 行距调整至近似 Microsoft Word 中 22 磅 -- 修改节标题的前间距、小节标题的前后间距 -- 代码环境,关键字增设粗体、环境背景颜色减弱至浅灰色的10% -- 修改目录部分的缩进 -- 改用数字带圈圈的脚注 -- 修改列表环境的间距 -- 删除了部分数学类的环境 -- 更改了hyperref宏包设置,凸显超链接以便于查看 - -### Added - -- 摘要部分的作者( `\author` 和 `\authoren` )、导师( `\thesupervisor` 和 `\thesupervisoren` )等信息 -- 增加“设计图纸”编入目录的命令 `\designfig` -- 增加了化学类的宏包、算法的宏包 - -## Beta.v0.9.0 - 2020/01/23 - -The first version. Hello World! diff --git a/Master/texmf-dist/doc/latex/buctthesis/LICENSE b/Master/texmf-dist/doc/latex/buctthesis/LICENSE deleted file mode 100644 index 4db9b5af292..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/LICENSE +++ /dev/null @@ -1,415 +0,0 @@ -The LaTeX Project Public License -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - -LPPL Version 1.3c 2008-05-04 - -Copyright 1999 2002-2008 LaTeX3 Project - Everyone is allowed to distribute verbatim copies of this - license document, but modification of it is not allowed. - - -PREAMBLE -======== - -The LaTeX Project Public License (LPPL) is the primary license under -which the LaTeX kernel and the base LaTeX packages are distributed. - -You may use this license for any work of which you hold the copyright -and which you wish to distribute. This license may be particularly -suitable if your work is TeX-related (such as a LaTeX package), but -it is written in such a way that you can use it even if your work is -unrelated to TeX. - -The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', -below, gives instructions, examples, and recommendations for authors -who are considering distributing their works under this license. - -This license gives conditions under which a work may be distributed -and modified, as well as conditions under which modified versions of -that work may be distributed. - -We, the LaTeX3 Project, believe that the conditions below give you -the freedom to make and distribute modified versions of your work -that conform with whatever technical specifications you wish while -maintaining the availability, integrity, and reliability of -that work. If you do not see how to achieve your goal while -meeting these conditions, then read the document `cfgguide.tex' -and `modguide.tex' in the base LaTeX distribution for suggestions. - - -DEFINITIONS -=========== - -In this license document the following terms are used: - - `Work' - Any work being distributed under this License. - - `Derived Work' - Any work that under any applicable law is derived from the Work. - - `Modification' - Any procedure that produces a Derived Work under any applicable - law -- for example, the production of a file containing an - original file associated with the Work or a significant portion of - such a file, either verbatim or with modifications and/or - translated into another language. - - `Modify' - To apply any procedure that produces a Derived Work under any - applicable law. - - `Distribution' - Making copies of the Work available from one person to another, in - whole or in part. Distribution includes (but is not limited to) - making any electronic components of the Work accessible by - file transfer protocols such as FTP or HTTP or by shared file - systems such as Sun's Network File System (NFS). - - `Compiled Work' - A version of the Work that has been processed into a form where it - is directly usable on a computer system. This processing may - include using installation facilities provided by the Work, - transformations of the Work, copying of components of the Work, or - other activities. Note that modification of any installation - facilities provided by the Work constitutes modification of the Work. - - `Current Maintainer' - A person or persons nominated as such within the Work. If there is - no such explicit nomination then it is the `Copyright Holder' under - any applicable law. - - `Base Interpreter' - A program or process that is normally needed for running or - interpreting a part or the whole of the Work. - - A Base Interpreter may depend on external components but these - are not considered part of the Base Interpreter provided that each - external component clearly identifies itself whenever it is used - interactively. Unless explicitly specified when applying the - license to the Work, the only applicable Base Interpreter is a - `LaTeX-Format' or in the case of files belonging to the - `LaTeX-format' a program implementing the `TeX language'. - - - -CONDITIONS ON DISTRIBUTION AND MODIFICATION -=========================================== - -1. Activities other than distribution and/or modification of the Work -are not covered by this license; they are outside its scope. In -particular, the act of running the Work is not restricted and no -requirements are made concerning any offers of support for the Work. - -2. You may distribute a complete, unmodified copy of the Work as you -received it. Distribution of only part of the Work is considered -modification of the Work, and no right to distribute such a Derived -Work may be assumed under the terms of this clause. - -3. You may distribute a Compiled Work that has been generated from a -complete, unmodified copy of the Work as distributed under Clause 2 -above, as long as that Compiled Work is distributed in such a way that -the recipients may install the Compiled Work on their system exactly -as it would have been installed if they generated a Compiled Work -directly from the Work. - -4. If you are the Current Maintainer of the Work, you may, without -restriction, modify the Work, thus creating a Derived Work. You may -also distribute the Derived Work without restriction, including -Compiled Works generated from the Derived Work. Derived Works -distributed in this manner by the Current Maintainer are considered to -be updated versions of the Work. - -5. If you are not the Current Maintainer of the Work, you may modify -your copy of the Work, thus creating a Derived Work based on the Work, -and compile this Derived Work, thus creating a Compiled Work based on -the Derived Work. - -6. If you are not the Current Maintainer of the Work, you may -distribute a Derived Work provided the following conditions are met -for every component of the Work unless that component clearly states -in the copyright notice that it is exempt from that condition. Only -the Current Maintainer is allowed to add such statements of exemption -to a component of the Work. - - a. If a component of this Derived Work can be a direct replacement - for a component of the Work when that component is used with the - Base Interpreter, then, wherever this component of the Work - identifies itself to the user when used interactively with that - Base Interpreter, the replacement component of this Derived Work - clearly and unambiguously identifies itself as a modified version - of this component to the user when used interactively with that - Base Interpreter. - - b. Every component of the Derived Work contains prominent notices - detailing the nature of the changes to that component, or a - prominent reference to another file that is distributed as part - of the Derived Work and that contains a complete and accurate log - of the changes. - - c. No information in the Derived Work implies that any persons, - including (but not limited to) the authors of the original version - of the Work, provide any support, including (but not limited to) - the reporting and handling of errors, to recipients of the - Derived Work unless those persons have stated explicitly that - they do provide such support for the Derived Work. - - d. You distribute at least one of the following with the Derived Work: - - 1. A complete, unmodified copy of the Work; - if your distribution of a modified component is made by - offering access to copy the modified component from a - designated place, then offering equivalent access to copy - the Work from the same or some similar place meets this - condition, even though third parties are not compelled to - copy the Work along with the modified component; - - 2. Information that is sufficient to obtain a complete, - unmodified copy of the Work. - -7. If you are not the Current Maintainer of the Work, you may -distribute a Compiled Work generated from a Derived Work, as long as -the Derived Work is distributed to all recipients of the Compiled -Work, and as long as the conditions of Clause 6, above, are met with -regard to the Derived Work. - -8. The conditions above are not intended to prohibit, and hence do not -apply to, the modification, by any method, of any component so that it -becomes identical to an updated version of that component of the Work as -it is distributed by the Current Maintainer under Clause 4, above. - -9. Distribution of the Work or any Derived Work in an alternative -format, where the Work or that Derived Work (in whole or in part) is -then produced by applying some process to that format, does not relax or -nullify any sections of this license as they pertain to the results of -applying that process. - -10. a. A Derived Work may be distributed under a different license - provided that license itself honors the conditions listed in - Clause 6 above, in regard to the Work, though it does not have - to honor the rest of the conditions in this license. - - b. If a Derived Work is distributed under a different license, that - Derived Work must provide sufficient documentation as part of - itself to allow each recipient of that Derived Work to honor the - restrictions in Clause 6 above, concerning changes from the Work. - -11. This license places no restrictions on works that are unrelated to -the Work, nor does this license place any restrictions on aggregating -such works with the Work by any means. - -12. Nothing in this license is intended to, or may be used to, prevent -complete compliance by all parties with all applicable laws. - - -NO WARRANTY -=========== - -There is no warranty for the Work. Except when otherwise stated in -writing, the Copyright Holder provides the Work `as is', without -warranty of any kind, either expressed or implied, including, but not -limited to, the implied warranties of merchantability and fitness for a -particular purpose. The entire risk as to the quality and performance -of the Work is with you. Should the Work prove defective, you assume -the cost of all necessary servicing, repair, or correction. - -In no event unless required by applicable law or agreed to in writing -will The Copyright Holder, or any author named in the components of the -Work, or any other party who may distribute and/or modify the Work as -permitted above, be liable to you for damages, including any general, -special, incidental or consequential damages arising out of any use of -the Work or out of inability to use the Work (including, but not limited -to, loss of data, data being rendered inaccurate, or losses sustained by -anyone as a result of any failure of the Work to operate with any other -programs), even if the Copyright Holder or said author or said other -party has been advised of the possibility of such damages. - - -MAINTENANCE OF THE WORK -======================= - -The Work has the status `author-maintained' if the Copyright Holder -explicitly and prominently states near the primary copyright notice in -the Work that the Work can only be maintained by the Copyright Holder -or simply that it is `author-maintained'. - -The Work has the status `maintained' if there is a Current Maintainer -who has indicated in the Work that they are willing to receive error -reports for the Work (for example, by supplying a valid e-mail -address). It is not required for the Current Maintainer to acknowledge -or act upon these error reports. - -The Work changes from status `maintained' to `unmaintained' if there -is no Current Maintainer, or the person stated to be Current -Maintainer of the work cannot be reached through the indicated means -of communication for a period of six months, and there are no other -significant signs of active maintenance. - -You can become the Current Maintainer of the Work by agreement with -any existing Current Maintainer to take over this role. - -If the Work is unmaintained, you can become the Current Maintainer of -the Work through the following steps: - - 1. Make a reasonable attempt to trace the Current Maintainer (and - the Copyright Holder, if the two differ) through the means of - an Internet or similar search. - - 2. If this search is successful, then enquire whether the Work - is still maintained. - - a. If it is being maintained, then ask the Current Maintainer - to update their communication data within one month. - - b. If the search is unsuccessful or no action to resume active - maintenance is taken by the Current Maintainer, then announce - within the pertinent community your intention to take over - maintenance. (If the Work is a LaTeX work, this could be - done, for example, by posting to comp.text.tex.) - - 3a. If the Current Maintainer is reachable and agrees to pass - maintenance of the Work to you, then this takes effect - immediately upon announcement. - - b. If the Current Maintainer is not reachable and the Copyright - Holder agrees that maintenance of the Work be passed to you, - then this takes effect immediately upon announcement. - - 4. If you make an `intention announcement' as described in 2b. above - and after three months your intention is challenged neither by - the Current Maintainer nor by the Copyright Holder nor by other - people, then you may arrange for the Work to be changed so as - to name you as the (new) Current Maintainer. - - 5. If the previously unreachable Current Maintainer becomes - reachable once more within three months of a change completed - under the terms of 3b) or 4), then that Current Maintainer must - become or remain the Current Maintainer upon request provided - they then update their communication data within one month. - -A change in the Current Maintainer does not, of itself, alter the fact -that the Work is distributed under the LPPL license. - -If you become the Current Maintainer of the Work, you should -immediately provide, within the Work, a prominent and unambiguous -statement of your status as Current Maintainer. You should also -announce your new status to the same pertinent community as -in 2b) above. - - -WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE -====================================================== - -This section contains important instructions, examples, and -recommendations for authors who are considering distributing their -works under this license. These authors are addressed as `you' in -this section. - -Choosing This License or Another License ----------------------------------------- - -If for any part of your work you want or need to use *distribution* -conditions that differ significantly from those in this license, then -do not refer to this license anywhere in your work but, instead, -distribute your work under a different license. You may use the text -of this license as a model for your own license, but your license -should not refer to the LPPL or otherwise give the impression that -your work is distributed under the LPPL. - -The document `modguide.tex' in the base LaTeX distribution explains -the motivation behind the conditions of this license. It explains, -for example, why distributing LaTeX under the GNU General Public -License (GPL) was considered inappropriate. Even if your work is -unrelated to LaTeX, the discussion in `modguide.tex' may still be -relevant, and authors intending to distribute their works under any -license are encouraged to read it. - -A Recommendation on Modification Without Distribution ------------------------------------------------------ - -It is wise never to modify a component of the Work, even for your own -personal use, without also meeting the above conditions for -distributing the modified component. While you might intend that such -modifications will never be distributed, often this will happen by -accident -- you may forget that you have modified that component; or -it may not occur to you when allowing others to access the modified -version that you are thus distributing it and violating the conditions -of this license in ways that could have legal implications and, worse, -cause problems for the community. It is therefore usually in your -best interest to keep your copy of the Work identical with the public -one. Many works provide ways to control the behavior of that work -without altering any of its licensed components. - -How to Use This License ------------------------ - -To use this license, place in each of the components of your work both -an explicit copyright notice including your name and the year the work -was authored and/or last substantially modified. Include also a -statement that the distribution and/or modification of that -component is constrained by the conditions in this license. - -Here is an example of such a notice and statement: - - %% pig.dtx - %% Copyright 2005 M. Y. Name - % - % This work may be distributed and/or modified under the - % conditions of the LaTeX Project Public License, either version 1.3 - % of this license or (at your option) any later version. - % The latest version of this license is in - % http://www.latex-project.org/lppl.txt - % and version 1.3 or later is part of all distributions of LaTeX - % version 2005/12/01 or later. - % - % This work has the LPPL maintenance status `maintained'. - % - % The Current Maintainer of this work is M. Y. Name. - % - % This work consists of the files pig.dtx and pig.ins - % and the derived file pig.sty. - -Given such a notice and statement in a file, the conditions -given in this license document would apply, with the `Work' referring -to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being -generated from `pig.dtx' using `pig.ins'), the `Base Interpreter' -referring to any `LaTeX-Format', and both `Copyright Holder' and -`Current Maintainer' referring to the person `M. Y. Name'. - -If you do not want the Maintenance section of LPPL to apply to your -Work, change `maintained' above into `author-maintained'. -However, we recommend that you use `maintained', as the Maintenance -section was added in order to ensure that your Work remains useful to -the community even when you can no longer maintain and support it -yourself. - -Derived Works That Are Not Replacements ---------------------------------------- - -Several clauses of the LPPL specify means to provide reliability and -stability for the user community. They therefore concern themselves -with the case that a Derived Work is intended to be used as a -(compatible or incompatible) replacement of the original Work. If -this is not the case (e.g., if a few lines of code are reused for a -completely different task), then clauses 6b and 6d shall not apply. - - -Important Recommendations -------------------------- - - Defining What Constitutes the Work - - The LPPL requires that distributions of the Work contain all the - files of the Work. It is therefore important that you provide a - way for the licensee to determine which files constitute the Work. - This could, for example, be achieved by explicitly listing all the - files of the Work near the copyright notice of each file or by - using a line such as: - - % This work consists of all files listed in manifest.txt. - - in that place. In the absence of an unequivocal list it might be - impossible for the licensee to determine what is considered by you - to comprise the Work and, in such a case, the licensee would be - entitled to make reasonable conjectures as to which files comprise - the Work. diff --git a/Master/texmf-dist/doc/latex/buctthesis/acknowledgement.tex b/Master/texmf-dist/doc/latex/buctthesis/acknowledgement.tex deleted file mode 100644 index b7d6c7e0a56..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/acknowledgement.tex +++ /dev/null @@ -1,8 +0,0 @@ -%% 致谢--acknowledgement.tex -\begin{acknowledgement} - 致谢部分。 - - \dots - - %最后还要感谢 BUCTthesis 帮助我节省了论文排版的时间! -\end{acknowledgement}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/app1.tex b/Master/texmf-dist/doc/latex/buctthesis/app1.tex deleted file mode 100644 index 0e755c62e92..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/app1.tex +++ /dev/null @@ -1,57 +0,0 @@ -%% 附录第一章--app1.tex -\chapter{这里是附录}\label{app:1} -未尽事宜可将其列在附录中加以说明。论文有关的数据表、符号说明、计算程序、运行结果、 -主要设备、仪器仪表的性能指标和测试分析结果、精度等均可列在附录中。 -\section{附录的节} -与正文类似。 -\begin{table}[ht] - \centering - \caption{测试表格}\label{tab:mytable} - \begin{tabular}{cc} - \toprule - a & B \\ - \midrule - 甲 & 乙丙丁 \\ - \bottomrule - \end{tabular} -\end{table} - -\subsection{附录的小节} -\zhlipsum[1][name = zhufu] - -\begin{figure}[ht] - \centering - \begin{minipage}{0.4\textwidth} - \centering - \includegraphics[height=4cm]{image-a.pdf} - \caption{第一张图}\label{fig:test1} - \end{minipage} - \hspace{1cm} - \begin{minipage}{0.4\textwidth} - \centering - \includegraphics[height=4cm]{image-c.pdf} - \caption{第二张图}\label{fig:test2} - \end{minipage} -\end{figure} - -\zhlipsum[name = xiangyu] - -\begin{dfigure}[tbp] - \centering\includegraphics[height=.9\textwidth ,angle=-90]{worm-gear.pdf} - \caption{设计图纸测试} -\end{dfigure} - -\zhlipsum[1][name = aspirin] - -\begin{equation} - a^2+b^3=c^4 -\end{equation} - -\begin{definition} - 这是定义。\footnote{这是测试脚注。} -\end{definition} - -\begin{lstlisting}[language=c++,caption=一个测试,label=mycode] -#define mian main - \end{lstlisting} - diff --git a/Master/texmf-dist/doc/latex/buctthesis/buctcover.tex b/Master/texmf-dist/doc/latex/buctthesis/buctcover.tex deleted file mode 100644 index dd8ef95e93c..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/buctcover.tex +++ /dev/null @@ -1,23 +0,0 @@ -% !TeX encoding = UTF-8 -\documentclass[ - type = master % type = [ master | doctor ](不支持本科) -]{buctcover} -\coversetup{ - %%%%% 各选项之间不要留有空行,并以西文逗号“,”分隔 %%%%% - % 学号,位于右上角 - studentid = {2021010234}, - % 标题。封面的标题有两行,每一行控制在 18 个汉字长度以内 - titleA = {一二三四五六七八九十甲乙丙}, - titleB = {丁戊己庚辛壬癸一二三四五六}, - % 作者 - author = {张三}, - % 专业 - major = {计算机科学与技术}, - % 导师 - supervisor = {某某某教授}, - % 日期,若注释掉则为当日。格式为:“YYYY-MM-DD”。 - date = {2021-12-23}, -} -\begin{document} - \makecover -\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/buctthesis.pdf b/Master/texmf-dist/doc/latex/buctthesis/buctthesis.pdf Binary files differdeleted file mode 100644 index 72c0e5976aa..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/buctthesis.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/buctthesis/chapter1.tex b/Master/texmf-dist/doc/latex/buctthesis/chapter1.tex deleted file mode 100644 index 806f9417b88..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/chapter1.tex +++ /dev/null @@ -1,270 +0,0 @@ -%% 第一章--chapter1.tex -\chapter{绪论} -\section{字体} -\subsection{字体配置} -模板配置了两种字库,以 \opt{fontset = windows} 为例: -\begin{enumerate} - \item 中文:主字体(衬线字体)为中易宋体,无衬线字体族为中易黑体,% - 且二者均可加粗为对应的伪粗体;《规范》中未规定的楷体和仿宋均为 \pkg{ctex} 宏集的预设,为避免格式审查问题,应当减少使用; - \item 西文:除英文摘要的关键词使用中易黑体、除公式中的西文(数字、字母等)使用特殊字体,其它一律使用 Times New Roman; - \item 公式:模板会根据实际字体安装情况,选择 $LibertinusMath$ 字体或使用 \LaTeX\ 的默认字体。 -\end{enumerate} - -\subsection{中文字体命令及对应西文示例} -\begin{enumerate} - \item 宋体:北京化工大学 BUCT 1958 或 \textrm{北京化工大学 BUCT 1958} - \item 粗宋体:{\bfsong 北京化工大学 BUCT 1958} 或 \emph{北京化工大学 BUCT 1958} - \item 黑体:{\heiti 北京化工大学 BUCT 1958} 或 \textsf{北京化工大学 BUCT 1958} - \item 粗黑体:{\bfhei 北京化工大学 BUCT 1958} 或 \textsf{\bfseries 北京化工大学 BUCT 1958} - \item 仿宋:{\ttfamily 北京化工大学 BUCT 1958} 或 \texttt{北京化工大学 BUCT 1958} - \item 斜体:{\itshape 北京化工大学 BUCT 1958} 或 \textit{北京化工大学 BUCT 1958} -\end{enumerate} - -\section{浮动体} -% 一些文字用来充版面。摘自 https://github.com/chinese-poetry/chinese-poetry -六王毕,四海一,蜀山兀,阿房出。覆压三百余里,隔离天日。骊山北构而西折,直走咸阳。 -二川溶溶,流入宫墙。五步一楼,十步一阁;廊腰缦回,檐牙高啄;各抱地势,钩心斗角。 -盘盘焉,囷囷焉,蜂房水涡,矗不知其几千万落。长桥卧波,未云何龙?复道行空,不霁何虹? -高低冥迷,不知西东。歌台暖响,春光融融;舞殿冷袖,风雨凄凄。一日之内,一宫之间,而气候不齐。 - -妃嫔媵嫱,王子皇孙,辞楼下殿,辇来于秦,朝歌夜弦,为秦宫人。明星荧荧,开妆镜也; -绿云扰扰,梳晓鬟也;渭流涨腻,弃脂水也;烟斜雾横,焚椒兰也。雷霆乍惊,宫车过也; -辘辘远听,杳不知其所之也。一肌一容,尽态极妍,缦立远视,而望幸焉。有不见者,三十六年。 -燕赵之收藏,韩魏之经营,齐楚之精英,几世几年,剽掠其人,倚叠如山。一旦不能有,输来其间。 -鼎铛玉石,金块珠砾,弃掷逦迤,秦人视之,亦不甚惜。 - -\subsection{插图}\label{subsec:fig} - -一般的图片插入使用 \env{figure} 环境。 -一张普普通通的插图参见图~\ref{fig:a-single-image}。 - -\begin{figure}[H] - \centering - \includegraphics[width=0.3\textwidth]{image-plain.pdf} - \caption{一张插图。加上参数 [H] 固定图片位置,禁止“浮动”}\label{fig:a-single-image} -\end{figure} - -嗟乎!一人之心,千万人之心也。秦爱纷奢,人亦念其家。奈何取之尽锱铢,用之如泥沙! -使负栋之柱,多于南亩之农夫;架梁之椽,多于机上之工女;钉头磷磷,多于在庾之粟粒; -瓦缝参差,多于周身之帛缕;直栏横槛,多于九土之城郭;管弦呕哑,多于市人之言语。 -使天下之人,不敢言而敢怒。独夫之心,日益骄固。戍卒叫,函谷举,楚人一炬,可怜焦土! - -至于图片的并排,如果只需为组图写一个图注,可在一个 \env{figure} 环境中多次使用 \cs{includegraphics} 命令(可根据需要在插图之间加入空白)。两张并排的图片参见图~\ref{fig:abreast-image}。 - -\begin{figure}[htbp] - \centering - \includegraphics[width=0.3\textwidth]{image-a.pdf} - \hspace{1cm} - \includegraphics[width=0.3\textwidth]{image-c.pdf} - \caption{并排的插图,这适合无需在每一张图下写图注的情况。}\label{fig:abreast-image} -\end{figure} - -呜呼!灭六国者六国也,非秦也;族秦者秦也,非天下也。嗟乎!使六国各爱其人,则足以拒秦; -使秦复爱六国之人,则递三世可至万世而为君,谁得而族灭也?秦人不暇自哀,而后人哀之; -后人哀之而不鉴之,亦使后人而复哀后人也。 - -梁惠王曰:“寡人之于国也,尽心焉耳矣。河内凶,则移其民于河东,移其粟于河内;河东凶亦然。 -察邻国之政,无如寡人之用心者。邻国之民不加少,寡人之民不加多,何也? - -但如果需要在每一个子图下写上图注(或需要对子图标序),可使用 \cs{subcaptionbox} 命令。 -一张子图见图~\ref{subfig:abreast-image-a},又一张子图见图~~\ref{subfig:abreast-image-c},这两张并排起来的组图见图~\ref{fig:abreast-image-a-c}。 - -\begin{figure}[htbp] - \centering - \subcaptionbox{这是一张图片。\label{subfig:abreast-image-a}} - {\includegraphics[height = 5cm]{image-a.pdf}} - \hspace{1cm} - \subcaptionbox{这又是一张图片。\label{subfig:abreast-image-c}} - {\includegraphics[angle = 90, height = 5cm]{image-c.pdf}} - \caption{并排的插图,这适合每一张图写一个图注的情况。}\label{fig:abreast-image-a-c} -\end{figure} - -孟子对曰:“王好战,请以战喻。填然鼓之,兵刃既接,弃甲曳兵而走。或百步而后止, -或五十步而后止。以五十步笑百步,则何如?”曰:“不可,直不百步耳,是亦走也。” -曰:“王如知此,则无望民之多于邻国也。不违农时,谷不可胜食也;数罟不入洿池, -鱼鳖不可胜食也;斧斤以时入山林,材木不可胜用也。谷与鱼鳖不可胜食,材木不可胜用, -是使民养生丧死无憾也。养生丧死无憾,王道之始也。五亩之宅,树之以桑,五十者可以衣帛矣 -。鸡豚狗彘之畜,无失其时,七十者可以食肉矣。百亩之田,勿夺其时,数口之家,可以无饥矣; -谨庠序之教,申之以孝悌之义,颁白者不负戴于道路矣。七十者衣帛食肉,黎民不饥不寒, -然而不王者,未之有也。狗彘食人食而不知检,涂有饿莩而不知发,人死,则曰:‘非我也, -岁也。’是何异于刺人而杀之,曰‘非我也,兵也’?王无罪岁,斯天下之民至焉。” - -(机械设计等)设计图纸需要编目。模板新定义了类似 \env{figure} 的 \env{dfigure}环境。 -设计图纸的标签与普通插图不同,且计数器相互独立。 -对于图纸的编目,可以在主文件以 \cs{listofdesignfigures} 生成独立的目录,或使用 -\cs{dcaption}\marg{Caption}命令与主目录合并。 -\begin{dfigure}% [H] or [htbp] is also available here. - \centering - \includegraphics[width = \textwidth]{worm-gear.pdf} - \caption{设计图纸示例} % \dcaption{设计图纸示例} % 该命令将其编入主目录。 -\end{dfigure} - -以上命令适合大部分图片的插入。 -但不可否认的是,\LaTeX{}对于图文混排的能力是较弱的,如果希望深入了解,推荐~ -\href{https://github.com/WenboSheng/epslatex-cn}{\LaTeXe 插图指南} -(中译本第三版)作为参考资料。 - - -\subsection{表格}\label{subsec:tab} -论文中常用三线表。本模板的组成见表~\ref{tab:mainfile}。 - -\begin{table}[ht] - \centering - \caption{模板的组成}\label{tab:mainfile} - \begin{tabular}{ll} - \toprule - 文件(夹)名 & 简述\\ - \midrule - \file{chapter/} & 论文各个部分的源文件路径\\ - \file{code/} & 源代码的路径\\ - \file{figure/} & 插图的路径\\ - \file{buctthesis.ins} & \textsc{DocStrip} 驱动文件\\ - \file{buctthesis.dtx} & \textsc{DocStrip} 源文件\\ - \file{main.tex} & 主文件\\ - \file{main.pdf} & 示例文档\\ - \file{buctthesis.cls} & 模板的文档类文件\\ - \file{thesisbib.bib} & \BibTeX{}参考文献数据库\\ - \file{mycfg.sty} & 自定义配置文件\\ - \file{README.md} & 项目自述文件\\ - \file{buctthesis.pdf} & 写作指南\\ - \bottomrule - \end{tabular} -\end{table} - -北冥有鱼,其名为鲲。鲲之大,不知其几千里也。化而为鸟,其名为鹏。鹏之背, -不知其几千里也,怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者, -天池也。《齐谐》者,志怪者也。《谐》之言曰:“鹏之徙于南冥也,水击三千里, -抟扶摇而上者九万里,去以六月息者也。” - -使用 \cs{hline}命令也能划线,但其线宽固定。关于表格内对齐与常用的命令见表~\ref{tab:tabcmd}。 -\begin{table}[H] - \centering - \caption{表格命令举例}\label{tab:tabcmd} - \begin{tabular}{lcrp{5em}@{\extracolsep{3em}}l} - \hline - 左对齐 & 居中对齐 & 右对齐 & 定宽 & 增加左侧间距\\ - l & c & r & p\marg{width} & @\{\cs{extracolsep}\marg{width}\}\\ - \hline - \end{tabular} -\end{table} - -野马也,尘埃也,生物之以息相吹也。 -天之苍苍,其正色邪?其远而无所至极邪?其视下也,亦若是则已矣。且夫水之积也不厚, -则其负大舟也无力。覆杯水于坳堂之上,则芥为之舟;置杯焉则胶,水浅而舟大也。 -风之积也不厚,则其负大翼也无力。故九万里,则风斯在下矣,而后乃今培风; -背负青天而莫之夭阏者,而后乃今将图南。 - -另外,三线表生成横线的命令 \cs{toprule}、\cs{midrule}和 -\cs{bottomrule}后可以加一个可选参数来实现对线宽的控制,如果不加参数则为默认值; -而\cs{cline}可针对某些表列画上横线。 -此外,两个表格也能横向并列排版,如表~\ref{tab:2tab}。 - -\begin{table}[H] - \centering - \caption{这是一个并列排版的示例} - \label{tab:2tab} - \begin{tabular}{|c|r|r|} - \hline - & \multicolumn{2}{c|}{成绩} \\\cline{2-3} - 姓名 & 语文 & 数学 \\\hline - 张三 & 91 & 92 \\\hline - \end{tabular} - \hspace{1cm} - \begin{tabular}{|c|r|r|} - \hline - \multirow{2}*{姓名} & \multicolumn{2}{c|}{成绩} \\ \cline{2-3} - & 语文 & 数学 \\ \hline - 李四 & 93 & 94 \\ \hline - \end{tabular} -\end{table} - -蜩与学鸠笑之曰:“我决起而飞,抢榆枋而止,时则不至,而控于地而已矣,奚以之九万里而南为?” -适莽苍者,三餐而反,腹犹果然;适百里者宿舂粮,适千里者,三月聚粮。之二虫又何知? -小知不及大知,小年不及大年。奚以知其然也?朝菌不知晦朔,蟪蛄不知春秋,此小年也。 -楚之南有冥灵者,以五百岁为春,五百岁为秋。上古有大椿者,以八千岁为春,八千岁为秋。 -此大年也。而彭祖乃今以久特闻,众人匹之。不亦悲乎! - -至于可跨页的长表格,可以使用 \env{longtable} 来帮忙,见表~\ref{tab:longtab}。 - -\begin{longtable}[c]{*{5}{l}r} - \caption{带有塑化剂的PEO-基聚合物电解质举例}\label{tab:longtab}\\ - \toprule - \textbf{条目} & \textbf{聚合物基体} & \textbf{锂盐} & \textbf{塑化剂} & \textbf{$T$ (\si{\degreeCelsius})} & \textbf{离子电导率 (\si{S.cm^{-1}})}\\ \midrule - \endfirsthead - \multicolumn{6}{c}{\small 续表 \thetable\quad 带有塑化剂的PEO-基聚合物电解质举例} \\ - \toprule - \textbf{条目} & \textbf{聚合物基体} & \textbf{锂盐} & \textbf{塑化剂} & \textbf{$T$ (\si{\degreeCelsius})} & \textbf{离子电导率 (\si{S.cm^{-1}})}\\ \midrule - \endhead - \bottomrule - \endfoot\endlastfoot - 1 & PEO & LiTf & PEG & 40 & \num{e-4} \\ - 2 & PEO & LiTFSI & PEGDME & 60 & \num{3.8e-4} \\ - 3 & PEO & LiTf & MC3 & 25 & \num{5.0e-5} \\ - 4 & PEO & LiTf & TEG & 30 & \num{6.5e-5} \\ - 5 & PEO & LiTf & EC & 60 & \num{9.0e-4} \\ - 6 & PEO & LiTf & PC & 60 & \num{5.2e-4} \\ - 7 & PEO/P(VDF-HFP) & \ce{LiClO4} & EC/PC & 30 & \num{1.25e-3} \\ - 8 & PEO/PDMAEMA & LiTFSI & Tetraglyme & 25 & \num{4.7e-4} \\ - 9 & PEO & LiTf & EC & 25 & \num{1.5e-4} \\ - 10 & PEO & LiTf & EC/PC & 25 & \num{1.2e-4} \\ - 11 & PEO & LiTf & EC & 30 & \num{1.6e-4} \\ - 12 & PEO & LiTf & LiTFSI/DEP & 20 & \num{4.6e-5} \\ - 13 & PEO & \ce{LiClO4} & DOP & 25 & \num{3.8e-4} \\ - 14 & PEO & \ce{LiClO4} & DBP & 25 & $\sim10^{-5}$ \\ - 15 & PEO & \ce{LiClO4} & DMP & 25 & $\sim10^{-5}$ \\ - 16 & PEO & LiTf & DBP & 25 & \num{6.0e-4} \\ - 17 & PEO & LiTFSI & CP & 25 & $\sim10^{-5}$ \\ - 18 & PEO & LiTFSI & SN & 30 & \num{1.0e-3} \\ - 19 & PEO & LiTFSI & SN & 25 & \num{2.9e-3} \\ - 20 & PEO & LiBOB & SN & 20 & $\sim10^{-4}$ \\ - 21 & PEO & LiTFSI & BMITFSI & 25 & \num{3.2e-4} \\ - 22 & PEO & LiTFSI & EMITFSI & 40 & \num{2.67e-4} \\ - 23 & PEO & LiTFSI & \ce{PP13TFSI} & 40 & \num{8.93e-5} \\ - 24 & PEO & LiTf & EMITf & 25 & \num{3.0e-4}\\ - 25 & PEO & LiTFSI & \ce{PP13FSI} & 60 & \num{2.18e-3} \\ - 26 & PEO & LiTFSI & \ce{Pyr24TFSI} & 35 & $\sim10^{-5}$ \\ - 27 & PEO & \ce{LiBF4} & \ce{MMPIBF4} & 25 & \num{2.06e-3} \\ - 28 & PEO & \ce{LiPF6} & \ce{MMPIPF6} & 25 & \num{1.13e-3} \\ \bottomrule -\end{longtable} - -汤之问棘也是已:“穷发之北有冥海者,天池也。有鱼焉,其广数千里,未有知其修者,其名为鲲。 -有鸟焉,其名为鹏。背若泰山,翼若垂天之云。抟扶摇羊角而上者九万里,绝云气,负青天,然后图南, -且适南冥也。斥鷃笑之曰:‘彼且奚适也?我腾跃而上,不过数仞而下,翱翔蓬蒿之间,此亦飞之至也。 -而彼且奚适也?’”此小大之辩也。 - - -如果希望单元格内自动换行以适应列宽, -可以使用\env{tabularx}环境,表 \ref{tab:tabularx} 是一个示例。 -\begin{table}[htbp] - \centering - \begin{minipage}{0.9\textwidth} - \caption{表格控制列宽及自动折行。有些时候标题会比较长,那么我们可以把表格放到一个小页环境里,从而达到比较好的折行效果。} - \label{tab:tabularx} - % 整张表格最大宽度设为文本宽度(由于处于小页,则为0.8倍论文文本宽度); - % 控制第一、二列列宽,第三列允许折行 - \begin{tabularx}{\textwidth}{p{4em}p{7.5em}X} - \toprule - & \multicolumn{1}{c}{\em 原文} & \multicolumn{1}{c}{\em 翻译} \\ - \cmidrule(l){2-3} - & 亦余心之所善兮,虽九死其犹未悔。 & For the ideal that I hold dear to my heart,I will not regret a thousand times to die. \\ - \cmidrule(l){2-3} - \multirow{3}{*}{古文翻译} & 不畏浮云遮望眼,自缘身在最高层。 & We have no fear of the clouds that may block our sights as we are already at the top of the height. \\ - \cmidrule(l){2-3} - & 苟利国家生死以,岂因祸福避趋之。 & I shall dedicate myself to the interests of the country in life and death irrespective of personal weal and woe. \\ - \bottomrule - \end{tabularx} - \end{minipage} -\end{table} - -故夫知效一官,行比一乡,德合一君,而征一国者,其自视也亦若此矣。而宋荣子 -犹然笑之。且举世誉之而不加劝,举世非之而不加沮,定乎内外之分,辩乎荣辱之 -境,斯已矣。彼其于世,未数数然也。虽然,犹有未树也。夫列子御风而行,泠然 -善也。旬有五日而后反。彼于致福者,未数数然也。此虽免乎行,犹有所待者也。 -若夫乘天地之正,而御六气之辩,以游无穷者,彼且恶乎待哉?故曰:至人无己, -神人无功,圣人无名。 - -若要在表格中使用脚注,请参见第~\ref{subsec:footnote}小节。 - -一些在线网站如 -~\href{http://www.tablesgenerator.com}{LaTeX Tables Generator}~ -可以帮助制作更复杂的表格。
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/chapter2.tex b/Master/texmf-dist/doc/latex/buctthesis/chapter2.tex deleted file mode 100644 index 25f950001c9..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/chapter2.tex +++ /dev/null @@ -1,303 +0,0 @@ -%% 第二章--chapter2.tex -\chapter{示例}\label{chap:CodeIntro} -\section{公式与数学类环境}\label{subsec:eqandmath} -公式分为编号和不编号的两类。可以使用\env{equation}环境为公式编号。 -\begin{equation}\label{eq:gougu} - x_{1,2}=\frac{-b \pm \sqrt{b^2-4ac}}{2a}. -\end{equation} -加上 \cs{label},就能使用 \cs{ref}或 \cs{eqref}引用了。 -代入式~\ref{eq:gougu},可解得式~\eqref{eq:gougu}。 - -不编号的公式使用 \env{equation*} 环境。 -\begin{equation*} - \int_{-\infty}^{+\infty}\frac{1}{\sqrt{2\uppi}\sigma} % 直立的 π - \mathrm{e}^{-\tfrac{(x-\mu)^2}{2\sigma^2}} \,\mathrm{d}x =1 -\end{equation*} - -行内公式可套以美元符号 \verb+$ $+,如 $f(x)=ax^2+bx+c$. -对于上述 \env{equation*} 环境中的公式(即行间公式),可套以双美元符号 \verb+$$ $$+ -或 \verb+\[ \]+。 -但是并不建议使用前者,因其在 \LaTeX\ 中并没有完整的重定义,有可能会在某些命令上失效。 - -关于公式的命令可以参考 \pkg{amsmath} 宏包说明文档,中译可参考 \href{http://static.latexstudio.net/article/2019/0204/amsmath-guide-zh-cn.pdf}{amsmath 包使用手册}; -%除此之外可参考 \href{http://media.cism.it/attachments/ch8.pdf}{Higher Mathematics}。 -还有一些在线网站,如 \href{https://latexlive.com/}{latexlive} 不仅能够即时预览,还提供了图像与手写识别系统。 -以下举几个例子来展示最常见的用法: - -由$\cos 2x=\cos^2x-\sin^2x$ , % 函数 -则$\Vector{n}=a\Vector{x}+b\Vector{y}+c\Vector{z}.$ % 自定义向量,区别于\vec。见 mycfg.sty -又因$\mathcal{M}\in \mathbb{R}$, % 字母样式 -于是 -\[ - \int_a^b f(t)\,\mathrm{d}t = \iint\limits_S g(x,y)\,\mathrm{d}x\mathrm{d}y - = \iiint\nolimits_D\, \mathrm{d}h. % 积分号及角标 -\] -得 -\[\lim_{n \to \infty}\sum_{i=1}^n{\frac{1}{n}}\sin\frac{k}{n}.\] % 极限、无穷、求和 -故 -\begin{equation}\label{eq:res} - \oint_{\gamma}f(z)\,\mathrm{d}z=2\uppi\symbfit{i}\sum^n_{k=1}\mathrm{I}(\gamma,a_k)\mathrm{Res}(f,a_k). -\end{equation} - -若要公式多行对齐,可以使用 \env{align} 环境。下面的例子在等号处对齐: -\begin{align} - x^2 + y^2 & = 1 \\ - x & = \sqrt{1-y^2} \\\text{and also } - y & =\sqrt{1-x^2} -\end{align} -这会对每一行的公式进行编号。若在 \env{equation} 环境中嵌套 \env{aligned} 环境,加上参数[b] -可以达到多行对齐但只对最后一个式子编号的效果: -\begin{equation} - \begin{aligned}[b] - (a + b)^3 & = (a + b) (a + b)^2 \\ - & = (a + b)(a^2 + 2ab + b^2) \\ - & = a^3 + 3a^2b + 3ab^2 + b^3 - \end{aligned} -\end{equation} - -模板使用 \pkg{amsthm} 宏包预定义了部分与数学相关的环境,格式及编号如下: -\begin{axiom} - 这是一条axiom,使用\env{axiom}环境。 -\end{axiom} -\begin{theorem}[某某定理] % []内为可选参数 - 这是一条theorem,使用\env{theorem}环境。 -\end{theorem} -\begin{corollary}[一条推论]\label{cor:cor1} - 这是一条corollary,使用\env{corollary}环境。 -\end{corollary} -\begin{proof} - 这是一条proof,使用\env{proof}环境。 - \[ - \Matrix{A}=\begin{bmatrix} - a_{11} & \cdots & a_{1n} \\ - \vdots & \ddots & \vdots \\ - 0 & \cdots & a_{nn} - \end{bmatrix}_{n\times n} - \] - - 在证明的最后一行会加上证毕符号,若其位置不合理则需加上命令 \cs{qedhere}。 - 综上所述,推论 \ref{cor:cor1} 成立。 -\end{proof} -\begin{remark} - 这是一条remark,使用\env{remark}环境。 -\end{remark} -\begin{assumption} - 这是一条assumption,使用\env{assumption}环境。 -\end{assumption} -\begin{definition} - 这是一条definition,使用\env{definition}环境。 -\end{definition} -\begin{property} - 这是一条property,使用\env{property}环境。 -\end{property} -\begin{proposition} - 这是一条proposition,使用\env{proposition}环境。 -\end{proposition} -\begin{lemma} - 这是一条lemma,使用\env{lemma}环境。 -\end{lemma} - -以上是模板已经定义了的数学类环境,但也能自定义。 -如: -\newtheorem{tale}{传说}[chapter] % 计数与章编号相关 -\begin{tale}[山经] % []内为可选参数 - 精卫衔微木,将以填沧海。 -\end{tale} -\begin{tale}[海经] - 刑天舞干戚,猛志固常在。 -\end{tale} - - -\section{代码}\label{subsec:code} -若要在文中插入代码,简单的代码可以使用原文照列命令~\verb+\verb+或~\verb*@\verb*@, -比如~\verb-i++-、\verb*|int main|,二者区别在于,带*号的将展示代码中的空格。 -如果插入代码块,可使用环境\env{lstlisting},且可以有如下选择: -\subsubsection{直接在 \LaTeX\ 中书写代码} -\begin{lstlisting}[language=C++,caption=Hello World!,label=code:HelloWorld] -/* Hello World C++ */ -#include<iostream> -using namespace std; -/***** main function *****/ -int main() -{ - cout<<"Hello World!"<<endl; @*//Print "Hello World!", I'm \LaTeX{}!@* - return 0; -} -\end{lstlisting} -\subsubsection{引用代码文件} -源代码存放于 \file{code/} 文件夹里,直接调用即可。 -\lstinputlisting[ - language=C++, - caption=你好,世界!, - label=code:HelloWorld2 -]{code/helloworld.cpp} - -模板按照《规范》以 Times New Roman 字体书写代码。 -代码的关键字以粗体标出,而注释(西文)使用斜体。 -模板载入文档类时的 \opt{submit} 选项将关闭代码颜色。 - -代码 \ref{code:HelloWorld} 展示了如何从代码块中临时返回到 \LaTeX\ 中。 - -\section{化学类} -模板加载了 \pkg{mhchem} 宏包,方便了化学(方程)式的书写。 -使用命令 \cs{ce}\marg{formula} 把化学(方程)式括起来。 -\subsubsection{简单化学式} -\begin{table}[H] - \centering - \begin{tabular}{llllll} - \ce{H2O} & \ce{Sb2O3} & \ce{KCr(SO4)2.12H2O} & \ce{CrO4^2-} & \ce{[AgCl2]-} & \ce{^{0}_{-1}M^{-}} \\ - \ce{$n$H2O} & \ce{H2(aq)} & \ce{KCr(SO4)2*12H2O} & \ce{Fe(CN)_{$\frac{6}{2}$}} & \ce{$cis${-}[PtCl2(NH3)2]} & \ce{\alpha-Al2O3} \\ - \end{tabular} -\end{table} -\subsubsection{含键化学式} -\begin{table}[H] - \centering - \begin{tabular}{llll} - \ce{A-B=C#D} & \ce{A\bond{-}B\bond{=}C\bond{#}D} & \ce{A\bond{1}B\bond{2}C\bond{3}D} & \ce{A\bond{~}B\bond{~-}C} \\ - \ce{A\bond{~--}B\bond{~=}C\bond{-~-}D} & \ce{A\bond{...}B\bond{....}C} & \ce{A\bond{->}B\bond{<-}C} & \\ - \end{tabular} -\end{table} -\subsubsection{化学方程式} -\begin{table}[H] - \centering - \begin{tabular}{llll} - \ce{A ->[H2O] B} & \ce{A <=>[{上方文字}][{text below}] B} & \ce{A ->[$x$][$x_i$] B} & \ce{A v B (v) -> C ^ D (^)} \\ - \end{tabular} -\end{table} -\subsubsection{其他} -\begin{itemize} - \item 标注(可能对 CJK 文字不支持): - \ce{Zn^2+ - <=>[+ 2OH-][+ 2H+] - $\underset{\text{amphoteres Hydroxid}}{\ce{Zn(OH)2 v}}$ - <=>[+ 2OH-][+ 2H+] - $\underset{\text{Hydroxozikat}}{\ce{[Zn(OH)4]^2-}}$ - } - \item 对于化学方程式等的编号,与数学方程相似: - $$\ce{2H2O ->[{electrify}] 2H2 ^ + O2 ^}$$ - \begin{equation} - K^\ominus = \ce{\frac{[Hg^2+][Hg]}{[Hg2^2+]}} - \end{equation} -\end{itemize} - -至于有机化学的结构式等,尽管有一些宏包可以绘制,但使用图片插入可能是一个更好 -的选择。 - -\section{文献引用和参考文献}\label{sec:bib} -模板使用 \cs{cite}\marg{CiteKey}命令实现上标、方括号以“顺序编码制”引用参考文献, -这是学校《规范》的要求。一个例子。\cite{abbott2016observation}而使用 -\cs{nocite}\marg{CiteKey}命令则指明不引用但需要列出的参考文献。\nocite{*} - -同一处引用多个文献时,应将各篇文献的引用标签一同写在 \cs{cite} 命令中, -并以西文逗号“,”分隔各标签。所产生的样式为:当在同一处引用两篇参考文献时, -引用序号将以西文逗号分隔; -当多余两篇且连续时,将标示起止序号并以短划线相连。这\cite{texbook,latexrumen} -又是\cite{texbook,latexrumen,gbt7714-2005}一个例子。\cite{abbott2016observation,texbook,latexrumen,buctthesis} - -关于 \file{thesisbib.bib} 文件的编辑, -可以使用\href{http://scholar.google.com.cn/}{谷歌学术}\footnote{亦可以访问国内镜像站。}% -或\href{http://xueshu.baidu.com}{百度学术}两种方式(方法类似)将文献数据导入\BibTeX{}数据库,大致方法如下: -\begin{itemize} - \item 在搜索框中搜索题目(或作者、DOI等),确定所引用的论文后点击“引用”;并在弹出框中,单击最下方“BibTeX”的链接,如图~\ref{fig:addbib}; - \item 在弹出的网页中复制所有代码至 \file{thesisbib.bib} 文件; - \item 在论文中使用 \cs{cite} 命令引用相应的文献。 - % 这里用了一条简单的自定义命令,用于快速插入单张图片,见 \file{mycfg.sty}文件。 - \addfig{AddBib.png}{在谷歌学术中导出参考文献的步骤}{fig:addbib} -\end{itemize} - -举个例子:经过图~\ref{fig:addbib} 所示步骤后,弹出的网页文本如下: -\begin{lstlisting} -@article{abbott2016observation, - title={Observation of gravitational waves from a binary black hole merger}, - author={Abbott, Benjamin P and Abbott, Richard and %(省略) - }, - journal={Physical review letters}, - volume={116}, - number={6}, - pages={061102}, - year={2016}, - publisher={APS} -} - \end{lstlisting} -将以上内容复制进 \file{thesisbib.bib},在论文中使用 -\cs{cite\{abbott2016observation\}}即可引用此文献。 -这里的 “abbott2016observation”是该篇参考文献的引用标签,可以修改。 -再来一个\cite{ashirov2008tetramerization} , -网络上的资源引用\cite{buctthesis},等。 - -\section{其他}\label{sec:other} - -\subsection{脚注}\label{subsec:footnote} -本模板采用带圈数字脚注,计数跨页重置,使用命令 \cs{footnote}\marg{text}。 -前方高能\footnote{我是可爱的脚注。}。 - -有些情况下(比如在表格环境、各种盒子内)使用 \cs{footnote}并不能正确生成脚注。 -我们可以分两步进行,先使用 \cs{footnotemark}\oarg{text} 为脚注计数, -再在合适的位置用 \cs{footnotetext}\oarg{mark}\marg{text} 生成脚注。比如表~\ref{tab:ftnt1}。 -\begin{table}[htb] - \centering - \caption{脚注示例1} - \label{tab:ftnt1} - \begin{tabular}{llll} - \hline - 人之初 & 性本善 & 性相近 & 习相远 \\ - 苟\footnotemark 不教 & 性乃迁 & 教之道 & 贵以专 \\ - \hline - \end{tabular} -\end{table} -\footnotetext{苟:如果。} - -利用 \pkg{threeparttable} 宏包提供的 \env{threeparttable} 环境可以实现在表格底下写脚注,见表~\ref{tab:ftnt2}。 - -\begin{table}[htb] -\centering -\begin{threeparttable} - \caption{脚注示例2}\label{tab:ftnt2} - \begin{tabular}{cccc} - \toprule - 昔孟母 & 择邻处\tnote{*} & 子不学 & 断机杼\\ - \midrule - 窦燕山\tnote{$\dagger$} & 有义方 & 教五子\tnote{$\ddagger$} &名俱扬\\ - \bottomrule - \end{tabular} - \begin{tablenotes}\small - \item [*] 脚注1。 - \item [$\dagger$] 脚注2。 - \item [$\ddagger$] 脚注3。 - \end{tablenotes} -\end{threeparttable} -\end{table} - -\subsection{列表环境}\label{subsec:items} -本模板提供了三种列表环境:不编号的\env{itemize}、编号的\env{enumerate} -和使用关键字的\env{description}环境。在文档的中英文摘要部分分别展示了 -基础的编号和不编号的列表环境;上面三种列表环境可以嵌套使用(至多四层), -且会自动处理不同层次的缩进和编号,如下所示: -\begin{itemize} - \item 一条 - \item 次条 - \item 这一条可以分为\dots - \begin{itemize} - \item 子一条 - \end{itemize} -\end{itemize} -稍复杂一点的,如: -\begin{enumerate} - \item 中文 - \begin{description} - \item[文言文] 古代汉语 - \item[白话文] 现代汉语 - \begin{enumerate} - \item 口语 - \begin{enumerate} - \item 普通话 - \item 方言 - \end{enumerate} - \item 书面语 - \end{enumerate} - \end{description} - \item English -\end{enumerate} - -注意:一级编号列表环境最多罗列10条,否则标签会显示错误。 -%,到第11条时,标签将从第10条的\ding{201}到第11条的\ding{202} diff --git a/Master/texmf-dist/doc/latex/buctthesis/chapter3.tex b/Master/texmf-dist/doc/latex/buctthesis/chapter3.tex deleted file mode 100644 index b5467fcbe5d..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/chapter3.tex +++ /dev/null @@ -1,4 +0,0 @@ -%% 第三章--chapter3.tex -\chapter[含 English 的标题]{这是题目含有 English 的一章,用这个例子来说明虽然章节名很长,但是可以使用简短的编目} -\section[同理节亦然]{含有English的一节} -文字words
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/conclusion.tex b/Master/texmf-dist/doc/latex/buctthesis/conclusion.tex deleted file mode 100644 index bb315d214e3..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/conclusion.tex +++ /dev/null @@ -1,9 +0,0 @@ -%% 结论--conclusion.tex -\begin{conclusion} - 这里是结论。 - - 对全文做出简明扼要的总结,获得的主要研究进展及结论。 - - Happy \TeX ing!祝大家一切顺利! - -\end{conclusion}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/declare-bachelor.png b/Master/texmf-dist/doc/latex/buctthesis/declare-bachelor.png Binary files differdeleted file mode 100644 index a8fb26db0d3..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/declare-bachelor.png +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/buctthesis/declare-master-doctor.png b/Master/texmf-dist/doc/latex/buctthesis/declare-master-doctor.png Binary files differdeleted file mode 100644 index a03c3a76d37..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/declare-master-doctor.png +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/buctthesis/denotation.tex b/Master/texmf-dist/doc/latex/buctthesis/denotation.tex deleted file mode 100644 index bc16f6f3d77..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/denotation.tex +++ /dev/null @@ -1,33 +0,0 @@ -%% 符号说明--denotation.tex -\begin{denotation}[11cm]\label{chap*:deno}% - $\uppi$ & 圆周率 \\ - $c_0$ & 真空中光速 \\ - $G$ & 万有引力常量 \\ - $k$ & 静电力常量 \\ - $\varepsilon _0$ & 真空电容率 \\ - $\mu_0$ & 真空磁导率 \\ - PVA & 聚乙烯醇,Polyvinyl Alcohol\\ - EDTA & 乙二胺四乙酸,Ethylenediaminetetraacetic Acid\\ - 上邪 & 上邪!我欲与君相知,长命无绝衰。 - 山无陵,江水为竭。冬雷震震,夏雨雪。 - 天地合,乃敢与君绝!\\ - 春江花月夜 & 春江潮水连海平,海上明月共潮生。 \\ - & 滟滟随波千万里,何处春江无月明! \\ - & 江流宛转绕芳甸,月照花林皆似霰; \\ - & 空里流霜不觉飞,汀上白沙看不见。 \\ - & 江天一色无纤尘,皎皎空中孤月轮。 \\ - & 江畔何人初见月?江月何年初照人? \\ - & 人生代代无穷已,江月年年望相似。 \\ - & 不知江月待何人,但见长江送流水。 \\ - & 白云一片去悠悠,青枫浦上不胜愁。 \\ - & 谁家今夜扁舟子?何处相思明月楼? \\ - & 可怜楼上月徘徊,应照离人妆镜台。 \\ - & 玉户帘中卷不去,捣衣砧上拂还来。 \\ - & 此时相望不相闻,愿逐月华流照君。 \\ - & 鸿雁长飞光不度,鱼龙潜跃水成文。 \\ - & 昨夜闲潭梦落花,可怜春半不还家。 \\ - & 江水流春去欲尽,江潭落月复西斜。 \\ - & 斜月沉沉藏海雾,碣石潇湘无限路。 \\ - & 不知乘月几人归,落月摇情满江树。 \\ - CTAN & Comprehensive \TeX\ Archive Network\\* -\end{denotation}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/foreword.tex b/Master/texmf-dist/doc/latex/buctthesis/foreword.tex deleted file mode 100644 index b02dd6d4986..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/foreword.tex +++ /dev/null @@ -1,50 +0,0 @@ -%% 前言--foreword.tex -\begin{foreword} -这里是前言。点明毕业论文的论题、学术意义以及其与所阅读文献的关系, -简要说明文献收集的目的、重点、时空范围、文献种类、核心刊物等方面的内容。 - -豫章故郡,洪都新府。星分翼轸,地接衡庐。襟三江而带五湖,控蛮荆而引瓯越。 -物华天宝,龙光射牛斗之墟;人杰地灵,徐孺下陈蕃之榻。雄州雾列,俊采星驰。 -台隍枕夷夏之交,宾主尽东南之美。都督阎公之雅望,棨戟遥临;宇文新州之懿 -范,襜帷暂驻。十旬休假,胜友如云;千里逢迎,高朋满座。腾蛟起凤,孟学士 -之词宗;紫电青霜,王将军之武库。家君作宰,路出名区;童子何知,躬逢胜饯。 - -时维九月,序属三秋。潦水尽而寒潭清,烟光凝而暮山紫。俨骖騑于上路,访风 -景于崇阿。临帝子之长洲,得仙人之旧馆。层峦耸翠,上出重霄;飞阁流丹,下 -临无地。鹤汀凫渚,穷岛屿之萦回;桂殿兰宫,即冈峦之体势。 - -披绣闼,俯雕甍,山原旷其盈视,川泽纡其骇瞩。闾阎扑地,钟鸣鼎食之家;舸 -舰迷津,青雀黄龙之舳。云销雨霁,彩彻区明。落霞与孤鹜齐飞,秋水共长天一 -色。渔舟唱晚,响穷彭蠡之滨,雁阵惊寒,声断衡阳之浦。 - -遥襟甫畅,逸兴遄飞。爽籁发而清风生,纤歌凝而白云遏。睢园绿竹,气凌彭泽 -之樽;邺水朱华,光照临川之笔。四美具,二难并。穷睇眄于中天,极娱游于暇 -日。天高地迥,觉宇宙之无穷;兴尽悲来,识盈虚之有数。望长安于日下,目吴 -会于云间。地势极而南溟深,天柱高而北辰远。关山难越,谁悲失路之人;萍水 -相逢,尽是他乡之客。怀帝阍而不见,奉宣室以何年? - -嗟乎!时运不齐,命途多舛。冯唐易老,李广难封。屈贾谊于长沙,非无圣主; -窜梁鸿于海曲,岂乏明时?所赖君子见机,达人知命。老当益壮,宁移白首之心? -穷且益坚,不坠青云之志。酌贪泉而觉爽,处涸辙以犹欢。北海虽赊,扶摇可接; -东隅已逝,桑榆非晚。孟尝高洁,空余报国之情;阮籍猖狂,岂效穷途之哭! - -勃,三尺微命,一介书生。无路请缨,等终军之弱冠;有怀投笔,慕宗悫之长风。 -舍簪笏于百龄,奉晨昏于万里。非谢家之宝树,接孟氏之芳邻。他日趋庭,叨陪 -鲤对;今兹捧袂,喜托龙门。杨意不逢,抚凌云而自惜;钟期既遇,奏流水以何惭? - -呜乎!胜地不常,盛筵难再;兰亭已矣,梓泽丘墟。临别赠言,幸承恩于伟饯; -登高作赋,是所望于群公。敢竭鄙怀,恭疏短引;一言均赋,四韵俱成。请洒潘 -江,各倾陆海云尔: - -\begin{center} -滕王高阁临江渚,佩玉鸣鸾罢歌舞。 - -画栋朝飞南浦云,珠帘暮卷西山雨。 - -闲云潭影日悠悠,物换星移几度秋。 - -阁中帝子今何在?槛外长江空自流。 -\end{center} - -\end{foreword} - diff --git a/Master/texmf-dist/doc/latex/buctthesis/frontmatter.tex b/Master/texmf-dist/doc/latex/buctthesis/frontmatter.tex deleted file mode 100644 index 766979da0ff..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/frontmatter.tex +++ /dev/null @@ -1,106 +0,0 @@ -%% 前置部分--frontmatter.tex -%% 诚信声明 -\makedeclare%[figure/declare-bachelor.png] - -%% 任务书 -\begin{taskbook} -\taskinfo % or use `\taskinfo*' for less lines. - -\taskitem % 1.设计(论文)的主要任务及目标 -大学之道,在明明德,在亲民,在止于至善。知止而后有定; -定而后能静;静而后能安;安而后能虑;虑而后能得。 -物有本末,事有终始。知所先后,则近道矣。 - -古之欲明明德于天下者,先治其国;欲治其国者,先齐其家; -欲齐其家者,先修其身;欲修其身,先正其心;欲正其心者,先诚其意; -欲诚其意者,先致其知;致知在格物。物格而后知至;知至而后意诚; -意诚而后心正;心正而后身修;身修而后家齐;家齐而后国治; -国治而后天下平。 - -自天子以至于庶人,壹是皆以修身为本。其本乱而未治者否矣。 -其所厚者薄,而其所薄者厚,未之有也。此谓知本,此谓知之至也。 - -\taskitem % 2.设计(论文)的基本要求和内容 -古之学者必有师。师者,所以传道受业解惑也。人非生而知之者,孰能无惑? -惑而不从师,其为惑也,终不解矣。生乎吾前,其闻道也固先乎吾,吾从而 -师之;生乎吾後,其闻道也亦先乎吾,吾从而师之。吾师道也,夫庸知其年 -之先後生於吾乎!是故无贵无贱无长无少,道之所存,师之所存也。 - -\taskitem % 3.主要参考文献 - \begin{bibenumerate} - \item 北京化工大学教务处. 本科生毕业设计(论文)撰写规范 [EB/OL]. 2018[2020-04-08]. \url{https://jiaowuchu.buct.edu.cn/2018/1009/c515a22046/page.htm}. - \item 刘海洋. \LaTeX\ 入门 [M]. 北京 : 电子工业出版社, 2013. - \item MITTELBACH F, GOOSSENS M, BRAAMS J, et al. The \LaTeX\ Companion[M]. 2nd ed. Reading, Massachusetts : Addison-Wesley, 2004. - \item - \end{bibenumerate} - -\taskitem % 4.进度安排 - \begin{table}[H] - \centering - \begin{tabularx}{.95\textwidth}{p{1.5em}|X|p{6em}} - \hline - & 设计(论文)各阶段名称 & 起止日期 \\\hline - 1 & & \\\hline - 2 & & \\\hline - 3 & & \\ - \hline - \end{tabularx} - \end{table} -\end{taskbook} - - -%% 摘要 -\begin{cabstract} - 摘要和关键词一起写在这里。 - - 摘要介绍所研究的主要内容、方法、结果及创新点。应有中文、外文两种文本, - 如无特殊情况,外文文本摘要一般使用英文撰写。中文、外文摘要各占A4纸页面的一半。 - 外文摘要要与中文摘要相呼应,其写作模式同中文基本相同。中文摘要一般为300字左右, - 英文摘要为1500印刷符号左右,含中、英文摘要关键词。 - - 本项目的创新点有: - \begin{enumerate} - \item 开发了第一份适用于北京化工大学本科生毕业论文的\LaTeX{}模板; - \item 以自身为示例展示此模板的使用方法; - \item 这是编号列表环境的第三项。 - \end{enumerate} - - 这里是一些废话,用于填充文本,在后面的部分也会以类似的方式插入无关的文字。 - 这一段话的作用是将中文摘要写到 300 个字。 - - (这里总共约 300 字) -\end{cabstract} - -\begin{eabstract} - Here is the Abstract and the Keywords. - - In the abstract, you may introduce the main contents of your research, - as well as the methods, results and some innovation points. There should - be one Chinese version and one foreign version, while the foreign one - should generally be written in English except for some special occasions. - Each of the context of them takes up half of an A4-page. What's more, - the foreign abstract should be in correspondence to the Chinese one, - and the narrative pattern is supposed to be similar. The Chinese abstract - adds up to normally 300 Chinese characters, while the English abstract - totaled around 1500 printed characters, including Chinese and English keywords. - - Oh, here're just 900 letters total. So I have to add something nonsense\dots. - - One dollar and eighty-seven cents. That was all. And sixty cents of it was - in pennies. Pennies saved one and two at a time by bulldozing the grocer - and the vegetable man and the butcher until one's cheeks burned with the - silent imputation of parsimony that such close dealing implied. Three times - Della counted it. One dollar and eighty-seven cents. And the next day would - be Christmas. There was clearly nothing to do but flop down on the shabby - little couch and howl. So Della did it. - \hfill --- \textit{THE GIFT OF THE MAGI by O.Henry} - - Innovations in the research: - \begin{itemize} - \item Developing the first \LaTeX{} writting template for BUCT undergraduate thesis; - \item Using the PDF itself as an example to show how to use the template; - \item This is the third item of an unnumbered list. - \end{itemize} - - (Around 1500 letters total) -\end{eabstract}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/helloworld.cpp b/Master/texmf-dist/doc/latex/buctthesis/helloworld.cpp deleted file mode 100644 index 692b8a8f5d1..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/helloworld.cpp +++ /dev/null @@ -1,9 +0,0 @@ -/* Hello World C++ */ -#include<iostream> -using namespace std; -/***** main function *****/ -int main() -{ - cout<<"Hello World!"<<endl; //Print "Hello World!" - return 0; -} diff --git a/Master/texmf-dist/doc/latex/buctthesis/image-a.pdf b/Master/texmf-dist/doc/latex/buctthesis/image-a.pdf Binary files differdeleted file mode 100644 index 6d7ecb88a0d..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/image-a.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/buctthesis/image-c.pdf b/Master/texmf-dist/doc/latex/buctthesis/image-c.pdf Binary files differdeleted file mode 100644 index 44e09057956..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/image-c.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/buctthesis/image-plain.pdf b/Master/texmf-dist/doc/latex/buctthesis/image-plain.pdf Binary files differdeleted file mode 100644 index 4a617f5ae2b..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/image-plain.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/buctthesis/latexmkrc b/Master/texmf-dist/doc/latex/buctthesis/latexmkrc deleted file mode 100644 index 06b1d9a3c07..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/latexmkrc +++ /dev/null @@ -1,5 +0,0 @@ -$pdf_mode = 5; -$xelatex = "xelatex -shell-escape -file-line-error -halt-on-error -interaction=nonstopmode -no-pdf -synctex=1 %O %S"; -$xdvipdfmx = "xdvipdfmx -q -E -o %D %O %S"; -$bibtex_use = 1.5; -$clean_ext = 'aux bbl blg fls lodf log out synctex.gz xdv fdb_latexmk hd ilg glo';
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/main.tex b/Master/texmf-dist/doc/latex/buctthesis/main.tex deleted file mode 100644 index 18cd777ac97..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/main.tex +++ /dev/null @@ -1,85 +0,0 @@ -% !TeX encoding = UTF-8 -% 主文件--main.tex -\documentclass[ - type = bachelor, % bachelor | master | doctor - %submit, - %openany, % openany | openright(default) - fontset = windows, % fandol | windows (normal) -]{buctthesis} - -% 在这个文件里载入其他对写作有帮助的宏包,或自定义命令等 -\usepackage{mycfg} - -\buctsetup{ - %%%%% 各选项之间不要留有空行,并以西文逗号“,”分隔 %%%%% - % 论文的中文标题 - ctitle = {BUCTthesis写作示例文档}, - % 论文的英文标题 - etitle = {HOW TO \TeX\ WITH BUCTthesis: AN EXAMPLE}, - % 作者姓名 - cauthor = {张三}, - % 班级 - class = {某某1024}, - %学号 - studentid = {2018020999}, - % 学院 - school = {材料科学与工程学院}, - % 专业名称 - major = {高分子材料与工程}, - % 导师的姓名与职称 - supervisor = {李四教授}, - % 专业负责人姓名 - msupervisor = {王五}, - % 中文、英文关键词,各关键词间以西文逗号“,”分隔 - ckeywords = {论文,\LaTeX{},模板}, - ekeywords = {thesis,\LaTeX{},template}, -} - -\begin{document} - % 生成伪封面。实际的论文封面由学校统一印制,正式写作可删去。 - \maketitle - - % 从此以大写罗马数字编页码 - \frontmatter - - % 诚信声明、任务书、摘要 - \include{chapter/frontmatter} - - % 生成主目录 - \tableofcontents - % 设计图纸目录,这与主目录独立。 - \listofdesignfigures - - % 前言 - \include{chapter/foreword} - - % 从此以阿拉伯数字编页码 - \mainmatter - - % 正文各章节 - \include{chapter/chapter1} - \include{chapter/chapter2} - \include{chapter/chapter3} - - % 结论 - \include{chapter/conclusion} - - % 参考文献。 - % 注意:至少引用一篇参考文献,否则执行全编译时下面两行会引起编译错误。 - \bibliographystyle{gbt7714-numerical} - \bibliography{thesisbib.bib} - - % 符号说明 - \include{chapter/denotation} - - % 翻译 - \include{chapter/translation} - - % 致谢 - \include{chapter/acknowledgement} - - % 附录 - \appendix - \include{chapter/app1} - -\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/mycfg.sty b/Master/texmf-dist/doc/latex/buctthesis/mycfg.sty deleted file mode 100644 index 966e5b113b2..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/mycfg.sty +++ /dev/null @@ -1,35 +0,0 @@ -% mycfg.sty---The file for your beloved packages, commands and customization. - -\ProvidesPackage{mycfg} - -%% Packages -\RequirePackage{bxtexlogo} % 生成错落有致的如 LaTeX 的宏包 -\RequirePackage{zhlipsum} % 中文乱数假文 - -%% Commands -% 自定义命令格式为:\newcommand{<命令>}[<参数个数>][<首参默认值>]{<具体的定义>} -% add a single fig. Usage:\addfig[Width]{Path}{Caption}{Label} -\newcommand{\addfig}[4][.8\textwidth]{% - \begin{figure}[H] - \centering - \includegraphics[width = #1]{#2} - \caption{#3}\label{#4} - \end{figure} -} -\newcommand{\version}{v1.3} -\newcommand{\cs}[1]{\texttt{\textbackslash#1}} -\newcommand{\file}{\textsf} -\newcommand{\pkg}{\textsf} -\newcommand{\env}{\texttt} -\newcommand{\opt}{\texttt} -\newcommand{\marg}[1]{\texttt{\{$\langle$#1$\rangle$\}}} -\newcommand{\oarg}[1]{\texttt{ [$\langle$#1$\rangle$] }} - -%% Maths -\newcommand\Vector{\symbfit} -\newcommand\Matrix{\symbfit} - -%% A sample of thesis cover -\title{BUCTthesis 写作示例文档\par\version} -\author{Miracle0565} -\ctexset{today=big} diff --git a/Master/texmf-dist/doc/latex/buctthesis/thesisbib.bib b/Master/texmf-dist/doc/latex/buctthesis/thesisbib.bib deleted file mode 100644 index 91e8f780f5d..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/thesisbib.bib +++ /dev/null @@ -1,70 +0,0 @@ -% thesisbib.bib--bibliography database for Bibtex - -@article{abbott2016observation, - title = {Observation of gravitational waves from a binary black hole merger}, - author = {Abbott, Benjamin P and Abbott, Richard and Abbott, TD and Abernathy, MR and Acernese, Fausto and Ackley, Kendall and Adams, Carl and Adams, Thomas and Addesso, Paolo and Adhikari, RX and others}, - journal = {Physical Review Letters}, - volume = {116}, - number = {6}, - pages = {061102}, - year = {2016}, - publisher = {APS} -} - -@article{ashirov2008tetramerization, - title = {Tetramerization of 3-methyl-cyclopropene-3-carbonitrile: A novel CN-Alder-ene reaction}, - author = {Ashirov, Roman V and Shamov, Grigory A and Lodochnikova, Olga A and Litvynov, IA and Appolonova, Svetlana A and Plemenkov, Vitaly V}, - journal = {The Journal of organic chemistry}, - volume = {73}, - number = {15}, - pages = {5985--5988}, - year = {2008}, - publisher = {ACS Publications} -} -@software{buctthesis, - title = {{BUCTthesis: A LaTeX writting template for BUCT thesis}}, - author = {{Miracle0565}}, - year = {2020}, - urldate = {2020-04-08}, - url = {https://github.com/Miracle0565/BUCTthesis} -} -@standard{gbt7714-2005, - author = {{中国国家标准化管理委员会}}, - title = {GB/T 7714-2005: 文后参考文献著录规则}, - year = {2005}, - address = {北京}, - publisher= {中国标准出版社}, - language = {chinese} -} -@book{latexcompanion, - author = {Frank Mittelbach and Michel Goossens and Johannes Braams and David, P.Carlisle and Chris Rowley}, - title = {The {\LaTeX{}} {C}ompanion}, - edition = {2}, - address = {Reading, Massachusetts}, - publisher = {Addison-Wesley}, - year = {2004} -} -@book{latexrumen, - author = {刘海洋}, - title = {\LaTeX{}入门}, - year = {2013}, - publisher = {电子工业出版社}, - address = {北京}, - isbn = {978-7-121-20208-7}, - language = {chinese} -} -@book{texbook, - author = {Donald~E. Knuth}, - title = {The {\TeX} book}, - year = {1989}, - edition = {15}, - address = {Reading, Massachusetts}, - publisher = {Addison-Wesley Publishing Company} -} -@online{thenorm, - title = {本科生毕业设计(论文)撰写规范}, - author = {北京化工大学教务处}, - year = {2019}, - urldate = {2020-02-06}, - url = {https://jiaowuchu.buct.edu.cn/2018/1009/c515a22046/page.htm} -}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/translation.tex b/Master/texmf-dist/doc/latex/buctthesis/translation.tex deleted file mode 100644 index 475fe7e9e74..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/translation.tex +++ /dev/null @@ -1,12 +0,0 @@ -%% 翻译--translation.tex -\begin{translation} - Battery - - 电池 - - 電池 - - バッテリー - - Батареи -\end{translation}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/buctthesis/worm-gear.pdf b/Master/texmf-dist/doc/latex/buctthesis/worm-gear.pdf Binary files differdeleted file mode 100644 index 3401a4eccce..00000000000 --- a/Master/texmf-dist/doc/latex/buctthesis/worm-gear.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/buctthesis/README.md b/Master/texmf-dist/doc/xelatex/buctthesis/README.md index b019dd7dbac..b019dd7dbac 100644 --- a/Master/texmf-dist/doc/latex/buctthesis/README.md +++ b/Master/texmf-dist/doc/xelatex/buctthesis/README.md diff --git a/Master/texmf-dist/doc/xelatex/buctthesis/buctthesis.pdf b/Master/texmf-dist/doc/xelatex/buctthesis/buctthesis.pdf Binary files differnew file mode 100644 index 00000000000..6d2e2d84164 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/buctthesis/buctthesis.pdf diff --git a/Master/texmf-dist/doc/latex/buctthesis/manual.sty b/Master/texmf-dist/doc/xelatex/buctthesis/manual.sty index e12078529ed..e12078529ed 100644 --- a/Master/texmf-dist/doc/latex/buctthesis/manual.sty +++ b/Master/texmf-dist/doc/xelatex/buctthesis/manual.sty diff --git a/Master/texmf-dist/source/latex/buctthesis/buctthesis.dtx b/Master/texmf-dist/source/xelatex/buctthesis/buctthesis.dtx index 159ada51c8b..42a8290981c 100644 --- a/Master/texmf-dist/source/latex/buctthesis/buctthesis.dtx +++ b/Master/texmf-dist/source/xelatex/buctthesis/buctthesis.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2019-2021 by Miracle0565 +% Copyright (C) 2019-2022 by Miracle0565 % % https://github.com/Miracle0565/BUCTthesis % ------------------------------------------------------- @@ -20,7 +20,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \iffalse %<*driver> -\ProvidesFile{buctthesis.dtx}[2022/03/04 v1.3 BUCT Thesis Template] +\ProvidesFile{buctthesis.dtx}[2022/07/29 v1.4.1 BUCT Thesis Template] \documentclass{ltxdoc} \usepackage{manual} \begin{document} @@ -225,7 +225,7 @@ % % \DescribeOpt{fontset = } % 该选项会传递至 \pkg{ctex} 宏集,从而指定全文的字体。模板的设置如表~\ref{tab:fontset}~所示。 -% +% % 其中选项 \opt{fandol} 或使用 \opt{\meta{others}} 选项 \footnote{参见\pkg{ctex}宏集第 4.3 小节。}是为了一些不方便安装字体的系统或平台(如 Overleaf)所采取的\emph{临时解决方案}。 % 这些字体与中易系列字体有少许差别,且偶尔有缺字现象。 % 因此,强烈建议在最后提交论文前,在合适的环境下使用 \opt{fontset = windows} 进行编译。 @@ -374,16 +374,15 @@ % % 三者是互相独立的。 % 英文目录通过 \cs{echapter} 等命令指定某一标题的英文标题,参见~\ref{subsubsec:bitoc}。 -% 设计图纸目录通过 \env{dfigure} 环境指定插图为“设计图纸”并计数编号。 -% 参见~\ref{subsubsec:dfigure}。 +% 设计图纸目录通过 \env{dfigure} 环境指定插图为“设计图纸”并计数编号,参见~\ref{subsubsec:dfigure}。 % % \subsubsection{符号说明表}\label{subsubsec:deno} % \DescribeEnv{denotation} -% 符号说明部分的源文件位于 \file{chapter/denotation.tex}, +% 符号说明表的源文件位于 \file{chapter/denotation.tex}, % 使用 \env{denotation} 环境。 -% 《本科规范》和《研究生规范》中都未详细规定符号说明部分的格式, +% 《本科规范》和《研究生规范》中都未详细规定符号说明表的格式, % 模板设计了一个无框线、可跨页的长表格,直接在环境里填入内容即可。 -% 环境接受一个可选 \meta{Width} 参数 ,代表“说明”一列的宽度,用于在必要时调整。 +% 环境接受一个可选参数 \meta{width} ,代表“说明”一列的宽度,用于在必要时调整。 % \begin{latex} % \begin{denotation}[12cm] % 设置第二列的列宽为 12 cm,默认 10 cm % 符号1 & 说明1 \\ @@ -524,12 +523,18 @@ % % \subsubsection{参考文献}\label{subsubsec:bib} % \DescribeMacro{\cite} +% \DescribeMacro{\inlinecite} % \DescribeMacro{\nocite} % \begin{syntax}{cite} % \marg{CiteKey} % \end{syntax} +% \qquad +% \begin{syntax}{inlinecite} +% \marg{CiteKey} +% \end{syntax} % -% 模板以上标、方括号按“顺序编码制”引用参考文献。 +% 模板使用 \cs{cite} 实现上标、方括号按“顺序编码制”引用参考文献; +% \cs{inlinecite} 可实现行间引用,适合某些特殊情况使用; % 而 \cs{nocite}\marg{CiteKey} 则指明不引用但需要列出的参考文献。 % 在同一处引用多个文献时,应将各篇文献的引用标签一同写在参数里, % 并以西文逗号“,”分隔每个 \meta{CiteKey}。 @@ -607,19 +612,28 @@ % \end{latex} % % \subsection{封面}\label{subsec:cover} -% 本小节将简单介绍研究生论文封面的代码与编译。 +% \DescribeMacro{\makecover} +% BUCTthesis 对学校印刷的纸质封面进行了仿制,本小节将简单介绍相关代码与编译方法。 % -% 与本科模板不同的是,BUCTthesis 的硕博模板在 \file{cover} 文件夹中仿制了学校的封面。 +% 由于字体的原因,BUCTthesis 将封面模板另置于 \file{cover} 文件夹,可根据需要使用。 % 在该文件夹中的三个文件都与封面有关,编译时请确保它们位于同一路径之下。 % -% \emph{注意:这里的“仿制”仅是实现封面的效果,学校印制的封面需要手写内容,故不能替代学校统一印制的封面。} +% \emph{注意:这里的“仿制”仅是实现封面的效果,学校印制的封面需要手写内容,故不能在纸本上替代学校统一印制的封面; +% 若无特殊说明,可以在提交电子版时使用此封面。但,仍请以教务处最新通告为准。} % \begin{enumerate} -% \item \file{cover.tex}:源文档。与 \cs{buctsetup} 类似,这里使用\cs{coversetup} 定义论文信息。 +% \item \file{buctcover.tex}:源文档。在 \cs{documentclass} 后定义封面所属学位,在 \cs{coversetup} 中定义论文相关信息。除导言区外无需修改。 % \begin{latex} +% \documentclass[ +% type = bachelor % type = [ bechelor | master | doctor ] +% ]{buctcover} % \coversetup{ -% % 学号,位于封面的右上角 +% %班级,位于右上角,仅本科 +% class = {计科1024}, +% % 学号,位于右上角 % studentid = {2021010234}, -% % 标题。封面的标题有两行,每一行控制在 18 个汉字长度以内 +% % 标题。总字数不要超过 36 个汉字长度。 +% % 本科:可以一行或分两行写,如果无第二行将 titleB 留空或注释掉; +% % 硕博:封面的标题有两行,每一行控制在 18 个汉字长度以内。 % titleA = {甲乙丙丁戊己庚辛壬癸一二三}, % titleB = {四五六七八九十甲乙丙丁戊己}, % % 作者 @@ -635,15 +649,18 @@ % % 至于编译,只需一遍 xelatex 即可,扩展名可省略。 % \begin{shell} -% xelatex cover.tex +% xelatex buctcover.tex % \end{shell} +% 如果编译两遍,还会生成封面的 PDF 书签。 +% 此时可以用其他 PDF 工具将封面整合到论文中,同时还能保留封面书签以便于跳转。 +% % \item \file{buctcover.cls}:格式控制文件。类似 \file{buctthesis.cls},亦可由 \file{buctthesis.ins} 和 \file{buctthesis.dtx} 生成: % \begin{shell} % xelatex buctthesis.ins % \end{shell} % 请注意执行以上命令时会同时生成 \file{buctcover.cls} 和 \file{buctthesis.cls},只有前者是用于控制封面的。 % \end{enumerate} -% +% % 除此之外,封面使用的方正系列字体未预装于一些操作系统上, % 可访问\href{https://www.foundertype.com}{方正字库官网}下载和安装,具体步骤从略。 % @@ -653,12 +670,11 @@ % \item SimHei,中易黑体 % \item KaiTi,中易楷体 % \item STXingkai,华文行楷 -% \item FZDaBiaoSong-B06S,方正大标宋简体 % \item FZXiaoBiaoSong-B05S,方正小标宋简体 +% \item FZDaBiaoSong-B06S,方正大标宋简体(仅硕博封面需要) % \end{enumerate} % % -% % \StopEventually{\PrintChanges\PrintIndex} % % \clearpage @@ -667,7 +683,7 @@ % \begin{macrocode} %<class|cover>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<*class> -\ProvidesClass{buctthesis}[2021/09/10 v1.2 BUCT Thesis Template] +\ProvidesClass{buctthesis}[2022/07/29 v1.4.1 BUCT Thesis Template] % \end{macrocode} % % 装载 \pkg{ifxetex} 宏包,并通过 \cs{RequireXeTeX} 命令检查编译命令。 @@ -741,7 +757,7 @@ % \end{macrocode} % % \begin{macro}{\buct@def@key} -% 定义用于定义论文相关信息的内部命令。例如 +% 定义用于定义论文相关信息的内部命令。例如: % \begin{latex} % \buct@def@key{ctitle} % \end{latex} @@ -760,7 +776,7 @@ % \end{macro} % % \begin{macro}{\buctsetup} -% 定义 \cs{buctsetup} 命令方便在正文中设置。 +% 定义 \cs{buctsetup} 命令作为接口,方便在主文件中设置。 % \begin{macrocode} \newcommand{\buctsetup}[1]{\kvsetkeys{buct}{#1}} \buct@def@key{ctitle} @@ -776,9 +792,9 @@ % \end{macro} % % \begin{macro}{\buct@def@sep@key} -% 对于 \texttt{ckeywords} 等键接受的是以西文逗号“,”分隔的值,上面的定义就不合适了。 -% 所以要对值做分隔。相比 \cs{buct@def@key} 这里多一个参数,为在论文中的分隔符。 -% 此处宏展开可参考\href{https://www.zhihu.com/question/26916597}{这篇讨论}。 +% 对于 \opt{ckeywords} 等键接受的是以西文逗号“,”分隔的值,上面的定义就不合适了。 +% 所以要对值做分隔。相比 \cs{buct@def@key} 这里多一个参数,即为在论文中的分隔符。 +% 此处的宏展开可参考\href{https://www.zhihu.com/question/26916597}{这篇讨论}。 % \begin{macrocode} \newcommand{\buct@def@sep@key}[2]{% \@namedef{#1}##1{% @@ -825,7 +841,7 @@ \RequirePackage{pifont,enumitem} % \end{macrocode} % -% 一个适合排版含数值和单位的物理量的宏包,它也提供能使表格中小数点竖直对齐的命令。 +% 一个适合排版含数值和单位的物理量的宏包,它也能提供在表格中按小数点竖直对齐的方法。 % \begin{macrocode} \RequirePackage{siunitx} % \end{macrocode} @@ -857,8 +873,8 @@ \RequirePackage{listings} % \end{macrocode} % -% 该宏包提供了符合要求的参考文献编排格式。这里的选项会传递至 \pkg{natbib}, -% 从而在正文中能数字上标、方括号引用。 +% 该宏包提供了符合要求的“参考文献”章节中文献的编排格式。 +% 这里的选项会传递至 \pkg{natbib},从而在正文中能实现数字、上标、方括号的引用模式。 % \begin{macrocode} \RequirePackage[sort&compress]{gbt7714} % \end{macrocode} @@ -907,27 +923,27 @@ % % 根据\cs{buct@fontsetval} 的值,分别设置不同的字体。 % -% \begin{macrocode} -\ifthenelse{\equal{\buct@fontsetval}{windows}}{ -% \end{macrocode} -% % 在 Windows 系统下,需要对中易宋体、中易黑体开启“伪粗”和“伪斜”,并设置相关系数。 % \begin{macrocode} +\ifthenelse{\equal{\buct@fontsetval}{windows}}{ \xeCJKsetup{EmboldenFactor=2.2,SlantFactor=0.2} \setCJKmainfont{SimSun}[AutoFakeBold,AutoFakeSlant] \setCJKsansfont{SimHei}[AutoFakeBold] } % \end{macrocode} -% 而在非Windows 系统下,则由 \pkg{ctex} 宏集自动检测环境并保留其默认设置, +% 而在非 Windows 系统下,则由 \pkg{ctex} 宏集自动检测环境并保留其默认设置, % 同时警告所使用的字体与《规范》(即默认设置)存在不同。 % \begin{macrocode} { - \ClassWarning{buctthesis}{The fonts differ to the default.} + \ClassWarning{buctthesis}{% + The fonts differ to the default.\MessageBreak% + Use fontset = windows to correct.% + } } % \end{macrocode} % % \begin{macro}{\bfsong} -% 因设置中易宋体开启“伪粗体”,使用 \cs{bfseries}将产生加粗的效果, +% 因设置中易宋体开启“伪粗体”,使用 \cs{bfseries} 将产生加粗的效果, % 这与一般的 \LaTeX\ 常识是相悖的。 % 因此模板提供了更明确的命令 \cs{bfsong}。 % \begin{macrocode} @@ -936,13 +952,14 @@ % \end{macro} % \begin{macro}{\bfhei} % -% 对于黑体同理。此外要注意模板将Windows下预设的无衬线字体(微软雅黑)改为了黑体。 +% 对于黑体同理。 +% 此外要注意:模板将 \opt{fontset = windows} 预设的无衬线字体(微软雅黑)改为了中易黑体。 % \begin{macrocode} \newcommand{\bfhei}{\sffamily\bfseries} % \end{macrocode} % \end{macro} % -% 对于西文正文,全部统一设置为Times New Roman。 +% 对于西文正文,全部统一设置为Times New Roman,以尽可能避免格式审查问题。 % \begin{macrocode} \setmainfont{Times New Roman} \setsansfont{Times New Roman} @@ -963,18 +980,20 @@ }{} % \end{macrocode} % -% % 指定 Unicode 中带圈数字 \symbol{"2460}--\symbol{"2469} 使用中文字体。 % \begin{macrocode} \xeCJKDeclareCharClass{CJK}{"2460->"2469} % \end{macrocode} -% 页眉与页脚的字体。 +% +% 完成配置后,定义文中各元素的字体样式。 +% +% 页眉与页脚。 % \begin{macrocode} \newcommand{\buct@headfont}{\zihao{-5}\songti} \newcommand{\buct@footfont}{\zihao{-5}\songti} % \end{macrocode} % -% 诚信声明(本科),或论文原创性声明和授权声明(硕博)的字体。 +% 诚信声明(本科)或论文原创性声明和授权声明(硕博)。 % \begin{macrocode} \ifbuct@bachelor \newcommand{\buct@dcl@titlefont}{\zihao{3}\songti} @@ -987,7 +1006,7 @@ \fi % \end{macrocode} % -% 中英文摘要中的字体。 +% 中英文摘要。 % 这里的 \cs{CJKfamily+} 命令来自于 \pkg{xeCJK} 宏包,用于切换字体族: % 当参数为空时,则使用当前的 CJK 字体族,且对所有字符类生效。 % \begin{macrocode} @@ -1012,7 +1031,7 @@ \fi % \end{macrocode} % -% 设置中英文目录、设计图纸目录标题和目录中的各级标题字体。 +% 中英文目录、设计图纸目录标题和目录中的各级标题。 % \begin{macrocode} \ifbuct@bachelor \newcommand{\buct@toc@tocfont}{\zihao{4}\mdseries\heiti} @@ -1042,13 +1061,14 @@ \fi % \end{macrocode} % -% 设置浮动体(包括插图和表格)内容、编号和标题的字体。 +% 浮动体(包括插图和表格)内容、编号和标题。 % \begin{macrocode} \newcommand{\buct@floatfont}{\zihao{5}} -\newcommand{\buct@float@captionfont}{\zihao{5}\songti} +\newcommand{\buct@float@captionfont}{\zihao{5}\mdseries} +\newcommand{\buct@float@labelfont}{\zihao{5}\mdseries} % \end{macrocode} % -% 设置代码块的字体。根据是否开启 \opt{submit} 选项,设置关键字、注释的颜色。 +% 代码块。根据是否开启 \opt{submit} 选项,设置关键字、注释的颜色。 % 如果未开启,关键字将会使用深蓝色,注释会使用深灰色。 % \begin{macrocode} \newcommand{\buct@codefont}{\ttfamily\songti\zihao{5}} @@ -1085,7 +1105,7 @@ \newcommand\buct@task@class{班级:} \newcommand\buct@task@student{学生:} \newcommand\buct@task@supervisor{指导教师(含职称):} - \newcommand\buct@task@msupervisor{专业负责人:} + \newcommand\buct@task@msupervisor{专业负责人:} \newcommand\buct@task@itema{1.设计(论文)的主要任务及目标} \newcommand\buct@task@itemb{2.设计(论文)的基本要求和内容} \newcommand\buct@task@itemc{3.主要参考文献} @@ -1126,14 +1146,14 @@ 可以允许采用影印、缩印或其它复制手段保存、汇编学位论文。 $\Box$ 论文暂不公开(或保密)注释:本学位论文属于暂不公开 - (或保密)范围,在\rule{1.5em}{.6pt}年解密后适用本授权书。 + (或保密)范围,在\rule{1.5em}{.4pt}年解密后适用本授权书。 $\Box$ 非暂不公开(或保密)论文注释:本学位论文不属于暂不公开 (或保密)范围,适用本授权书。 } \newcommand\buct@dcl@pdf{版权页} - \newcommand\buct@sign@author{作者签名:\rule{7em}{.6pt}\qquad{日期:}\rule{7em}{.6pt}} - \newcommand\buct@sign@supervisor{导师签名:\rule{7em}{.6pt}\qquad{日期:}\rule{7em}{.6pt}} + \newcommand\buct@sign@author{作者签名:\rule{7em}{.4pt}\qquad{日期:}\rule{7em}{.4pt}} + \newcommand\buct@sign@supervisor{导师签名:\rule{7em}{.4pt}\qquad{日期:}\rule{7em}{.4pt}} \newcommand\buct@cabstract@title{摘\hspace{\ccwd}要} \newcommand\buct@eabstract@title{ABSTRACT} \newcommand\buct@ckeywords@title{关键词:} @@ -1141,6 +1161,7 @@ \newcommand\buct@ckeywords@sep{,} \newcommand\buct@ekeywords@sep{,~} \newcommand\buct@content@title{目\hspace{\ccwd}录} + \newcommand\buct@econtent@chapter{Chapter~} \newcommand\econtentsname{Contents} \newcommand\buct@deno@title{符号和缩略词说明} \newcommand\buct@ack@title{致谢} @@ -1192,7 +1213,6 @@ % \end{macrocode} % \end{macro} % -% % \begin{macro}{\cleardoublepage} % 修改命令 \cs{cleardoublepage},使之能在插入一张完全空白页的同时 % 保持页码的连续,适合章页右开的情况。 @@ -1229,24 +1249,14 @@ \else{ \thispagestyle{empty} \linespread{1.5534} - \setlength{\parskip}{9pt} - \begin{center} - \buct@dcl@titlefont\buct@dcl@title - \end{center} - - \buct@dcl@textfont\buct@dcl@text - - \vspace{6pt}\buct@sign@author\vspace{6pt} - - \begin{center} - \buct@auth@titlefont\buct@auth@title - \end{center} - - \buct@auth@textfont\buct@auth@text - - \vspace{6pt}\buct@sign@author - - \vspace{6pt}\buct@sign@supervisor + \setlength{\parskip}{15pt} + \centerline{\buct@dcl@titlefont\buct@dcl@title} + \par\indent\buct@dcl@textfont\buct@dcl@text + \par\indent\buct@sign@author\\[30pt] + \centerline{\buct@auth@titlefont\buct@auth@title} + \par\indent\buct@auth@textfont\buct@auth@text + \par\indent\buct@sign@author + \par\indent\buct@sign@supervisor }\fi \clearpage\normalsize } @@ -1256,6 +1266,7 @@ % \begin{macro}{\makedeclare} % 定义一个带可选参数的命令 \cs{makedeclare},可选参数为扫面页的相对路径; % 若不加参数则使用 \cs{buct@makedeclare} 来插入文本。 +% 这里的 \opt{pages=-} 表示插入所有页面。 % \begin{macrocode} \NewDocumentCommand{\makedeclare}{ o }{% \buct@pdfmark{\ifbuct@bachelor\buct@dcl@title\else\buct@dcl@pdf\fi}{declare} @@ -1286,7 +1297,7 @@ % \end{macrocode} % \end{macro} % -% 在这个环境中有如下的排版命令和环境: +% 排版“任务书”时,提供如下的命令和环境: % \begin{macro}{\taskinfo*} % 命令 \cs{taskinfo} 或 \cs{taskinfo*}: % 后者是学校样例的实现,但是由于换行、空位少造成书写不便,且不甚美观; @@ -1308,7 +1319,7 @@ % \end{macrocode} % \end{macro} % \begin{macro}{\taskinfo} -% 更多的换行,相比之下会更加整齐一些。 +% 多了一次换行,相比之下会更加整齐一些。 % \begin{macrocode} \buct@task@school\buct@ul[15em]{\buct@school}\qquad \buct@task@major\buct@ul[13em]{\buct@major}\\[3pt] @@ -1340,7 +1351,7 @@ % \begin{macro}{\taskitem} % 这里相比学校的样例,段前增加了一点空白。 % \begin{macrocode} - \newcommand{\taskitem}{\vspace{1em}\noindent\buct@taskitem\par} + \newcommand{\taskitem}{\vspace{6pt}\noindent\buct@taskitem\par} \fi % \end{macrocode} % \end{macro} @@ -1407,7 +1418,7 @@ \else \newenvironment{eabstract}{% \cleardoublepage% - \buct@pdfmark{\buct@eabstract@title}{eabstract}\markboth{\buct@eabstract@title}{} + \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} @@ -1463,7 +1474,7 @@ % \end{macrocode} % \end{macro} % \begin{macro}{\buct@addengcontents} -% 加入英文目录项。 +% 加入英文目录项。本命令依次接受 3 个参数:目录层级、标题文本、所使用的字体和(或)前缀字符。 % \begin{macrocode} \newcommand\buct@addengcontents[3]{% \addcontentsline{toce}{#1}{\protect\numberline{#3\@nameuse{the#1}}#2} @@ -1477,7 +1488,7 @@ % \begin{macro}{\esubsubsection} % 定义将不同层次标题加入英文目录中的命令。 % \begin{macrocode} - \newcommand\echapter[1]{\buct@addengcontents{chapter}{#1}{\buct@toce@chapfont}} + \newcommand\echapter[1]{\buct@addengcontents{chapter}{#1}{\buct@toce@chapfont{}\buct@econtent@chapter}} \newcommand\esection[1]{\buct@addengcontents{section}{#1}{}} \newcommand\esubsection[1]{\buct@addengcontents{subsection}{#1}{}} \newcommand\esubsubsection[1]{\buct@addengcontents{subsubsection}{#1}{}} @@ -1492,7 +1503,7 @@ % \begin{macro}{\bisubsection} % \begin{macro}{\bisubsubsection} % 类似 \cs{bicaption} 可接受两个参数来生成双语图标注一样,定义 \cs{bichapter} 命令从而更加方便一些。 -% \emph{以下定义的命令不可带星号。} +% \emph{以下定义的命令在使用时不可带星号。} % \begin{macrocode} \NewDocumentCommand{\bichapter}{ o m m }{\chapter[#1]{#2}\echapter{#3}} \NewDocumentCommand{\bisection}{ o m m }{\section[#1]{#2}\esection{#3}} @@ -1795,7 +1806,7 @@ \sisetup{% list-final-separator = { 和 }, list-pair-separator = { 和 }, - range-phrase = {$\sim$}, + range-phrase = {\,$\sim$\,}, } % \end{macrocode} % @@ -1844,9 +1855,9 @@ % 在“符号说明表”中我们嵌套了 \env{longtable} 环境,但其中的字号仍应为小四号。 % 因此这里需要保留原先的定义。 % \begin{macrocode} +\ifbuct@bachelor\relax\else \let\oldlongtable\longtable \let\endoldlongtable\endlongtable -\ifbuct@bachelor\relax\else \def\longtable{\zihao{5}\oldlongtable} \AtEndEnvironment{longtable}{\normalsize} \fi @@ -1861,7 +1872,7 @@ % % \begin{macrocode} \renewcommand{\captionfont}{\buct@float@captionfont} -\renewcommand{\captionlabelfont}{\buct@float@captionfont} +\renewcommand{\captionlabelfont}{\buct@float@labelfont} \DeclareCaptionLabelSeparator{capspace}{\quad} \captionsetup{labelsep=capspace} \captionsetup[table]{% @@ -1887,7 +1898,7 @@ \renewcommand{\thesubtable}{(\alph{subtable})} \renewcommand{\thetable}{\thechapter-\arabic{table}} \renewcommand{\thesubfigure}{(\alph{subfigure})} - \renewcommand{\thefigure}{\arabic{chapter}-\arabic{figure}} + \renewcommand{\thefigure}{\thechapter-\arabic{figure}} \ifbuct@bachelor \renewcommand{\thedfigure}{\thechapter-\arabic{dfigure}} \renewcommand{\theequation}{\thechapter-\arabic{equation}} @@ -1899,6 +1910,15 @@ } % \end{macrocode} % +% \subsubsection{文献引用} +% \begin{macro}{\inlinecite} +% 这里定义的 \cs{inlinecite} 适用于行间引用,依赖于 \pkg{natbib} 宏包里的命令。 +% \begin{macrocode} +\DeclareRobustCommand\inlinecite{\@inlinecite} +\def\@inlinecite#1{\begingroup\let\@cite\NAT@citenum\citep{#1}\endgroup} +% \end{macrocode} +% \end{macro} +% % \subsubsection{数学公式} % 硕博公式需要加入点线连接公式与编号。这里通过重定义 \file{source2e} % 中的 \env{equation} 环境,故仅在 \env{equation} 环境中生效。 @@ -1971,10 +1991,17 @@ % \end{macrocode} % \end{environment} % +% \begin{macro}{\appendix} +% 英文目录中,修改“附录”的英文前缀字符,仅硕博。 +% \begin{macrocode} +\else + \g@addto@macro\appendix{\def\buct@econtent@chapter{Appendix~}} +% \end{macrocode} +% \end{macro} +% % \begin{environment}{achievements} % 研究成果及发表的学术论文,仅硕博。 % \begin{macrocode} -\else \newenvironment{achievements}{% \cleardoublepage \chapter*{\buct@achi@title} @@ -2060,7 +2087,6 @@ \renewcommand{\em}{\bfsong} % \end{macrocode} % \end{macro} - % \subsubsection{脚注} % \begin{macro}{\footnote} % 使用带圈圈的脚注。尽管 \LaTeX\ 自带了 \cs{textcircled} 命令,但是效果并不如意。 @@ -2110,10 +2136,15 @@ % % % \subsection{封面} -% 由于学校会统一印制封面,这里仅提供\emph{硕博论文封面}的一个参考实现。 +% 由于学校会统一印制封面,这里仅提供本科和硕博的一个参考实现。 +% 并且由于学校所给的参考封面每年都有细微的变动,由本模板所生成的封面上文字间距不能保证与参考一致。 +% 还请留心。 % \begin{macrocode} %<*cover> -\ProvidesClass{buctcover}[2021/04/24 Cover Maker for BUCTthesis] +\ProvidesClass{buctcover}[2022/06/21 Cover Maker for BUCTthesis] +% \end{macrocode} +% 和论文本体一样,目前只支持 \XeLaTeX\ 引擎编译封面,其余设置基本一致。 +% \begin{macrocode} \RequirePackage{ifxetex} \RequireXeTeX \RequirePackage{kvoptions} @@ -2132,36 +2163,35 @@ \LoadClass[zihao=-4]{ctexbook} % \end{macrocode} % -% 目前封面的 \opt{type} 选项仅允许硕博。 +% 封面的 \opt{type} 对于三种学位类型都能支持,但是必须选择其中的一项。 % \begin{macrocode} -\ifbuct@bachelor% - \ClassError{buctcover}{% - type `bachelor' is unavailable. \MessageBreak% - type = [ master | doctor ]% - }{}\else +\ifbuct@bachelor\relax\else \ifbuct@master\relax\else \ifbuct@doctor\relax\else \ClassError{buctthesis}{% Specified thesis type is obligatory: \MessageBreak% - type = [ master | doctor ]% + type = [ bachelor | master | doctor ]% }{} \fi\fi\fi % \end{macrocode} % % 定义用于定义论文相关信息的内部命令。 -% 与 \cls{buctthesis} 不同的是:这里仅能通过 \cs{coversetup} 定义论文信息。其中 \opt{titleA} 和 \opt{titleB} 分别用于封面标题的第一行与第二行。 +% 与 \cls{buctthesis} 不同的是:这里仅能通过 \cs{coversetup} 定义论文信息。 +% 其中 \opt{titleA} 和 \opt{titleB} 分别用于封面标题的第一行与第二行。 +% 由于可能存在只用一行就能写完标题的情况,所以这里不设置后者的默认文本。 % \begin{macrocode} \newcommand{\coversetup}[1]{\kvsetkeys{buct}{#1}} +\DeclareStringOption[班级未定义]{class} \DeclareStringOption[学号未定义]{studentid} \DeclareStringOption[题目首行未定义]{titleA} -\DeclareStringOption[题目次行未定义]{titleB} +\DeclareStringOption{titleB} \DeclareStringOption[专业未定义]{major} \DeclareStringOption[作者未定义]{author} \DeclareStringOption[导师未定义]{supervisor} \DeclareStringOption[\the\year-\two@digits{\month}-\two@digits{\day}]{date} % \end{macrocode} % -% 页边距设置。经过测量,各边距值比正文部分都要小。 +% 页边距设置。经过测量,各边距值比正文部分都要小;本科暂与硕博设置一致。 % \begin{macrocode} \RequirePackage[a4paper,nomarginpar, top = 2.1cm, bottom = 2.2cm, left = 2cm, right = 2cm, @@ -2169,9 +2199,17 @@ ]{geometry} % \end{macrocode} % -% 载入表格、插图、计算尺寸的宏包。 +% 载入 \pkg{xeCJKfntef} 宏包。在 \pkg{ctex} 宏集 2.5 版本之后需要手动载入。 +% \begin{macrocode} +\RequirePackage{xeCJKfntef} +% \end{macrocode} +% +% 以下宏包分别用于排版表格、插图,计算标题文本长度,划本科封面线条, +% 判断语句和添加封面的 PDF 书签。 +% \pkg{textpos} 配合 \pkg{tikz},这样就能在页面的任何地方作画了。 % \begin{macrocode} -\RequirePackage{array,graphicx,calc,hyperref} +\RequirePackage{array,graphicx,calc,tikz,xifthen,hyperref} +\RequirePackage[absolute,overlay]{textpos} % \end{macrocode} % % 清空页眉页脚。 @@ -2196,19 +2234,39 @@ \newCJKfontfamily[xbsong] \xbsong {FZXiaoBiaoSong-B05S} \newCJKfontfamily[dbsong] \dbsong {FZDaBiaoSong-B06S} % \end{macrocode} +% 设置西文字体。事实上该字体这只会作用于本科封面的数字日期,除此之外的数字(如学号)使用中文字体。 +% \begin{macrocode} +\setmainfont{Times New Roman} +% \end{macrocode} % -% 标尺,用于调试。 +% 标尺,用于调试。手动取消注释来开启。 % \begin{macrocode} % \usepackage[unit=cm,type=upperleft,hshift=0cm,vshift=0cm]{fgruler} % \end{macrocode} % +% \begin{macro}{\buct@title@ul} % 定义下划线命令,这里利用了 \pkg{calc} 宏包的 \cs{widthof} 命令, % 取 \cs{buct@titleA} (即首行标题)的长度,用以固定下划线的长度。 +% 文本末尾加一个 \cs{enspace} 会让横线右端稍长于最后一个文字,显得更美观一些。 % \begin{macrocode} \newcommand\buct@title@ul[1]{% \CJKunderline{\makebox[\widthof{\buct@titleA\enspace}][l]{#1}} } % \end{macrocode} +% \end{macro} +% +% \begin{macro}{\buct@major@ul} +% 但是对于本科封面而言,“专业”“学生”“指导教师”与“题目”之间有一大段空白, +% 可以看做相互独立的表格。因此,这里我们让横线的宽度取所填入专业文本的宽度。 +% 使用 \cs{quad} 会让横线右端长于最后一个文字更多一点,更贴合封面的参考样例。 +% \begin{macrocode} +\newcommand\buct@major@ul[1]{% + \CJKunderline{\makebox[\widthof{\buct@major\quad}][c]{#1}} +} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\buct@format@date} % 日期格式处理,将输入的 \cs{buct@date} 拆分。 % \begin{macrocode} \newcommand\buct@format@date[1]{% @@ -2219,101 +2277,203 @@ \expandafter\buct@@process@date\buct@@date\@nil } % \end{macrocode} +% \end{macro} % -% \cs{@zhdate} 命令接受三个数字,将“年”转换为中文数字串,“月”和“日”转换为中文数字;其中“年”中的 0 映射为“〇”而非“零”。 +% \cs{@zhdate} 命令接受三个数字。 +% 本科的日期要求比较简单,直接输出对应的数字即可。 +% 但是样例所给的数字前后有一些空白,我们用 \cs{makebox} 来定格它。 % \begin{macrocode} \newcommand\@zhdate[3]{% - \Large\bfseries\zhkai\ziju{.1}% - 日\hspace{1.5\ccwd}期:\zhdigits{#1}年\zhnumber{#2}月\zhnumber{#3}日% + \bfseries\zhkai + \ifbuct@bachelor + \zihao{4} + #1年\makebox[1.5em]{#2}月\makebox[1.5em]{#3}日 +% \end{macrocode} +% +% 如果是硕博,则将“年”转换为中文数字串,“月”和“日”转换为中文数字;其中“年”中的 0 映射为“〇”而非“零”。 +% \begin{macrocode} + \else + \Large\ziju{.1}% + 日\hspace{1.5\ccwd}期:\zhdigits{#1}年\zhnumber{#2}月\zhnumber{#3}日% + \fi } % \end{macrocode} % % \begin{macro}{\buct@makecover} -% 定义 \cs{buct@makecover} 命令来生成封面。 +% 接下来是重头戏:定义 \cs{buct@makecover} 命令来生成封面。 % \begin{macrocode} \newcommand{\buct@makecover}{% % \end{macrocode} % -% 封面右上角的“单位代码”和“学号”。 +% 封面右上角的“单位代码”和“学号”,先分别设置格式。 % \begin{macrocode} \begin{table}[h] - \renewcommand{\arraystretch}{1.3} - \raggedleft\large + \raggedleft + \ifbuct@bachelor + \songti\zihao{5} + \else + \renewcommand{\arraystretch}{1.3}\large + \fi +% \end{macrocode} +% +% 用一个无线表格来排版文字。需要注意二者都要以中文字体来书写数字。 +% 注意本科封面的表格右端并不是严格顶头,所以这里空开两个字符的宽度。 +% \begin{macrocode} \begin{tabular}{l@{}l} - \xbsong 单位代码 & :\CJKfamily+{zhsong}\mbox{10010}\\ - \xbsong 学\hspace{2\ccwd}号 & :\CJKfamily+{zhsong}\mbox{\buct@studentid}\\ + \ifbuct@bachelor% + 班\hspace{2\ccwd}级&:\CJKfamily+{zhsong}\buct@class\hspace*{2\ccwd}\\ + 学\hspace{2\ccwd}号&:\CJKfamily+{zhsong}\buct@studentid\hspace*{2\ccwd}\\ + \else% + \xbsong 单位代码 & :\CJKfamily+{zhsong}\mbox{10010}\\ + \xbsong 学\hspace{2\ccwd}号 & :\CJKfamily+{zhsong}\mbox{\buct@studentid}\\ + \fi \end{tabular} \end{table} - \vspace{26bp} + \ifbuct@bachelor\vspace{3bp}\else\vspace{26bp}\fi % \end{macrocode} % % 校徽与校名。前者是插图,后者是文字。 +% 需要注意,本科和硕博封面的“北京化工大学”几个字的字距是有差别的。 +% 由于并未设置居中,所以本科还需要手动空一点距离让文本近似居于页面中央。 % \begin{macrocode} \begin{minipage}[c][][c]{2.35cm} \includegraphics[width = 2.35cm]{BUCT-badge.pdf} \end{minipage} \qquad \begin{minipage}[c][2.35cm][c]{9cm} - \ziju{-0.02}\xingkai\zihao{0}{北京化工大学} + \xingkai + \ifbuct@bachelor + \ziju{0.1}\hspace*{0.8\ccwd}\zihao{-0} + \else + \ziju{-0.02}\zihao{0} + \fi + {北京化工大学} \end{minipage} - \vspace{18bp} + \ifbuct@bachelor\vspace{12bp}\else\vspace{18bp}\fi % \end{macrocode} % -% 标题。 +% 标题。本科的标题中的“(论文)”使用了半角括号,字体使用 Times New Roman Bold。 +% 按照排版规范,但模板使用全角和对应的中文字体。 +% 对于这项更改,我们使用 \pkg{xeCJK} 里的命令来吃掉一点括号的空白。 +% +% 注:\cs{punctstyle\{banjiao\}} 和 \cs{xeCJKsetup\{PunctStyle = banjiao\}} 和 \cs{ctexset\{punct = banjiao\}}是一样的。 % \begin{macrocode} \begin{center} - % \ziju{-0.05} - {\dbsong\fontsize{38bp}{60bp}\selectfont - \ifbuct@master{硕}\else{博}\fi{}士研究生学位论文} + \ifbuct@bachelor + \ziju{0.15}\xbsong\zihao{-0}\CJKfamily+{}{% + \punctstyle{banjiao}毕业设计(论文)% (论文) + } + \else% + %\ziju{-0.05} + \dbsong\fontsize{38bp}{60bp}\selectfont + \ifbuct@master{硕}\else{博}\fi{}士研究生学位论文 + \fi \end{center} - \vspace{76bp} % \end{macrocode} % -% 论文信息。 -% \begin{macrocode} - \begin{center} - \fontsize{20}{36}\selectfont -% \end{macrocode} +% 对于论文标题之下的部分,我们将本科和硕博分开设置。 % -% 禁用下划线的断点,调整粗细。 +% 本科封面有两条横贯页面的横线,位于纸张顶部向下 \SI{10}{\centi\metre} 左右, +% 我们用 \pkg{textpos} 的 \env{textblock} 环境定位,用 \pkg{tikz} 将它们画出来。 +% 两条线的间距取 \SI{0.2}{\centi\metre}。 % \begin{macrocode} - \xeCJKsetup{ - underline = { - skip = false, - thickness = 1.2pt, - } - } + \ifbuct@bachelor + \setlength{\TPHorizModule}{1cm} + \setlength{\TPVertModule}{1cm} + \begin{textblock}{0}(0,10) + \noindent% + \tikz[line width=1.2pt] \draw (0,0) -- (21,0) (0,0.2) -- (21,0.2); + \end{textblock} + \vspace{72bp} % \end{macrocode} % -% 使用一个表格来排版论文的信息。 +% 接下来书写题目。先使用 \pkg{xeCJK} 的功能来禁用下划线的断点,并调整其粗细。 % \begin{macrocode} - \begin{tabular}{ - >{\begin{CJKfilltwosides}[b]{4\ccwd}\sffamily\bfseries}r% - <{\end{CJKfilltwosides}}% - @{}>{\enspace\zihao{3}\bfseries}l% - <{\vspace{.2em}}% - } + \begin{center} + \xeCJKsetup{ + underline = { + skip = false, + thickness = 1.4pt, + } + } % \end{macrocode} % +% 然后是“题目”及其内容。 % 题目需要手动断行,且长度控制在 \SI{36}{em} 以内。 % 因表格本身的横线与文字间距较大,这里采用下划线的方式来划线。 -% \begin{macrocode} - 题目 & \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} +% 注意这里我们要判断题目是否有第二行(即 \cs{buct@titleB} 是否有值) +% 来输出一行还是两行题目。 +% \begin{macrocode} + \renewcommand{\arraystretch}{2} + \begin{tabular}{% + >{\zihao{-2}\xbsong}l + >{\zihao{3}\bfseries}l + } + 题\hspace{\ccwd}目 & \buct@title@ul{\buct@titleA}\\ + \ifthenelse{\equal{\buct@titleB}{}}{\relax}{ + & \buct@title@ul{\buct@titleB}\\ + } + \end{tabular} + \vskip144bp\zihao{3} +% \end{macrocode} +% +% 使用一个表格来排版论文的信息,如前定义 \cs{buct@major@ul} 所述,这里横线的宽度取“专业”内容的宽度。 +% \begin{macrocode} + \begin{tabular}{ + >{\begin{CJKfilltwosides}[b]{4\ccwd}\xbsong}r% + <{\end{CJKfilltwosides}}% + @{}>{\enspace\zihao{4}\bfseries}l% + <{\vspace{.2em}}% + } + 专业 & \buct@major@ul{\buct@major}\\ + 学生 & \buct@major@ul{\buct@author}\\ + 指导教师 & \buct@major@ul{\buct@supervisor}\\ + \end{tabular} + \end{center} % \end{macrocode} % % 在页面底部书写日期。 % \begin{macrocode} - \vfill{% - \begin{center}% - \buct@format@date{\@zhdate}% - \end{center}% - } + \vfill{% + \begin{center}% + \buct@format@date{\@zhdate}% + \end{center}% + } +% \end{macrocode} +% +% 硕博论文的处理方式与本科相似。 +% \begin{macrocode} + \else + \vspace{76bp} + \begin{center} + \fontsize{20}{36}\selectfont + \xeCJKsetup{ + underline = { + skip = false, + thickness = 1.2pt, + } + } + \begin{tabular}{ + >{\begin{CJKfilltwosides}[b]{4\ccwd}\sffamily\bfseries}r% + <{\end{CJKfilltwosides}}% + @{}>{\enspace\zihao{3}\bfseries}l% + <{\vspace{.2em}}% + } + 题目 & \buct@title@ul{\buct@titleA}\\ + \ifthenelse{\equal{\buct@titleB}{}}{\relax}{ + & \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} + \vfill{% + \begin{center}% + \buct@format@date{\@zhdate}% + \end{center}% + } + \fi } % \end{macrocode} % \end{macro} @@ -2322,15 +2482,13 @@ % 文档命令 \cs{makecover} 类似 \cs{makedeclare}, % 接受一个可选参数用于插入扫描页,否则调用 \cs{buct@makecover} 生成封面。 % \begin{macrocode} -\ifbuct@bachelor\relax\else - \NewDocumentCommand{\makecover}{ o }{% +\NewDocumentCommand{\makecover}{ o }{% \hypertarget{cover}{} \pdfbookmark{封面}{cover} \IfNoValueTF{#1}{\buct@makecover}{% \includepdf[pages=-]{#1} } - } -\fi +} %</cover> % \end{macrocode} % \end{macro} diff --git a/Master/texmf-dist/source/latex/buctthesis/buctthesis.ins b/Master/texmf-dist/source/xelatex/buctthesis/buctthesis.ins index ada3e84b4a1..4396724f779 100644 --- a/Master/texmf-dist/source/latex/buctthesis/buctthesis.ins +++ b/Master/texmf-dist/source/xelatex/buctthesis/buctthesis.ins @@ -1,5 +1,5 @@ %% -%% Copyright (C) 2019-2021 by Miracle0565 +%% Copyright (C) 2019-2022 by Miracle0565 %% %% https://github.com/Miracle0565/BUCTthesis %% diff --git a/Master/texmf-dist/tex/latex/buctthesis/buctcover.cls b/Master/texmf-dist/tex/latex/buctthesis/buctcover.cls deleted file mode 100644 index 93c2e9cc8c9..00000000000 --- a/Master/texmf-dist/tex/latex/buctthesis/buctcover.cls +++ /dev/null @@ -1,155 +0,0 @@ -%% -%% This is file `buctcover.cls', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% buctthesis.dtx (with options: `cover') -%% -%% This is a generated file. -%% -%% Copyright (C) 2019-2022 by Miracle0565 -%% -%% https://github.com/Miracle0565/BUCTthesis -%% -%% This file may be distributed and/or modified under -%% the conditions of the LaTeX Project Public License, -%% either version 1.3c of this license or (at your option) -%% any later version. The latest version of this license -%% is in: -%% -%% http://www.latex-project.org/lppl.txt -%% -%% and version 1.3c or later is part of all distributions -%% of LaTeX version 1999/12/01 or later. -%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesClass{buctcover}[2021/04/24 Cover Maker for BUCTthesis] -\RequirePackage{ifxetex} -\RequireXeTeX -\RequirePackage{kvoptions} -\SetupKeyvalOptions{ - family = buct, - prefix = buct@, - setkeys = \kvsetkeys, -} -\newif\ifbuct@bachelor\buct@bachelorfalse -\newif\ifbuct@master\buct@masterfalse -\newif\ifbuct@doctor\buct@doctorfalse -\define@key{buct}{type}{\expandafter\csname buct@#1true\endcsname} -\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{ctexbook}} -\ProcessKeyvalOptions* -\PassOptionsToPackage{quiet}{xeCJK} -\LoadClass[zihao=-4]{ctexbook} -\ifbuct@bachelor% - \ClassError{buctcover}{% - type `bachelor' is unavailable. \MessageBreak% - type = [ master | doctor ]% - }{}\else - \ifbuct@master\relax\else - \ifbuct@doctor\relax\else - \ClassError{buctthesis}{% - Specified thesis type is obligatory: \MessageBreak% - type = [ master | doctor ]% - }{} -\fi\fi\fi -\newcommand{\coversetup}[1]{\kvsetkeys{buct}{#1}} -\DeclareStringOption[学号未定义]{studentid} -\DeclareStringOption[题目首行未定义]{titleA} -\DeclareStringOption[题目次行未定义]{titleB} -\DeclareStringOption[专业未定义]{major} -\DeclareStringOption[作者未定义]{author} -\DeclareStringOption[导师未定义]{supervisor} -\DeclareStringOption[\the\year-\two@digits{\month}-\two@digits{\day}]{date} -\RequirePackage[a4paper,nomarginpar, - top = 2.1cm, bottom = 2.2cm, left = 2cm, right = 2cm, - headheight = 0cm, footskip = 0cm -]{geometry} -\RequirePackage{array,graphicx,calc,hyperref} -\pagestyle{empty} -\xeCJKsetup{EmboldenFactor=2.3} -\setCJKmainfont{SimSun}[AutoFakeBold] -\setCJKsansfont{SimHei}[AutoFakeBold] -\newCJKfontfamily[xingkai]\xingkai{STXingkai} -\newCJKfontfamily[zhkai] \zhkai {KaiTi} [AutoFakeBold] -\newCJKfontfamily[xbsong] \xbsong {FZXiaoBiaoSong-B05S} -\newCJKfontfamily[dbsong] \dbsong {FZDaBiaoSong-B06S} -\newcommand\buct@title@ul[1]{% - \CJKunderline{\makebox[\widthof{\buct@titleA\enspace}][l]{#1}} -} -\newcommand\buct@format@date[1]{% - \edef\buct@@date{\buct@date}% - \def\buct@@process@date##1-##2-##3\@nil{% - #1{##1}{##2}{##3}% - }% - \expandafter\buct@@process@date\buct@@date\@nil -} -\newcommand\@zhdate[3]{% - \Large\bfseries\zhkai\ziju{.1}% - 日\hspace{1.5\ccwd}期:\zhdigits{#1}年\zhnumber{#2}月\zhnumber{#3}日% -} -\newcommand{\buct@makecover}{% - \begin{table}[h] - \renewcommand{\arraystretch}{1.3} - \raggedleft\large - \begin{tabular}{l@{}l} - \xbsong 单位代码 & :\CJKfamily+{zhsong}\mbox{10010}\\ - \xbsong 学\hspace{2\ccwd}号 & :\CJKfamily+{zhsong}\mbox{\buct@studentid}\\ - \end{tabular} - \end{table} - \vspace{26bp} - \begin{minipage}[c][][c]{2.35cm} - \includegraphics[width = 2.35cm]{BUCT-badge.pdf} - \end{minipage} - \qquad - \begin{minipage}[c][2.35cm][c]{9cm} - \ziju{-0.02}\xingkai\zihao{0}{北京化工大学} - \end{minipage} - \vspace{18bp} - \begin{center} - % \ziju{-0.05} - {\dbsong\fontsize{38bp}{60bp}\selectfont - \ifbuct@master{硕}\else{博}\fi{}士研究生学位论文} - \end{center} - \vspace{76bp} - \begin{center} - \fontsize{20}{36}\selectfont - \xeCJKsetup{ - underline = { - skip = false, - thickness = 1.2pt, - } - } - \begin{tabular}{ - >{\begin{CJKfilltwosides}[b]{4\ccwd}\sffamily\bfseries}r% - <{\end{CJKfilltwosides}}% - @{}>{\enspace\zihao{3}\bfseries}l% - <{\vspace{.2em}}% - } - 题目 & \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} - \vfill{% - \begin{center}% - \buct@format@date{\@zhdate}% - \end{center}% - } -} -\ifbuct@bachelor\relax\else - \NewDocumentCommand{\makecover}{ o }{% - \hypertarget{cover}{} - \pdfbookmark{封面}{cover} - \IfNoValueTF{#1}{\buct@makecover}{% - \includepdf[pages=-]{#1} - } - } -\fi -\endinput -%% -%% End of file `buctcover.cls'. diff --git a/Master/texmf-dist/tex/xelatex/buctthesis/buctcover.cls b/Master/texmf-dist/tex/xelatex/buctthesis/buctcover.cls new file mode 100644 index 00000000000..45076bb122e --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/buctthesis/buctcover.cls @@ -0,0 +1,229 @@ +%% +%% This is file `buctcover.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% buctthesis.dtx (with options: `cover') +%% +%% This is a generated file. +%% +%% Copyright (C) 2019-2022 by Miracle0565 +%% +%% https://github.com/Miracle0565/BUCTthesis +%% +%% This file may be distributed and/or modified under +%% the conditions of the LaTeX Project Public License, +%% either version 1.3c of this license or (at your option) +%% any later version. The latest version of this license +%% is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3c or later is part of all distributions +%% of LaTeX version 1999/12/01 or later. +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesClass{buctcover}[2022/06/21 Cover Maker for BUCTthesis] +\RequirePackage{ifxetex} +\RequireXeTeX +\RequirePackage{kvoptions} +\SetupKeyvalOptions{ + family = buct, + prefix = buct@, + setkeys = \kvsetkeys, +} +\newif\ifbuct@bachelor\buct@bachelorfalse +\newif\ifbuct@master\buct@masterfalse +\newif\ifbuct@doctor\buct@doctorfalse +\define@key{buct}{type}{\expandafter\csname buct@#1true\endcsname} +\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{ctexbook}} +\ProcessKeyvalOptions* +\PassOptionsToPackage{quiet}{xeCJK} +\LoadClass[zihao=-4]{ctexbook} +\ifbuct@bachelor\relax\else + \ifbuct@master\relax\else + \ifbuct@doctor\relax\else + \ClassError{buctthesis}{% + Specified thesis type is obligatory: \MessageBreak% + type = [ bachelor | master | doctor ]% + }{} +\fi\fi\fi +\newcommand{\coversetup}[1]{\kvsetkeys{buct}{#1}} +\DeclareStringOption[班级未定义]{class} +\DeclareStringOption[学号未定义]{studentid} +\DeclareStringOption[题目首行未定义]{titleA} +\DeclareStringOption{titleB} +\DeclareStringOption[专业未定义]{major} +\DeclareStringOption[作者未定义]{author} +\DeclareStringOption[导师未定义]{supervisor} +\DeclareStringOption[\the\year-\two@digits{\month}-\two@digits{\day}]{date} +\RequirePackage[a4paper,nomarginpar, + top = 2.1cm, bottom = 2.2cm, left = 2cm, right = 2cm, + headheight = 0cm, footskip = 0cm +]{geometry} +\RequirePackage{xeCJKfntef} +\RequirePackage{array,graphicx,calc,tikz,xifthen,hyperref} +\RequirePackage[absolute,overlay]{textpos} +\pagestyle{empty} +\xeCJKsetup{EmboldenFactor=2.3} +\setCJKmainfont{SimSun}[AutoFakeBold] +\setCJKsansfont{SimHei}[AutoFakeBold] +\newCJKfontfamily[xingkai]\xingkai{STXingkai} +\newCJKfontfamily[zhkai] \zhkai {KaiTi} [AutoFakeBold] +\newCJKfontfamily[xbsong] \xbsong {FZXiaoBiaoSong-B05S} +\newCJKfontfamily[dbsong] \dbsong {FZDaBiaoSong-B06S} +\setmainfont{Times New Roman} +\newcommand\buct@title@ul[1]{% + \CJKunderline{\makebox[\widthof{\buct@titleA\enspace}][l]{#1}} +} +\newcommand\buct@major@ul[1]{% + \CJKunderline{\makebox[\widthof{\buct@major\quad}][c]{#1}} +} +\newcommand\buct@format@date[1]{% + \edef\buct@@date{\buct@date}% + \def\buct@@process@date##1-##2-##3\@nil{% + #1{##1}{##2}{##3}% + }% + \expandafter\buct@@process@date\buct@@date\@nil +} +\newcommand\@zhdate[3]{% + \bfseries\zhkai + \ifbuct@bachelor + \zihao{4} + #1年\makebox[1.5em]{#2}月\makebox[1.5em]{#3}日 + \else + \Large\ziju{.1}% + 日\hspace{1.5\ccwd}期:\zhdigits{#1}年\zhnumber{#2}月\zhnumber{#3}日% + \fi +} +\newcommand{\buct@makecover}{% + \begin{table}[h] + \raggedleft + \ifbuct@bachelor + \songti\zihao{5} + \else + \renewcommand{\arraystretch}{1.3}\large + \fi + \begin{tabular}{l@{}l} + \ifbuct@bachelor% + 班\hspace{2\ccwd}级&:\CJKfamily+{zhsong}\buct@class\hspace*{2\ccwd}\\ + 学\hspace{2\ccwd}号&:\CJKfamily+{zhsong}\buct@studentid\hspace*{2\ccwd}\\ + \else% + \xbsong 单位代码 & :\CJKfamily+{zhsong}\mbox{10010}\\ + \xbsong 学\hspace{2\ccwd}号 & :\CJKfamily+{zhsong}\mbox{\buct@studentid}\\ + \fi + \end{tabular} + \end{table} + \ifbuct@bachelor\vspace{3bp}\else\vspace{26bp}\fi + \begin{minipage}[c][][c]{2.35cm} + \includegraphics[width = 2.35cm]{BUCT-badge.pdf} + \end{minipage} + \qquad + \begin{minipage}[c][2.35cm][c]{9cm} + \xingkai + \ifbuct@bachelor + \ziju{0.1}\hspace*{0.8\ccwd}\zihao{-0} + \else + \ziju{-0.02}\zihao{0} + \fi + {北京化工大学} + \end{minipage} + \ifbuct@bachelor\vspace{12bp}\else\vspace{18bp}\fi + \begin{center} + \ifbuct@bachelor + \ziju{0.15}\xbsong\zihao{-0}\CJKfamily+{}{% + \punctstyle{banjiao}毕业设计(论文)% (论文) + } + \else% + %\ziju{-0.05} + \dbsong\fontsize{38bp}{60bp}\selectfont + \ifbuct@master{硕}\else{博}\fi{}士研究生学位论文 + \fi + \end{center} + \ifbuct@bachelor + \setlength{\TPHorizModule}{1cm} + \setlength{\TPVertModule}{1cm} + \begin{textblock}{0}(0,10) + \noindent% + \tikz[line width=1.2pt] \draw (0,0) -- (21,0) (0,0.2) -- (21,0.2); + \end{textblock} + \vspace{72bp} + \begin{center} + \xeCJKsetup{ + underline = { + skip = false, + thickness = 1.4pt, + } + } + \renewcommand{\arraystretch}{2} + \begin{tabular}{% + >{\zihao{-2}\xbsong}l + >{\zihao{3}\bfseries}l + } + 题\hspace{\ccwd}目 & \buct@title@ul{\buct@titleA}\\ + \ifthenelse{\equal{\buct@titleB}{}}{\relax}{ + & \buct@title@ul{\buct@titleB}\\ + } + \end{tabular} + \vskip144bp\zihao{3} + \begin{tabular}{ + >{\begin{CJKfilltwosides}[b]{4\ccwd}\xbsong}r% + <{\end{CJKfilltwosides}}% + @{}>{\enspace\zihao{4}\bfseries}l% + <{\vspace{.2em}}% + } + 专业 & \buct@major@ul{\buct@major}\\ + 学生 & \buct@major@ul{\buct@author}\\ + 指导教师 & \buct@major@ul{\buct@supervisor}\\ + \end{tabular} + \end{center} + \vfill{% + \begin{center}% + \buct@format@date{\@zhdate}% + \end{center}% + } + \else + \vspace{76bp} + \begin{center} + \fontsize{20}{36}\selectfont + \xeCJKsetup{ + underline = { + skip = false, + thickness = 1.2pt, + } + } + \begin{tabular}{ + >{\begin{CJKfilltwosides}[b]{4\ccwd}\sffamily\bfseries}r% + <{\end{CJKfilltwosides}}% + @{}>{\enspace\zihao{3}\bfseries}l% + <{\vspace{.2em}}% + } + 题目 & \buct@title@ul{\buct@titleA}\\ + \ifthenelse{\equal{\buct@titleB}{}}{\relax}{ + & \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} + \vfill{% + \begin{center}% + \buct@format@date{\@zhdate}% + \end{center}% + } + \fi +} +\NewDocumentCommand{\makecover}{ o }{% + \hypertarget{cover}{} + \pdfbookmark{封面}{cover} + \IfNoValueTF{#1}{\buct@makecover}{% + \includepdf[pages=-]{#1} + } +} +\endinput +%% +%% End of file `buctcover.cls'. diff --git a/Master/texmf-dist/tex/latex/buctthesis/buctthesis.cls b/Master/texmf-dist/tex/xelatex/buctthesis/buctthesis.cls index b1f62a11896..3e64c386685 100644 --- a/Master/texmf-dist/tex/latex/buctthesis/buctthesis.cls +++ b/Master/texmf-dist/tex/xelatex/buctthesis/buctthesis.cls @@ -26,7 +26,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesClass{buctthesis}[2021/09/10 v1.2 BUCT Thesis Template] +\ProvidesClass{buctthesis}[2022/07/29 v1.4.1 BUCT Thesis Template] \RequirePackage{ifxetex} \RequireXeTeX \RequirePackage{kvoptions} @@ -116,7 +116,10 @@ \setCJKsansfont{SimHei}[AutoFakeBold] } { - \ClassWarning{buctthesis}{The fonts differ to the default.} + \ClassWarning{buctthesis}{% + The fonts differ to the default.\MessageBreak% + Use fontset = windows to correct.% + } } \newcommand{\bfsong}{\bfseries} \newcommand{\bfhei}{\sffamily\bfseries} @@ -187,7 +190,8 @@ \newcommand{\buct@sssecfont}{\buct@ssecfont} \fi \newcommand{\buct@floatfont}{\zihao{5}} -\newcommand{\buct@float@captionfont}{\zihao{5}\songti} +\newcommand{\buct@float@captionfont}{\zihao{5}\mdseries} +\newcommand{\buct@float@labelfont}{\zihao{5}\mdseries} \newcommand{\buct@codefont}{\ttfamily\songti\zihao{5}} \newcommand{\buct@codecomfont}{% \ttfamily\slshape @@ -258,14 +262,14 @@ 可以允许采用影印、缩印或其它复制手段保存、汇编学位论文。 $\Box$ 论文暂不公开(或保密)注释:本学位论文属于暂不公开 - (或保密)范围,在\rule{1.5em}{.6pt}年解密后适用本授权书。 + (或保密)范围,在\rule{1.5em}{.4pt}年解密后适用本授权书。 $\Box$ 非暂不公开(或保密)论文注释:本学位论文不属于暂不公开 (或保密)范围,适用本授权书。 } \newcommand\buct@dcl@pdf{版权页} - \newcommand\buct@sign@author{作者签名:\rule{7em}{.6pt}\qquad{日期:}\rule{7em}{.6pt}} - \newcommand\buct@sign@supervisor{导师签名:\rule{7em}{.6pt}\qquad{日期:}\rule{7em}{.6pt}} + \newcommand\buct@sign@author{作者签名:\rule{7em}{.4pt}\qquad{日期:}\rule{7em}{.4pt}} + \newcommand\buct@sign@supervisor{导师签名:\rule{7em}{.4pt}\qquad{日期:}\rule{7em}{.4pt}} \newcommand\buct@cabstract@title{摘\hspace{\ccwd}要} \newcommand\buct@eabstract@title{ABSTRACT} \newcommand\buct@ckeywords@title{关键词:} @@ -273,6 +277,7 @@ \newcommand\buct@ckeywords@sep{,} \newcommand\buct@ekeywords@sep{,~} \newcommand\buct@content@title{目\hspace{\ccwd}录} + \newcommand\buct@econtent@chapter{Chapter~} \newcommand\econtentsname{Contents} \newcommand\buct@deno@title{符号和缩略词说明} \newcommand\buct@ack@title{致谢} @@ -321,24 +326,14 @@ \else{ \thispagestyle{empty} \linespread{1.5534} - \setlength{\parskip}{9pt} - \begin{center} - \buct@dcl@titlefont\buct@dcl@title - \end{center} - - \buct@dcl@textfont\buct@dcl@text - - \vspace{6pt}\buct@sign@author\vspace{6pt} - - \begin{center} - \buct@auth@titlefont\buct@auth@title - \end{center} - - \buct@auth@textfont\buct@auth@text - - \vspace{6pt}\buct@sign@author - - \vspace{6pt}\buct@sign@supervisor + \setlength{\parskip}{15pt} + \centerline{\buct@dcl@titlefont\buct@dcl@title} + \par\indent\buct@dcl@textfont\buct@dcl@text + \par\indent\buct@sign@author\\[30pt] + \centerline{\buct@auth@titlefont\buct@auth@title} + \par\indent\buct@auth@textfont\buct@auth@text + \par\indent\buct@sign@author + \par\indent\buct@sign@supervisor }\fi \clearpage\normalsize } @@ -388,7 +383,7 @@ \ClassError{buctthesis}{Too many \protect\taskitem\space used}% {Keep \protect\taskitem\space no more than 4 times.}\fi } - \newcommand{\taskitem}{\vspace{1em}\noindent\buct@taskitem\par} + \newcommand{\taskitem}{\vspace{6pt}\noindent\buct@taskitem\par} \fi \newenvironment{bibenumerate}{% \begin{enumerate}[label={[\arabic*]},leftmargin=3em] @@ -470,7 +465,7 @@ \newcommand\buct@addengcontents[3]{% \addcontentsline{toce}{#1}{\protect\numberline{#3\@nameuse{the#1}}#2} } - \newcommand\echapter[1]{\buct@addengcontents{chapter}{#1}{\buct@toce@chapfont}} + \newcommand\echapter[1]{\buct@addengcontents{chapter}{#1}{\buct@toce@chapfont{}\buct@econtent@chapter}} \newcommand\esection[1]{\buct@addengcontents{section}{#1}{}} \newcommand\esubsection[1]{\buct@addengcontents{subsection}{#1}{}} \newcommand\esubsubsection[1]{\buct@addengcontents{subsubsection}{#1}{}} @@ -666,7 +661,7 @@ \sisetup{% list-final-separator = { 和 }, list-pair-separator = { 和 }, - range-phrase = {$\sim$}, + range-phrase = {\,$\sim$\,}, } \ifbuct@bachelor \newfloat{dfigure}{htbp}{lodf}[chapter] @@ -682,15 +677,15 @@ \AtBeginEnvironment{tabular}{\buct@floatfont} \AtBeginEnvironment{tabularx}{\buct@floatfont} \fi +\ifbuct@bachelor\relax\else \let\oldlongtable\longtable \let\endoldlongtable\endlongtable -\ifbuct@bachelor\relax\else \def\longtable{\zihao{5}\oldlongtable} \AtEndEnvironment{longtable}{\normalsize} \fi \graphicspath{{figure/}} \renewcommand{\captionfont}{\buct@float@captionfont} -\renewcommand{\captionlabelfont}{\buct@float@captionfont} +\renewcommand{\captionlabelfont}{\buct@float@labelfont} \DeclareCaptionLabelSeparator{capspace}{\quad} \captionsetup{labelsep=capspace} \captionsetup[table]{% @@ -712,7 +707,7 @@ \renewcommand{\thesubtable}{(\alph{subtable})} \renewcommand{\thetable}{\thechapter-\arabic{table}} \renewcommand{\thesubfigure}{(\alph{subfigure})} - \renewcommand{\thefigure}{\arabic{chapter}-\arabic{figure}} + \renewcommand{\thefigure}{\thechapter-\arabic{figure}} \ifbuct@bachelor \renewcommand{\thedfigure}{\thechapter-\arabic{dfigure}} \renewcommand{\theequation}{\thechapter-\arabic{equation}} @@ -722,6 +717,8 @@ \fi \renewcommand{\thelstlisting}{\thechapter-\arabic{lstlisting}} } +\DeclareRobustCommand\inlinecite{\@inlinecite} +\def\@inlinecite#1{\begingroup\let\@cite\NAT@citenum\citep{#1}\endgroup} \ifbuct@bachelor\relax\else \xpatchcmd{\dotfill}{.44em}{.3em}{}{} \renewenvironment{equation}{ @@ -770,6 +767,7 @@ \addcontentsline{toc}{chapter}{\buct@trans@title} }{} \else + \g@addto@macro\appendix{\def\buct@econtent@chapter{Appendix~}} \newenvironment{achievements}{% \cleardoublepage \chapter*{\buct@achi@title} @@ -814,7 +812,6 @@ \fi \renewcommand{\emph}[1]{\textbf{#1}} \renewcommand{\em}{\bfsong} - \newcommand{\buct@ftntcircled}[1]{% \lower 0.15em\hbox{% \tikz\draw (0pt, 0pt) circle (0.4 em) node {#1};% |