diff options
author | Karl Berry <karl@freefriends.org> | 2022-09-04 20:47:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-09-04 20:47:46 +0000 |
commit | a8ca3a0abe05d07b59ff73e2c6361c53b7979598 (patch) | |
tree | 50aadfedc94f3300ecc870aeaa3cb545bd4fe63e /Master/texmf-dist/doc | |
parent | 0fb8fb4b2b8686d65a7bc81da39de2a2bb511953 (diff) |
bithesis (4sep22)
git-svn-id: svn://tug.org/texlive/trunk@64286 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/latex/bithesis/README.md | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/bithesis/bithesis.pdf | bin | 339348 -> 818866 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/bithesis/contributing-zh.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/bithesis/dtx-style.sty | 82 |
4 files changed, 71 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/bithesis/README.md b/Master/texmf-dist/doc/latex/bithesis/README.md index 9407b05b5a8..c76d91bfdca 100644 --- a/Master/texmf-dist/doc/latex/bithesis/README.md +++ b/Master/texmf-dist/doc/latex/bithesis/README.md @@ -10,11 +10,12 @@ The current maintainer of this project is [Feng Kaiyu](https://github.com/fky201 [![Latexmk](https://badgen.net/badge/compiler/latexmk/blue)](https://mg.readthedocs.io/latexmk.html) [![License](https://badgen.net/github/license/BITNP/BIThesis?color=008080&labelColor=2b2b2b)](./LICENSE) -BIThesis is an unofficial LaTeX template set for your **undergraduate, master or doctoral thesis** as well as other academic writing here at BIT. +BIThesis is an unofficial LaTeX template set for your +**undergraduate, master or doctoral thesis** as well as other academic writing here at BIT. This project is supported by the _[Dept. of Undergraduate Academic Affairs, BIT](https://jwc.bit.edu.cn/)_ and the _[School of Computer Science and Technology, BIT](https://cs.bit.edu.cn/)_. See [Acknowledgements - Official Sponsors](https://bithesis.bitnp.net/Guide/5-Acknowledgements/Acknowledgements.html#%E5%AE%98%E6%96%B9%E8%B5%9E%E5%8A%A9-official-sponsors). -At present, `bithesis` only supports XETEX and LuaTEX engines. `bithesis` only allows `UTF-8` encoding. +At present, `bithesis` only supports XeTeX and LuaTeX engines. `bithesis` only allows `UTF-8` encoding. ## How Do I Use `bithesis`? diff --git a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf Binary files differindex cdb875f3a52..83d3151ff5b 100644 --- a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf +++ b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf diff --git a/Master/texmf-dist/doc/latex/bithesis/contributing-zh.md b/Master/texmf-dist/doc/latex/bithesis/contributing-zh.md index bbc6163d824..52a09bae99f 100644 --- a/Master/texmf-dist/doc/latex/bithesis/contributing-zh.md +++ b/Master/texmf-dist/doc/latex/bithesis/contributing-zh.md @@ -47,7 +47,7 @@ 5. 创建一个 PR,并添加相应的说明。 6. 在 PR 被合并之前请保持关注,以便进行修改。 -寻找更细致的流程请参考 +更细致的流程请参考 _[Github Help](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests)_。 [QQ chat group invitation]: https://jq.qq.com/?_wv=1027&k=KYDrmS5z diff --git a/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty b/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty index 381724b1f9f..9d2e403ad2a 100644 --- a/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty +++ b/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty @@ -26,20 +26,21 @@ %% ------------------------------------------------------------------------------ %% + + \ProvidesPackage{dtx-style} \RequirePackage{hypdoc} \RequirePackage{ifthen} -\RequirePackage{fontspec}[2017/01/20] +\RequirePackage{fontspec} \RequirePackage{amsmath} \RequirePackage{unicode-math} -\RequirePackage[UTF8,scheme=chinese,heading]{ctex} +\RequirePackage[UTF8,scheme=chinese,heading,sub3section]{ctex} \RequirePackage[ top=2.5cm, bottom=2.5cm, - left=4cm, right=2cm, + left=5cm, right=2cm, headsep=3mm]{geometry} \RequirePackage{graphicx} \RequirePackage{multirow} -\RequirePackage[ruled,vlined]{algorithm2e} \RequirePackage{wrapfig} \RequirePackage{hologo} \RequirePackage{array,longtable,booktabs} @@ -47,7 +48,6 @@ \RequirePackage{fancyhdr} \RequirePackage[dvipsnames]{xcolor} \RequirePackage{awesomebox} -\RequirePackage{etoolbox} \RequirePackage{dirtree} \RequirePackage{metalogo} \RequirePackage[tightLists=false]{markdown} @@ -56,12 +56,10 @@ \usetikzlibrary{positioning} \RequirePackage{framed} \RequirePackage{menukeys} +\RequirePackage{float} +\RequirePackage{subfig} - % 设置代码高亮 -\RequirePackage{minted} -\usemintedstyle{tango} - - % 设置列表无间隔 + % 设置列表无间隔 \usepackage{enumitem} \setlist{nosep} @@ -84,12 +82,46 @@ \newcommand{\BIThesisMacroPackage}{{\BIThesis}宏集} \newcommand{\BIThesisWiki}{{\BIThesis}在线文档} \newcommand{\BIThesisScaffold}{{\BIThesis}模板} +\newcommand{\BIThesisRelease}{{\BIThesis}模板} \newcommand{\LPPL}{{\href{https://www.latex-project.org/lppl/lppl-1-3c.txt}{\LaTeX{} Project Public License (1.3.c)}}} -\newcommand{\version}{v2.0 BirthdayCake} +\newcommand{\versionold}{v2.0 BirthdayCake} +\newcommand{\version}{v3 Summer Time} + +\ExplSyntaxOn + +\AtBeginEnvironment { bitsyntax } { + \cs_set:Npn \lparen { \textup { ( } } + \cs_set:Npn \rparen { \textup { ) } } + \char_set_catcode_active:N | + \char_set_catcode_active:N < + \char_set_catcode_active:N ( + \char_set_active_eq:NN | \orbar + \char_set_active_eq:NN < \syntaxopt@aux + \char_set_active_eq:NN ( \defaultval@aux +} + +\NewDocumentCommand \BIThesisTemplates {m} { + \str_case:nn {#1} { + {UT}{本科生毕业论文模板(undergraduate-thesis)} + {UTE}{本科生全英文专业毕业论文模板(undergraduate-thesis-en)} + {GT}{研究生学位论文模板(graduate-thesis)} + {LR}{简易使用报告模板(lab-report)} + {PT}{本科生毕业设计外文翻译模板(paper-translation)} + {PS}{北理工主题的 Beamer 模板(presentation-slide)} + {UP}{本科生毕业设计开题报告(undergraduate-proposal)} + } +} + +\def\breakablethinspace{\hskip 0.16667em\relax} + +\DeclareDocumentCommand\kvopt{mm} + {\texttt{#1\breakablethinspace=\breakablethinspace#2}} + +\ExplSyntaxOff \ctexset{ today=big, - abstractname=简介 + abstractname=简介, } \ctexset{section={ @@ -190,6 +222,7 @@ boxpos=c, showlines=false, extendedchars=true, + escapeinside = {(*}{*)}, upquote=true, tabsize=2, showtabs=false, @@ -219,16 +252,34 @@ style=lstStyleBase, frame=l, rulecolor=\color{purple}, - language=bash} + language=bash, +} \lstdefinestyle{lstStyleLaTeX}{% style=lstStyleBase, frame=l, rulecolor=\color{violet}, - language=[LaTeX]TeX} + language=[LaTeX]TeX, + emphstyle=[1]\color{teal}, +} + +\lstdefinestyle{lstStyleSyntax}{% + style=lstStyleBase, + frame=l, + rulecolor=\color{violet}, + language=[LaTeX]TeX, + emphstyle=[1]\color{teal}, +} -\lstnewenvironment{latex}{\lstset{style=lstStyleLaTeX}}{} +\lstnewenvironment{latex}[1][]{\lstset{style=lstStyleLaTeX, #1}}{} \lstnewenvironment{shell}{\lstset{style=lstStyleShell}}{} +\lstnewenvironment{bitsyntax}[1][]{\lstset{style=lstStyleSyntax, #1}}{} + +\def\orbar{\textup{\textbar}} +\def\syntaxopt#1{\textit{#1}} +\def\defaultval#1{\textbf{\textup{#1}}} +\def\syntaxopt@aux#1>{\syntaxopt{#1}} +\def\defaultval@aux#1){\defaultval{#1}} \setlist{nosep} @@ -273,6 +324,7 @@ \kern 1ex } } + \makeatother \endinput |