summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/buctthesis/doc/mycfg.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/buctthesis/doc/mycfg.sty')
-rw-r--r--macros/latex/contrib/buctthesis/doc/mycfg.sty35
1 files changed, 35 insertions, 0 deletions
diff --git a/macros/latex/contrib/buctthesis/doc/mycfg.sty b/macros/latex/contrib/buctthesis/doc/mycfg.sty
new file mode 100644
index 0000000000..5c281f6d3f
--- /dev/null
+++ b/macros/latex/contrib/buctthesis/doc/mycfg.sty
@@ -0,0 +1,35 @@
+% 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.1}
+\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}