diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9e57b86 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +*.aux +*.bbl +*.blg +*.log +*.out +*.toc +*.lot +*.lof +*.thm +*.synctex.gz +*.fdb_latexmk +*.fls +*.pdf +!main.pdf +!ructhesis.pdf diff --git a/.latexmkrc b/.latexmkrc new file mode 100644 index 0000000..cb43104 --- /dev/null +++ b/.latexmkrc @@ -0,0 +1,4 @@ +$pdf_mode = 1; +$pdflatex = 'xelatex -synctex=1 -interaction=nonstopmode %O %S'; +$recorder = 1; +$bibtex_use = 2; diff --git a/README.md b/README.md index 14b78d0..6cf4dc5 100644 --- a/README.md +++ b/README.md @@ -1,68 +1,105 @@ -# RUCThesis -##中国人民大学LaTeX论文模板 +![image](https://user-images.githubusercontent.com/11362493/144565641-926c4828-1c56-486f-94cc-4b7d14afb3c8.png) -目前支持本科、硕士(学硕+专硕)和博士 +# 中国人民大学 LaTeX 论文模板 (RUC-Thesis) -**如果已经有ructhesis.cls文件的可以直接使用。** -**目前的版本使用了[2015国标](https://github.com/ustctug/gbt-7714-2015)的参考文献样式。** -在main.tex文件下使用如下命令: +这是一个适用于中国人民大学本科、硕士(学硕+专硕)和博士学位论文的 LaTeX 模板。 -这里我们使用xelatex作为排版引擎,第一步编译main.tex文件,第二步处理参考文献,然后再编译两遍生成pdf文件。 +> 符合学校和老师的模板就是好模板,你需要仔细的考虑自己是否需要LaTeX,其实 Word 也是不错的软件。 +> 临近毕业,发邮件提问的学弟学妹越来越多了,希望大家开[issue](https://github.com/GH1995/RUC-thesis-template-for-LaTeX/issues)讨论,或者直接发PR,这样可以帮助更多的人。 -`$ xelatex main.tex` -`$ bibtex main.tex` -`$ xelatex main.tex` -`$ xelatex main.tex` +目前支持本科、硕士(学硕+专硕)和博士,排版出来的封面和下面差不多,可以在 [overleaf](https://www.overleaf.com/read/kmjxwrcjstqx) 上直接预览。 -##重要信息 -**1、编辑器要用UTF-8的编码要不然你打开是乱码。** -**2、排版引擎使用XeLaTeX,要不然会报错。** +example +## 1. 使用方法 -###必要的字体文件 +本模板使用 `XeLaTeX` 作为排版引擎,因为它对中文支持最好。 -字体 | PostScript名称 ------------- | ------------- -Times New Roman | TimesNewRomanPSMT -Arial | ArialMT -Courier New | CourierNewPSMT -宋体 | SimSun -黑体 | SimHei -仿宋 | FangSong +### 环境准备 +1. **安装 TeX 发行版**: + * **MacOS**: 推荐安装 [MacTeX](https://www.tug.org/mactex/)。 + * **Windows**: 推荐安装 [TeX Live](https://www.tug.org/texlive/) (不推荐 CTeX 套装)。 + * **Linux (Ubuntu)**: `sudo apt install texlive-full`。 +2. **安装字体**: + * 模板默认使用了 **方正小标宋简体** (FZXBSJW--GB1-0) 用于部分标题。 + * 您可能欠缺这部分字体,为此我们提供[这里(不是百度网盘)](https://ruc.lanzouo.com/inJo9xec09i)以供下载。下载后请安装到系统字体目录。 -**需要生成封皮的还需要自行下载安装** +### 编译论文 -- 方正小标宋 PostScript名称:FZXBSJW–GB1-0 +#### 方法 A:使用 latexmk (推荐) -###必要的宏包 +本项目已配置 `.latexmkrc`,支持自动化编译。如果您安装了 `latexmk`(通常包含在 TeX Live/MacTeX 中),只需在项目根目录下运行: -**全部都是TeX Live自带的** -- ctexbook -- geometry -- hyperref -- graphicx -- titletoc -- ifxetex -- ifthen -- calc -- lscape -- multicol -- color -- pstricks +```bash +latexmk +``` -###想编译模板文件和生成手册的可以执行下述代码 -生成模板文件ructhesis.cls -`$ latex ructhesis.ins` -生成手册ructhesis.pdf -`$ xelatex ructhesis.dtx` -`$ makeindex -s gind.ist -o ructhesis.ind ructhesis.idx ` -`$ makeindex -s gglo.ist -o ructhesis.gls ructhesis.glo ` -`$ xelatex ructhesis.dtx` -`$ xelatex ructhesis.dtx` +它会自动处理 `xelatex` -> `bibtex` -> `xelatex` 的依赖关系,并生成 `main.pdf`。 -###联系 -如果模板本身的问题可以上[GitHub](https://github.com/ZebinWang/ructhesis)上发篇issue。 +清理中间文件: +```bash +latexmk -c +``` -如果想贡献代码的请email我: +#### 方法 B:手动编译 +如果您习惯手动编译,请严格按照以下顺序执行命令,以确保目录和参考文献正确生成: + +```bash +xelatex main.tex +bibtex main +xelatex main.tex +xelatex main.tex +``` + +### 配置论文信息 + +打开 `main.tex` 文件,在导言区配置您的个人信息: + +```latex +\documentclass[a4paper,bachelor]{ructhesis} % 选项: bachelor, master, doctor, promaster + +... + +\title{您的论文题目} +\author{您的姓名} +\school{您的学院} +... +``` + +* **学位选项**:在 `\documentclass` 中选择 `bachelor` (本科), `master` (学硕), `promaster` (专硕), 或 `doctor` (博士)。 +* **正文内容**:正文章节放在 `chap/` 目录下,并在 `main.tex` 中通过 `\include` 引入。 + +## 2. 技术细节 + +### 核心文件 + +* **`ructhesis.cls`**: 核心文档类文件,定义了论文的整体样式、页眉页脚、标题格式等。基于 `ctexbook` 文档类开发。 +* **`ref/rucbib.bst`**: 参考文献样式文件,基于 `gbt7714-2015` 标准修改,以符合人大论文规范。 + +### 宏包与依赖 + +本模板经过优化,移除了一些过时的宏包,采用了更现代的方案: + +* **排版引擎**: 必须使用 `XeLaTeX`,以支持 UTF-8 编码和系统字体调用。 +* **图表**: 使用 `graphicx` 处理插图,`booktabs` 处理三线表。 +* **子图/子表**: 使用现代的 `subcaption` 宏包,替代了过时的 `subfigure` 和 `caption2`。 +* **字体命令**: 更新了旧式的 `\bf`, `\rm` 等命令为 `\bfseries`, `\rmfamily` 等,符合 LaTeX2e 标准。 + +### 目录结构 + +* `chap/`: 存放各章节的 `.tex` 源码。 +* `format/`: 存放摘要、致谢等固定格式页面的 `.tex` 源码。 +* `figures/`: 存放论文所需的图片文件。 +* `ref/`: 存放参考文献数据库 (`.bib`) 和样式文件 (`.bst`)。 +* `main.tex`: 主控文件,用于组织全文。 + +## 常见问题 + +* **编译报错 "Font ... not found"**: 请检查是否安装了“方正小标宋简体”等字体。 +* **参考文献显示不出来**: 请确保运行了 `bibtex` 命令(或使用了 `latexmk`),并且 `.bib` 文件中有相应条目。 +* **Overleaf 使用**: 如果在 Overleaf 上使用,请将项目的编译器设置为 `XeLaTeX`。 + +--- +![Alt](https://repobeats.axiom.co/api/embed/178d62098f91e5a8b1c3439855fa0ec5cae1f803.svg "Repobeats analytics image") diff --git a/chap/appendix_1.tex b/chap/appendix_1.tex index b64b37d..079902d 100644 --- a/chap/appendix_1.tex +++ b/chap/appendix_1.tex @@ -1,3 +1,5 @@ -\chapter{如何正确安装\LaTeX\ } +\chapter{无俗念} -Noun–verb dependencies in various languages and their biological ana- logues. Part A) shows the sentence “Dick saw Jane help Mary draw pictures” trans- lated grammatically into German and Dutch. That is, the words in the sentence are rearranged to reflect the rules of grammar in these two languages, but the sentence is not translated per se. As shown, the English version of the sentence has a rela- tively simple dependency structure between the nouns and verbs that can be modeled using regular grammars. In contrast, German and Dutch require more complicated grammatical models . Part B) shows the biological analogue of the three sen- tences in Part A). Typically, restriction sites can be modeled using regular grammars, whereas complex DNA secondary structures require context–free or context–sensitive grammars . In the first example, the arches are used to represent a “must be followed by” dependency. In the second two examples, they represent a “must be complementary to” dependency. +春游浩荡,是年年寒食,梨花时节。白锦无纹香烂漫,玉树琼苞堆雪。静夜沉沉,浮光霭霭,冷浸溶溶月。人间天上,烂银霞照通彻。 + +浑似姑射真人,天姿灵秀,意气殊高洁。万蕊参差谁信道,不与群芳同列。浩气清英,仙才卓荦,下土难分别。瑶台归去,洞天方看清绝。 diff --git a/chap/chapter1.tex b/chap/chapter1.tex index 8adb00f..836ce55 100644 --- a/chap/chapter1.tex +++ b/chap/chapter1.tex @@ -1,4 +1,6 @@ \chapter{\LaTeX{} 介绍} +\epigraph{道者,万物之奥,善人之宝,不善人之所保。美言可以市尊,美行可以加人。人之不善,何弃之有?故立天子,置三公,虽有拱璧以先驷马,不如坐进此道。古之所以贵此道者何?不曰:求以得,有罪以免邪?故为天下贵。}{老子} + %\section{安装\LaTeX{} } %\subsection{Mac OS X} %\begin{figure}[htbp] @@ -9,35 +11,36 @@ \chapter{\LaTeX{} 介绍} \LaTeX\ 使用\TeX\ 作为它的格式化引擎,当前的版本是\LaTeX 2ε。 \begin{figure}[htbp] -\centering -\subfigure[国际象棋]{ - \label{fig:mini:subfig:a} %% label for first subfigure - \begin{minipage}[b]{0.5\textwidth} - \centering - \fenboard{% - r5k1/% - 1b1p1ppp/% - p7/% - 1p1Q4/% - 2p1r3/% - PP4Pq/% - BBP2b1P/% - R4R1K w - - 0 20} - \mbox{}\showboard - \end{minipage}}% -\subfigure[化学式]{ - \label{fig:mini:subfig:b} %% label for second subfigure - \begin{minipage}[b]{0.5\textwidth} - \centering - \chemfig{ - H_3C-[:72]{\color{blue}N}*5(- - *6(-(={\color{red}O})- - {\color{blue}N}(-CH_3)- - (={\color{red}O})- - {\color{blue}N}(-CH_3)-=)-- - {\color{blue}N}=-)} - \end{minipage}} -\caption{\LaTeX\ 绘图示例} -\label{fig:mini:subfig} %% label for entire figure + \centering + \begin{subfigure}[b]{0.45\textwidth} + \centering + \fenboard{% + r5k1/% + 1b1p1ppp/% + p7/% + 1p1Q4/% + 2p1r3/% + PP4Pq/% + BBP2b1P/% + R4R1K w - - 0 20} + \mbox{}\showboard + \caption{国际象棋} + \label{fig:mini:subfig:a} %% label for first subfigure + \end{subfigure} + \hfill + \begin{subfigure}[b]{0.45\textwidth} + \centering + \chemfig{ + H_3C-[:72]{\color{blue}N}*5(- + *6(-(={\color{red}O})- + {\color{blue}N}(-CH_3)- + (={\color{red}O})- + {\color{blue}N}(-CH_3)-=)-- + {\color{blue}N}=-)} + \caption{化学式} + \label{fig:mini:subfig:b} %% label for second subfigure + \end{subfigure} +\caption{\LaTeX\ 绘图示例} + \label{fig:mini:subfig} %% label for entire figure \end{figure} diff --git a/chap/chapter2.tex b/chap/chapter2.tex index 8c20fbc..328cd78 100644 --- a/chap/chapter2.tex +++ b/chap/chapter2.tex @@ -1,111 +1,113 @@ \chapter{\RUCThesis\ 介绍} +\epigraph{揭谛揭谛,波罗揭谛,波罗僧揭谛,菩提萨婆诃。}{般若波罗蜜多心经} + \section{必要的宏包} 本模板中包含的宏包如下表所示: \begin{table}[htb] - \centering - \begin{minipage}[t]{0.8\linewidth} - \caption[必要宏包]{本模板中包含的宏包,当然这些必须安装。其实这些在你的\LaTeX\ 里面已经有了。其实这还是一个简单三线表的例子,其实这还是一个长表格标题的例子,当然还是一个表格中插脚注的例子} - \label{tab:template-files} - \begin{tabular*}{\linewidth}{cccccc} - \toprule[1.5pt] - \multicolumn{6}{c}{\sf 宏包文件}\\ \midrule[1pt] - ctexbook & geometry & hyperref & graphicx\footnote{插图宏包} & titletoc & ifxetex \\ - ifthen & calc & lscape\footnote{页面横向放置宏包} & multicol & color & pstricks\\ - \bottomrule[1.5pt] - \end{tabular*} - \end{minipage} + \centering + \begin{minipage}[t]{0.8\linewidth} + \caption[必要宏包]{本模板中包含的宏包,当然这些必须安装。其实这些在你的\LaTeX\ 里面已经有了。其实这还是一个简单三线表的例子,其实这还是一个长表格标题的例子,当然还是一个表格中插脚注的例子} + \label{tab:template-files} + \begin{tabular*}{\linewidth}{cccccc} + \toprule[1.5pt] + \multicolumn{6}{c}{\sffamily 宏包文件}\\ \midrule[1pt] + ctexbook & geometry & hyperref & graphicx\footnote{插图宏包} & titletoc & ifxetex \\ + ifthen & calc & lscape\footnote{页面横向放置宏包} & multicol & color & pstricks\\ + \bottomrule[1.5pt] + \end{tabular*} + \end{minipage} \end{table} \section{必要的字体} -字体命令为{\tt\textbackslash rm}衬线字{\tt\textbackslash sf}非衬线字{\tt\textbackslash tt}等线体。\par +字体命令为\texttt{\textbackslash rmfamily}衬线字\texttt{\textbackslash sffamily}非衬线字\texttt{\textbackslash ttfamily}等线体。\par 本模板中包含的字体如下表所示: \begin{longtable}[c]{c*{2}{l}} -\caption{必要的字体}\label{tab:performance}\\ -\toprule[1.5pt] -字体 & PostScript名称\\\midrule[1pt] -\endfirsthead -\caption[]{必要的字体(续)}\\ -\toprule[1.5pt] - 字体 & PostScript名称\\\midrule[1pt] -\endhead -\hline -\multicolumn{2}{r}{续下页} -\endfoot -\endlastfoot - Times New Roman & TimesNewRomanPSMT \\ -Arial & ArialMT \\ -Courier New & CourierNewPSMT\\ - 宋体 & SimSun \\ -黑体 & SimHei \\ - 仿宋 & FangSong \\ - 方正小标宋\footnotemark & FZXBSJW–GB1-0 \\ -\bottomrule[1.5pt] + \caption{必要的字体}\label{tab:performance}\\ + \toprule[1.5pt] + 字体 & PostScript名称\\\midrule[1pt] + \endfirsthead + \caption[]{必要的字体(续)}\\ + \toprule[1.5pt] + 字体 & PostScript名称\\\midrule[1pt] + \endhead + \hline + \multicolumn{2}{r}{续下页} + \endfoot + \endlastfoot + Times New Roman & TimesNewRomanPSMT \\ + Arial & ArialMT \\ + Courier New & CourierNewPSMT\\ + 宋体 & SimSun \\ + 黑体 & SimHei \\ + 仿宋 & FangSong \\ + 方正小标宋\footnotemark & FZXBSJW–GB1-0 \\ + \bottomrule[1.5pt] \end{longtable} -\footnotetext{只有在制作封皮的{\tt cover.tex}中用到。} +\footnotetext{只有在制作封皮的{\ttfamily cover.tex}中用到。} \section{编译源文件} 如果已经有ructhesis.cls文件的可以直接使用。 因为2015年12月正式实施了新的参考文献著录国标,新样式还在开发,先借用了一个(可能会报错)。 \par 这里我们使用xelatex作为引擎,在main.tex文件下使用如下命令:\\ -{\tt +{\ttfamily \$ xelatex main.tex\\ \$ bibtex main.tex\\ \$ xelatex main.tex\\ \$ xelatex main.tex\\} 想编译模板文件和生成手册的可以执行下述代码:\\ -生成模板文件{\tt ructhesis.cls}\\ -{\tt\$ latex ructhesis.ins}\\ -生成手册{\tt ructhesis.pdf\\ +生成模板文件{\ttfamily ructhesis.cls}\\ +{\ttfamily\$ latex ructhesis.ins}\\ +生成手册{\ttfamily ructhesis.pdf\\ \$ xelatex ructhesis.dtx\\ \$ makeindex -s gind.ist -o ructhesis.ind ructhesis.idx\\ \$ makeindex -s gglo.ist -o ructhesis.gls ructhesis.glo\\ \$ xelatex ructhesis.dtx\\ \$ xelatex ructhesis.dtx}\par -下图的文件是完整的{\tt RUCThesis}文件,同时下图也是横放大表格或者图片的例子。 +下图的文件是完整的{\ttfamily RUCThesis}文件,同时下图也是横放大表格或者图片的例子。 \begin{landscape} -\begin{figure}[htbp] -\centering -\tikzstyle{every node}=[anchor=west] -\begin{tikzpicture}[% - grow via three points={one child at (0.5,-0.7) and - two children at (0.5,-0.7) and (0.5,-1.4)}, - edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}] - \node {\RUCThesis\ } -child { node {chap} - child { node {chapter1.tex\quad \% 章节文件}} - child { node {...}} - child { node {appendix\_{}1.tex\quad \% 附录}}} -child [missing] {} -child [missing] {} -child [missing] {} -child { node {cover.tex\quad \% 封面文件}} -child { node {figures} - child { node {logo.pdf\quad \% 图像}} - child { node {...}}} -child [missing] {} -child [missing] {} -child { node {format} - child { node {acknowledge.tex\quad \% 致谢}} - child { node {authorization.tex\quad \% 授权书影印件}} - child { node {cabstractpage.tex\quad \% 中文摘要}} - child { node {eabstractpage.tex\quad \% 英文摘要}} - child { node {Originality.tex\quad \% 独创性声明}}} -child [missing] {} -child [missing] {} -child [missing] {} -child [missing] {} -child [missing] {} -child { node {main.tex\quad \% 主文件}} -child { node {ref} - child { node {ruc.bst\quad \% 参考文献样式}} - child { node {yourbib.bib\quad \% 参考文献数据库}}} -child [missing] {} -child [missing] {} -child { node {ructhesis.cls\quad \% \RUCThesis\ 文档类}}; -\end{tikzpicture} -\caption{\RUCThesis\ 文件目录} -\end{figure} + \begin{figure}[htbp] + \centering + \tikzstyle{every node}=[anchor=west] + \begin{tikzpicture}[% + grow via three points={one child at (0.5,-0.7) and + two children at (0.5,-0.7) and (0.5,-1.4)}, + edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}] + \node {\RUCThesis\ } + child { node {chap} + child { node {chapter1.tex\quad \% 章节文件}} + child { node {...}} + child { node {appendix\_{}1.tex\quad \% 附录}}} + child [missing] {} + child [missing] {} + child [missing] {} + child { node {cover.tex\quad \% 封面文件}} + child { node {figures} + child { node {logo.pdf\quad \% 图像}} + child { node {...}}} + child [missing] {} + child [missing] {} + child { node {format} + child { node {acknowledge.tex\quad \% 致谢}} + child { node {authorization.tex\quad \% 授权书影印件}} + child { node {cabstractpage.tex\quad \% 中文摘要}} + child { node {eabstractpage.tex\quad \% 英文摘要}} + child { node {Originality.tex\quad \% 独创性声明}}} + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child { node {main.tex\quad \% 主文件}} + child { node {ref} + child { node {ruc.bst\quad \% 参考文献样式}} + child { node {yourbib.bib\quad \% 参考文献数据库}}} + child [missing] {} + child [missing] {} + child { node {ructhesis.cls\quad \% \RUCThesis\ 文档类}}; + \end{tikzpicture} + \caption{\RUCThesis\ 文件目录} + \end{figure} \end{landscape} diff --git a/chap/chapter3.tex b/chap/chapter3.tex index 6b066a7..ff76c02 100644 --- a/chap/chapter3.tex +++ b/chap/chapter3.tex @@ -1,40 +1,43 @@ \chapter{使用方法} -\section{{\tt main.tex}文件} -将文档类选择{\tt ructhesis},文档的选项有{\tt bachelor、master、promaster、doctor}代表不同的学位论文排版方式。\par + +\epigraph{那美好的仗我已经打过了,当跑的路我已经跑尽了,所信的道我已经守住了。 从此以后,有公义的冠冕为我存留,就是按着公义审判的主到了那日要赐给我的;不但赐给我,也赐给凡爱慕他显现的人。}{提摩太后书} + +\section{\texttt{main.tex}文件} +将文档类选择\texttt{ructhesis},文档的选项有{\tt bachelor、master、promaster、doctor}代表不同的学位论文排版方式。\par 在导言区填写扉页相关信息和摘要关键词(需要在关键词间按照本科或者研究生的规定输入空格)。\par \begin{longtable}[c]{ll} -\caption{命令(环境)解释}\label{tab:performance}\\ -\toprule[1.5pt] -命令(环境) & 意义\\\midrule[1pt] -\endfirsthead -\caption[]{命令(环境)解释(续)}\\ -\toprule[1.5pt] - 命令(环境) & 意义\\\midrule[1pt] -\endhead -\hline -\multicolumn{2}{r}{续下页} -\endfoot -\endlastfoot -{\tt \textbackslash maketitle} & 插入扉页 \\ -{\tt \textbackslash originality} & 插入独创性声明 \\ -{\tt \textbackslash authorization} & 插入授权书\\ -{\tt \textbackslash tableofcontents} & 正文目录 \\ -{\tt \textbackslash listoffigures} & 插图目录 \\ -{\tt \textbackslash listoftables} & 表格目录 \\ -{\tt \textbackslash autograph} & 本科签名\footnote{插入签名,在普通章节文件中插入无限制,但在\tt main.tex\rm 文件插入时被插入的章节不能使用\tt\textbackslash include\rm 命令,需使用\tt\textbackslash input\rm 命令。} \\ -{\tt \textbackslash appendix} & 附录 \\ -{\tt \textbackslash bibliographystyle} & 参考文献样式 \\ -{\tt \textbackslash bibliography} &参考文献数据库 \\ -{\tt \textbackslash addcontentsline} & 加入目录 \\ -{\tt abstractzh} & 中文摘要环境 \\ -{\tt abstracten} & 英文摘要环境 \\ -{\tt acknowledge} & 致谢环境 \\ -\bottomrule[1.5pt] + \caption{命令(环境)解释}\label{tab:performance}\\ + \toprule[1.5pt] + 命令(环境) & 意义\\\midrule[1pt] + \endfirsthead + \caption[]{命令(环境)解释(续)}\\ + \toprule[1.5pt] + 命令(环境) & 意义\\\midrule[1pt] + \endhead + \hline + \multicolumn{2}{r}{续下页} + \endfoot + \endlastfoot + {\tt \textbackslash maketitle} & 插入扉页 \\ + {\tt \textbackslash originality} & 插入独创性声明 \\ + {\tt \textbackslash authorization} & 插入授权书\\ + {\tt \textbackslash tableofcontents} & 正文目录 \\ + {\tt \textbackslash listoffigures} & 插图目录 \\ + {\tt \textbackslash listoftables} & 表格目录 \\ + {\tt \textbackslash autograph} & 本科签名\footnote{插入签名,在普通章节文件中插入无限制,但在\tt main.tex\rm 文件插入时被插入的章节不能使用\tt\textbackslash include\rm 命令,需使用\tt\textbackslash input\rm 命令。} \\ + {\tt \textbackslash appendix} & 附录 \\ + {\tt \textbackslash bibliographystyle} & 参考文献样式 \\ + {\tt \textbackslash bibliography} &参考文献数据库 \\ + {\tt \textbackslash addcontentsline} & 加入目录 \\ + {\tt abstractzh} & 中文摘要环境 \\ + {\tt abstracten} & 英文摘要环境 \\ + {\tt acknowledge} & 致谢环境 \\ + \bottomrule[1.5pt] \end{longtable} -\section{{\tt cover.tex}文件} -在{\tt cover.tex}文件中,可以有博士:doctor,学硕:master,专硕:promaster,本科:bachelor,这几个选项。还有shuji选项用于输出书脊。其中{\tt \textbackslash cover}命令用来生成封皮。在有shuji选项的时候可以利用{\tt \textbackslash covertitle}命令制定书脊文字。需要设置纸张高度为两张A4纸宽度(420mm)再加书脊的宽度,100张A4纸厚度约为1cm。具体的各个封皮的配色方案和样式(无图中虚线)如下图所示: +\section{\texttt{cover.tex}文件} +在\texttt{cover.tex}文件中,可以有博士:doctor,学硕:master,专硕:promaster,本科:bachelor,这几个选项。还有shuji选项用于输出书脊。其中{\tt \textbackslash cover}命令用来生成封皮。在有shuji选项的时候可以利用{\tt \textbackslash covertitle}命令制定书脊文字。需要设置纸张高度为两张A4纸宽度(420mm)再加书脊的宽度,100张A4纸厚度约为1cm。具体的各个封皮的配色方案和样式(无图中虚线)如下图所示: \begin{figure}[htbp] -\centering\includegraphics[width=14cm,height=9.7cm]{figures/coverpic.pdf} -\caption[cover示意图]{cover示意图} -\end{figure} \ No newline at end of file + \centering\includegraphics[width=14cm,height=9.7cm]{figures/coverpic.pdf} + \caption[cover示意图]{cover示意图} +\end{figure} diff --git a/chap/chapter4.tex b/chap/chapter4.tex index 2839f27..6f4efbe 100644 --- a/chap/chapter4.tex +++ b/chap/chapter4.tex @@ -1,71 +1,76 @@ \chapter{一些例子} + +\epigraph{主不在乎}{飞面神教} + \section{各种例子} \subsection{插图表格} \begin{figure}[htbp] -\centering\includegraphics[width=5cm,height=1.32cm]{figures/logo3.pdf} -\caption[中英校名]{中英校名} + \centering\includegraphics[width=5cm,height=1.32cm]{figures/logo3.pdf} + \caption[中英校名]{中英校名} \end{figure} \begin{table}[htbp] -\noindent\begin{minipage}{0.5\textwidth} -\centering -\caption{并排子表格} -\label{tab:parallel1} -\begin{tabular}{p{2cm}p{2cm}} -\toprule[1.5pt] -姓名 & 性别 \\\midrule[1pt] -李狗蛋 & 女 \\\bottomrule[1.5pt] -\end{tabular} -\end{minipage} -\begin{minipage}{0.5\textwidth} -\centering -\caption{并排子表格} -\label{tab:parallel2} -\begin{tabular}{p{2cm}p{2cm}} -\toprule[1.5pt] -姓名 & 性别 \\\midrule[1pt] -张狗蛋 & 女 \\\bottomrule[1.5pt] -\end{tabular} -\end{minipage} + \noindent\begin{minipage}{0.5\textwidth} + \centering + \caption{并排子表格} + \label{tab:parallel1} + \begin{tabular}{p{2cm}p{2cm}} + \toprule[1.5pt] + 姓名 & 性别 \\\midrule[1pt] + 李狗蛋 & 女 \\\bottomrule[1.5pt] + \end{tabular} + \end{minipage} + \begin{minipage}{0.5\textwidth} + \centering + \caption{并排子表格} + \label{tab:parallel2} + \begin{tabular}{p{2cm}p{2cm}} + \toprule[1.5pt] + 姓名 & 性别 \\\midrule[1pt] + 张狗蛋 & 女 \\\bottomrule[1.5pt] + \end{tabular} + \end{minipage} \end{table} \begin{table}[htbp] -\centering -\caption{并排子表格} -\label{tab:subtable} -\subtable[第一个子表格] -{ -\begin{tabular}{p{2cm}p{2cm}} -\toprule[1.5pt] -姓名 & 性别 \\\midrule[1pt] -田狗蛋 & 男 \\\bottomrule[1.5pt] -\end{tabular} -} -\hskip2cm -\subtable[第二个子表格] -{ -\begin{tabular}{p{2cm}p{2cm}} -\toprule[1.5pt] -姓名 & 性别 \\\midrule[1pt] -李狗蛋 & 女 \\\bottomrule[1.5pt] -\end{tabular} -} + \centering + \caption{并排子表格} + \label{tab:subtable} + \begin{subtable}[t]{0.4\textwidth} + \centering + \caption{第一个子表格} + \begin{tabular}{p{2cm}p{2cm}} + \toprule[1.5pt] + 姓名 & 性别 \\\midrule[1pt] + 田狗蛋 & 男 \\\bottomrule[1.5pt] + \end{tabular} + \end{subtable} + \hfill + \begin{subtable}[t]{0.4\textwidth} + \centering + \caption{第二个子表格} + \begin{tabular}{p{2cm}p{2cm}} + \toprule[1.5pt] + 姓名 & 性别 \\\midrule[1pt] + 李狗蛋 & 女 \\\bottomrule[1.5pt] + \end{tabular} + \end{subtable} \end{table} \subsection{数学环境} 下面是几个数学公式的例子:\par \begin{equation} -\begin{aligned} -P\{S_n \leq t\} &= \int_{-\infty}^{+\infty}f_{S_n}dt \notag \\ + \begin{aligned} + P\{S_n \leq t\} &= \int_{-\infty}^{+\infty}f_{S_n}dt \notag \\ &= \int_0^t\frac{\lambda(\lambda u)^{n-1}}{(n-1)!}e^{-\lambda u}du \\ &\xlongequal{令 \lambda u=x} \frac{1}{(n-1)!}\int_0^{\lambda t}x^{n-1}e^{-x}dx\\ &=\frac{-1}{(n-1)!}(e^{-x}x^{n-1}{\Big|}_0^{\lambda t}-\int_0^{\lambda t}e^{-x}dx^{n-1})\\ &=\frac{-1}{(n-1)!}e^{-x}x^{n-1}{\Big|}_0^{\lambda t}+\frac{1}{(n-2)!}\int_0^{\lambda t}e^{-x}x^{n-2}dx -\end{aligned} + \end{aligned} \end{equation}\par 再来几个: \begin{equation} -\begin{aligned} -\lambda &=\left (1+\frac{\left(\frac{\bar{X}-\bar{Y}}{\sqrt{((\frac{1}{n}+\frac{1}{m})\sigma^2)}}\right)^2}{\left(\sqrt{\frac{\sum\limits_{i=1}^n(X_i-\bar{X})^2+\sum\limits_{i=1}^m(Y_i-\bar{Y})^2}{(m+n)\sigma^2}}\right)^2(m+n-2)}\right)^{\frac{n+m}{2}} \\ \notag + \begin{aligned} + \lambda &=\left (1+\frac{\left(\frac{\bar{X}-\bar{Y}}{\sqrt{((\frac{1}{n}+\frac{1}{m})\sigma^2)}}\right)^2}{\left(\sqrt{\frac{\sum\limits_{i=1}^n(X_i-\bar{X})^2+\sum\limits_{i=1}^m(Y_i-\bar{Y})^2}{(m+n)\sigma^2}}\right)^2(m+n-2)}\right)^{\frac{n+m}{2}} \\ \notag &=\left(1+\frac{T^2}{n+m-2}\right)^{\frac{n+m}{2}}\\ - 其中\quad T^2 &=\left(\frac{\frac{\bar{X}-\bar{Y}}{\sqrt{((\frac{1}{n}+\frac{1}{m})\sigma^2)}}}{{\sqrt{\frac{\sum\limits_{i=1}^n(X_i-\bar{X})^2+\sum\limits_{i=1}^m(Y_i-\bar{Y})^2}{(m+n)\sigma^2}}}}\right)^2 -\end{aligned} -\end{equation} \ No newline at end of file + 其中\quad T^2 &=\left(\frac{\frac{\bar{X}-\bar{Y}}{\sqrt{((\frac{1}{n}+\frac{1}{m})\sigma^2)}}}{{\sqrt{\frac{\sum\limits_{i=1}^n(X_i-\bar{X})^2+\sum\limits_{i=1}^m(Y_i-\bar{Y})^2}{(m+n)\sigma^2}}}}\right)^2 + \end{aligned} +\end{equation} diff --git a/cover.pdf b/cover.pdf deleted file mode 100644 index 7891734..0000000 Binary files a/cover.pdf and /dev/null differ diff --git a/cover.tex b/cover.tex index 7ef88f8..19db465 100644 --- a/cover.tex +++ b/cover.tex @@ -6,7 +6,7 @@ %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode -%需要自行安装方正小标宋字体FZXiaoBiaoSong-B05S +%需要自行安装方正小标宋字体FZXiaoBiaoSong-B05S,这个字体很难找 %博士:doctor,学硕:master,专硕:promaster,本科:bachelor。 \documentclass[baclor,shuji]{ructhesis}%选择学位类型,如需书脊在选项中加入“shuji” @@ -16,9 +16,9 @@ %将封面信息补全,相关专业名称过长的请在文字前添加命令\ziju{-0.15} \title{中国人民大学\LaTeX{} 论文模板}%论文题名,这里如z果需要打印书脊英文字母之间要有空格 \etitle{\LaTeX{} template of Renmin university of China}%英文题目 -\author{许白黑}%作者 -\advisor{×××}%指导老师 -\date{2015年12月11日} +\author{丘处机}%作者 +\advisor{王重阳}%指导老师 +\date{2022年06月11日} \covertitle{中\\国\\人\\民\\大\\学\\L\\a\\T\\e\\X\\论\\文\\模\\板}%写在书脊上的题目,字与字中间用“\\”隔开 \cover -\end{document} +\end{document} diff --git a/example/bachelor.pdf b/example/bachelor.pdf deleted file mode 100644 index a75c7b4..0000000 Binary files a/example/bachelor.pdf and /dev/null differ diff --git a/example/doctor.pdf b/example/doctor.pdf deleted file mode 100644 index 63a55a3..0000000 Binary files a/example/doctor.pdf and /dev/null differ diff --git a/example/master.pdf b/example/master.pdf deleted file mode 100644 index ae6466a..0000000 Binary files a/example/master.pdf and /dev/null differ diff --git a/figures/Snipaste_2020-06-17_03-55-47.png b/figures/Snipaste_2020-06-17_03-55-47.png new file mode 100644 index 0000000..fba78ec Binary files /dev/null and b/figures/Snipaste_2020-06-17_03-55-47.png differ diff --git a/format/acknowledge.tex b/format/acknowledge.tex index 9d2baec..38dd896 100644 --- a/format/acknowledge.tex +++ b/format/acknowledge.tex @@ -1,3 +1,13 @@ \begin{acknowledge}%致谢 -感谢 -\end{acknowledge} \ No newline at end of file + +那末,德国解放的实际可能性到底在哪里呢? + 答:就在于形成一个被彻底的锁链束缚着的阶级,即形成一个非市民社会阶级的市民社会阶级,一个表明一切等级解体的等级;一个由于自己受的普遍苦难而具有普遍性质的领域,这个阶级并不要求享有任何一种特殊权利,因为它的痛苦不是特殊的无权,而是一般无权,它不能再求助于历史权利,而只能求助于人权,它不是同德国国家制度的后果发生片面矛盾,而是同它的前提发生全面矛盾,最后,它是一个若不从其它一切社会领域解放出来并同时解放其它一切社会领域,就不能解放自己的领域,总之是这样一个领域,它本身表现了人的完全丧失,并因而只有通过人的完全恢复才能恢复自己。这个社会解体的结果,作为一个特殊的等级来说,就是无产阶级。 + 德国无产阶级是随着刚刚着手为自己开辟道路的工业的发展而形成起来的;因为组成无产阶级的不是自发产生的而是人工制造的贫民,不是在社会的重担下机械地压出来的而是由于社会的急剧解体过程,特别是由于中间等级的解体而产生的群众,不言而喻,自发产生的贫民和基督教德意志的农奴等级也在不断地-虽然是逐渐地-充实无产阶级的队伍。 + 无产阶级宣告现存世界制度的解体,只不过是揭示自己本身存在的秘密,因为它就是这个世界制度的实际解体。无产阶级要求否定私有财产,只不过是把社会已经提升为无产阶级的原则的东西,把未经无产阶级的协助,作为社会的否定结果而体现在它的身上,即无产阶级身上的东西提升为社会的原则。无产阶级对正在形成的世界所享有的权利和德国国王对已经形成的世界所享有的权利是一样的。德国国王把人民称为自己的人民,正像他把马叫作自己的马一样。国王宣布人民是他的私有财产,只不过表明私有财产的所有者就是国王这样一个事实。 + 哲学把无产阶级当做是自己的物质武器,同样地,无产阶级也把哲学当作自己的精神武器;思想的闪电一旦真正射入这块没有触动过的人民园地,德国人就会解放为人。 + +根据上述一切,可以得出如下的结论: + 德国唯一实际可能的解放是从宣布人是人的最高本质这个理论出发的解放。在德国,只有从对中世纪的部分胜利解放出来,才能从中世纪得到解放。在德国,不消灭一切奴役制,任何一种奴役制都不可能消灭。彻底的德国不从根本上开始进行革命,就不可能完成革命。德国人的解放就是人的解放。这个解放的头脑是哲学,它的心脏是无产阶级。哲学不消灭无产阶级,就不可能成为现实;无产阶级不把哲学变成现实,就不可能消灭自己。 + +一切内在条件一旦成熟,德国的复活日就会由高卢雄鸡的高鸣来宣布。 +\end{acknowledge} diff --git a/format/cabstractpage.tex b/format/cabstractpage.tex index 923af59..8a4b99e 100644 --- a/format/cabstractpage.tex +++ b/format/cabstractpage.tex @@ -1,4 +1,4 @@ % the abstract \begin{abstractzh} -RUCThesis 是根据中国人民大学《本科论文指导手册》和《研究生学位论文及其摘要的撰写和印制要求》而制作的 \LaTeX\ 论文模板。 -\end{abstractzh} \ No newline at end of file +是故乱国之俗:其学者,则称先王之道以籍仁义,盛容服而饰辩说,以疑当世之法,而贰人主之心。其言谈者,为设诈称,借于外力,以成其私,而遗社稷之利。其带剑者,聚徒属,立节操,以显其名,而犯五官之禁。其患御者,积于私门,尽货赂,而用重人之谒,退汗马之劳。其商工之民,修治苦窳之器聚沸靡之财,蓄积待时,而侔农夫之利。此五者,邦之蠹也。人主不除此五蠹之民,不养耿介之士,则海内虽有破亡之国,削灭之朝,亦勿怪矣。 +\end{abstractzh} diff --git a/format/eabstractpage.tex b/format/eabstractpage.tex index 57810d0..2255f02 100644 --- a/format/eabstractpage.tex +++ b/format/eabstractpage.tex @@ -1,4 +1,10 @@ % the abstract \begin{abstracten} -This is an English Abstract. + Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. + + Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. + + But, in a larger sense, we can not dedicate—we can not consecrate—we can not hallow—this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here + + dedicated to the great task remaining before us—that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion—that we here highly resolve that these dead shall not have died in vain—that this nation, under God, shall have a new birth of freedom—and that government of the people, by the people, for the people, shall not perish from the earth. \end{abstracten} diff --git a/main.pdf b/main.pdf index 974d63f..457a14d 100644 Binary files a/main.pdf and b/main.pdf differ diff --git a/main.tex b/main.tex index 7d84e8d..5b60275 100644 --- a/main.tex +++ b/main.tex @@ -10,43 +10,43 @@ %自添宏包 \usepackage{skak}%国际象棋 -\usepackage{subfigure}%子图http://www.ctex.org/documents/latex/graphics/node111.html \usepackage{chemfig}%化学式 +\usepackage{epigraph} \usetikzlibrary{trees} -%将封面信息补全,相关专业名称过长的请在文字前添加命令\ziju{-0.15} +%将封面信息补全 + %文头 \sign{中国人民大学本科毕业论文} %\sign{硕士学位论文} %\sign{博士学位论文} +% 以下信息本科研究生都需要补全 +\title{挑灯看剑,笑傲江湖} %论文题名,论文的正标题 +\author{令狐冲} %论文作者姓名 +\school{华山派} %论文作者所在学院的全称 +\field{\ 剑宗系调参专业} %论文作者所学专业的全称;相关专业名称过长的请在文字前添加命令\ziju{-0.15} +\studentid{2020202000} %论文作者的学号 +\advisor{岳不群} %指导老师的亲笔签名 +\date{成化五年} %论文小组评阅或答辩日期 -%以下信息本科研究生都需要补全 -\title{中国人民大学LaTeX模板}%论文题名 -\author{许白黑}%作者 -\school{}%学院 -\field{\ }%专业 -\studentid{2012202000}%学号 -\advisor{}%指导老师 -\date{2015年12月11日} - - -%以下本科填写 -\grade{}%年级 -\score{4.0}%成绩 -\thesiscode{论文编码:RUC-BK-专业代码}%论文编码 -\subtitle{}%论文副题名,没有不填写 +% 以下本科填写 +\grade{} %论文作者所在年级,如:2014级。 +\score{4.0} %由学院毕业论文评审小组或学院毕业论文答辩委员会最终确认的毕业论文成绩 +\thesiscode{论文编码:RUC-BK-专业代码-学号} %论文编码由学校代码、类别代码、专业代码、学号组成,专业代码详见教务处网站文件下载区。例如:RUC-BK-050101-2014201237。 +\subtitle{} %本项目为任选项目,指论文的副标题,即对论文题名的解释或补充说明 %以下研究生填写 -\etitle{LaTeX template of Renmin university of China}%英文题目 +\etitle{How to make a lot of money}%英文题目 \keywords{\TeX{}}%论文主题词 -%摘要关键词 -\keywordzh{中文摘要关键词}%中文摘要关键词 -\keyworden{English\qquad template}%英文摘要关键词 + +%摘要关键词:本科研究生都需要填写! +\keywordzh{中文摘要关键词} %中文摘要关键词,词间间隔3格,用{ }{ }{ }实现,方法不唯一 +\keyworden{English\qquad template} %外文摘要关键词,互相之间间隔3格 % @@ -56,9 +56,9 @@ \maketitle %独创性声明 -\originality +%\originality %本科不需要 %授权书在这插入 -\authorization{figures/shouquan.png} +%\authorization{figures/shouquan.png} %本科不需要 %中文摘要 \include{format/cabstractpage} %英文摘要 @@ -82,11 +82,10 @@ \include{chap/chapter1} \include{chap/chapter2} \include{chap/chapter3} -\input{chap/chapter4}%要插入本科签名的最后一个章节,插入命令使用\input{} +\input{chap/chapter4} %要插入本科签名的最后一个章节,插入命令使用\input{} %本科签名 -%\autograph - +\autograph %参考文献 \bibliographystyle{ref/rucbib} @@ -102,12 +101,4 @@ %致谢 \include{format/acknowledge} - - -\end{document} - - - - - - +\end{document} diff --git a/ructhesis.cls b/ructhesis.cls index 9a128d5..c400ed4 100644 --- a/ructhesis.cls +++ b/ructhesis.cls @@ -5,27 +5,27 @@ %% The original source files were: %% %% ructhesis.dtx (with options: `cls') -%% Copyright (C) 2014--2016 Zebin Wang -%% -------------------------------------------------------------------------- +%% Copyright (C) 2014--2020 Zebin Wang +%% -------------------------------------------------------------------------- %% -%% This work 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. This version of this license is in -%% http://www.latex-project.org/lppl/lppl-1-3c.txt -%% and 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 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. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and 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'. +%% This work has the LPPL maintenance status `maintained'. %% -%% The Current Maintainers of this work is Zebin Wang. +%% The Current Maintainers of this work is Zebin Wang. %% -%% This work consists of the files RUCThesis.dtx and RUCThesis.ins -%% and the derived file RUCThesis.cls. +%% This work consists of the files RUCThesis.dtx and RUCThesis.ins +%% and the derived file RUCThesis.cls. %% -%% -------------------------------------------------------------------------- +%% -------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ructhesis}[2015/12/01 v1.0.0] \newif\ifruc@bachelor @@ -71,7 +71,7 @@ \def\cabstractpagesign{摘要} \def\eabstractpagesign{Abstract} \def\acknowledgesign{致谢} -\newcommand{\RUCThesis}{{\tt R\kern-.107em\lower.5ex\hbox{U}\kern-.1em CThesis}} +\newcommand{\RUCThesis}{{\ttfamily R\kern-.107em\lower.5ex\hbox{U}\kern-.1em CThesis}} \ifruc@bachelor \RequirePackage[top=25mm,left=25mm,bottom=25mm,right=20mm,footskip=10mm]{geometry} \setlength{\topskip}{10mm} @@ -85,9 +85,9 @@ pdftitle={\@title}, pdfauthor={\@author}, pdfsubject={中国人民大学学位论文}} } -\setmainfont{TimesNewRomanPSMT} -\setsansfont{ArialMT} -\setmonofont{CourierNewPSMT} +\setmainfont{Times New Roman} +\setsansfont{Arial} +\setmonofont{Courier New} \xeCJKsetup{AutoFakeSlant={true}} \setCJKmainfont{SimSun} \setCJKsansfont{SimHei} @@ -188,8 +188,8 @@ pdfsubject={中国人民大学学位论文}} \pagestyle{empty} \begin{center} \includegraphics[width=7.6cm,height=1.474cm]{figures/clogo.pdf}\\ -\sf\zihao{1}\ziju{0.4}\@sign\par -\tt\zihao{3} +\sffamily\zihao{1}\ziju{0.4}\@sign\par +\ttfamily\zihao{3} \vspace{25mm}\ziju{0}\linespread{1.5}\selectfont (中文题目)\underline{\parbox[b]{110mm}\@title}\hfill\par\vspace{3mm} (英文题目)\underline{\parbox[b]{110mm}\@etitle}\hfill\par @@ -222,23 +222,23 @@ With package \tt{\RUCThesis}\\ \fi \newenvironment{abstractzh} {\clearpage\chapter*{\cabstractpagesign}\vspace*{-5mm} -\pagenumbering{Roman}\zihao{-4}\rm} -{\par\vspace*{7mm}\noindent\sf\zihao{-4}关键词: -\rm\zihao{-4}\@keywordzh +\pagenumbering{Roman}\zihao{-4}\rmfamily} +{\par\vspace*{7mm}\noindent\sffamily\zihao{-4}关键词: +\rmfamily\zihao{-4}\@keywordzh \thispagestyle{headings}} \newenvironment{abstracten} {\clearpage \ifruc@bachelor\linespread{2}\selectfont \chapter*{\bf{\eabstractpagesign}}\vspace*{-5mm} \else\chapter*{\sf{\eabstractpagesign}}\vspace*{-5mm}\fi -\zihao{-4}\rm} +\zihao{-4}\rmfamily} {\par\vspace*{7mm}\noindent \zihao{-4}\textbf{Key Words : } -\rm\zihao{-4}\@keyworden +\rmfamily\zihao{-4}\@keyworden \thispagestyle{headings}\rowspace} \newenvironment{acknowledge} {\chapter*{\acknowledgesign}\vspace*{-5mm} -\addcontentsline{toc}{chapter}{\acknowledgesign}\zihao{-4}\rm} +\addcontentsline{toc}{chapter}{\acknowledgesign}\zihao{-4}\rmfamily} {\thispagestyle{plain}} \newcommand{\authorization}[1] {\ifruc@doctor\cleardoublepage\else\clearpage\fi @@ -249,13 +249,13 @@ text={\paperwidth,\paperheight},marginparwidth=0mm}\hspace{-9mm} \restoregeometry} \newcommand{\originality}{ \chapter*{\zihao{-2}\heiti 独创性声明} -{\tt\zihao{-4}本人郑重声明:所呈交的论文是我个人在导师的指导下进行的研究工作及取得的研究成果。尽我所知,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写的研究成果,也不包含为获得中国人民大学或其他教育机构的学位或证书所使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示了谢意。\par} +{\ttfamily\zihao{-4}本人郑重声明:所呈交的论文是我个人在导师的指导下进行的研究工作及取得的研究成果。尽我所知,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写的研究成果,也不包含为获得中国人民大学或其他教育机构的学位或证书所使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示了谢意。\par} \vskip 10mm\hfill 论文作者:\rule[-1ex]{30mm}{0.25pt}\qquad 日\qquad 期:\rule[-1ex]{30mm}{0.25pt}\par \vfil\centerline{\heiti\zihao{-2}关于论文使用授权的说明} \vskip 13mm -{\tt 本人完全了解中国人民大学有关保留、使用学位论文的规定,即:学校有保留送交论文的复印件,允许论文被查阅和借阅;学校可以公布论文的全部或部分内容,可以采用影印、缩印或其他复制手段保存论文。\par +{\ttfamily 本人完全了解中国人民大学有关保留、使用学位论文的规定,即:学校有保留送交论文的复印件,允许论文被查阅和借阅;学校可以公布论文的全部或部分内容,可以采用影印、缩印或其他复制手段保存论文。\par \vskip 10mm\hfill 论文作者:\rule[-1ex]{30mm}{0.25pt}\qquad 日\qquad 期:\rule[-1ex]{30mm}{0.25pt}\par @@ -281,18 +281,18 @@ subsubsection = { number = \thesubsection.\arabic{subsubsection} }, chapter/format =\vspace{-15mm}\centering, -chapter/numberformat = \bf\zihao{3}, -chapter/titleformat = \sf\zihao{3}, -chapter/nameformat = \sf\zihao{3}, +chapter/numberformat = \bfseries\zihao{3}, +chapter/titleformat = \sffamily\zihao{3}, +chapter/nameformat = \sffamily\zihao{3}, section/format = , -section/numberformat = \bf\zihao{4}, -section/titleformat = \sf\zihao{4}, +section/numberformat = \bfseries\zihao{4}, +section/titleformat = \sffamily\zihao{4}, subsection/format = , -subsection/numberformat = \bf\zihao{-4}, -subsection/titleformat = \sf\zihao{-4}, +subsection/numberformat = \bfseries\zihao{-4}, +subsection/titleformat = \sffamily\zihao{-4}, subsubsection/format = , -subsubsection/numberformat = \bf\zihao{5}, -subsubsection/titleformat =\sf \zihao{5} +subsubsection/numberformat = \bfseries\zihao{5}, +subsubsection/titleformat =\sffamily \zihao{5} } \else \ctexset{ @@ -301,34 +301,34 @@ name = {第,章}, number = \arabic{chapter} }, chapter/format =\centering, -chapter/numberformat = \bf\zihao{-2}, -chapter/nameformat = \sf\zihao{-2}, -chapter/titleformat = \sf\zihao{-2}, +chapter/numberformat = \bfseries\zihao{-2}, +chapter/nameformat = \sffamily\zihao{-2}, +chapter/titleformat = \sffamily\zihao{-2}, section/format = , -section/titleformat =\sf\zihao{-3}, -section/numberformat = \bf\zihao{-3}, +section/titleformat =\sffamily\zihao{-3}, +section/numberformat = \bfseries\zihao{-3}, subsection/format = , -subsection/numberformat = \bf\zihao{-4}, -subsection/titleformat = \sf\zihao{-4}, +subsection/numberformat = \bfseries\zihao{-4}, +subsection/titleformat = \sffamily\zihao{-4}, subsubsection/format = , -subsubsection/titleformat = \sf\zihao{5}, -subsubsection/numberformat = \bf\zihao{5} +subsubsection/titleformat = \sffamily\zihao{5}, +subsubsection/numberformat = \bfseries\zihao{5} } \fi \RequirePackage{titletoc} -\titlecontents{chapter}[0pt]{\sf\zihao{4}\addvspace{2pt}\filright} +\titlecontents{chapter}[0pt]{\sffamily\zihao{4}\addvspace{2pt}\filright} {\contentspush{\thecontentslabel\ }} {}{\titlerule*[10pt]{.}{\bf\contentspage}} -\titlecontents{section}[2em]{\rm\zihao{-4}\addvspace{2pt}\filright} +\titlecontents{section}[2em]{\rmfamily\zihao{-4}\addvspace{2pt}\filright} {\contentspush{\thecontentslabel\ }} {}{\titlerule*[10pt]{.}\contentspage} -\titlecontents{subsection}[4em]{\rm\zihao{-4}\addvspace{2pt}\filright} +\titlecontents{subsection}[4em]{\rmfamily\zihao{-4}\addvspace{2pt}\filright} {\contentspush{\thecontentslabel\ }} {}{\titlerule*[10pt]{.}\contentspage} -\titlecontents{figure}[10pt]{\rm\zihao{-4}\addvspace{2pt}} +\titlecontents{figure}[10pt]{\rmfamily\zihao{-4}\addvspace{2pt}} {图~\thecontentslabel\, } {}{\titlerule*[10pt]{.}\contentspage} -\titlecontents{table}[10pt]{ \rm\zihao{-4}\addvspace{2pt}} +\titlecontents{table}[10pt]{ \rmfamily\zihao{-4}\addvspace{2pt}} {表~\thecontentslabel\, } {}{\titlerule*[10pt]{.}\contentspage} \RequirePackage{ifxetex} @@ -453,7 +453,7 @@ subsubsection/numberformat = \bf\zihao{5} \else \ifruc@promaster\promasteresign \else\bacheloresign -\fi\fi\fi\par}\sf\zihao{-3} +\fi\fi\fi\par}\sffamily\zihao{-3} \vspace{40mm}\ziju{0}\linespread{1.5}\rule[0mm]{0mm}{30mm} \ifruc@doctor\color{rucbalck}\else\color{rucwhite}\fi 论文题目:\underline{\parbox[b]{100mm}\@title}\hfill\par \rule[0mm]{0mm}{10mm} @@ -467,31 +467,31 @@ subsubsection/numberformat = \bf\zihao{5} \thispagestyle{empty} \ifruc@shuji \ifruc@doctor\color{rucbalck}\else\color{rucwhite}\fi -\uput[u]{0}(0.5\paperheight,15){{\sf\zihao{3}\shortstack[c]{\@covertitle}}} -\uput[u]{0}(0.5\paperheight,3){{\sf\zihao{3}\shortstack[c]{中\\国\\人\\民\\大\\学}}} +\uput[u]{0}(0.5\paperheight,15){{\sffamily\zihao{3}\shortstack[c]{\@covertitle}}} +\uput[u]{0}(0.5\paperheight,3){{\sffamily\zihao{3}\shortstack[c]{中\\国\\人\\民\\大\\学}}} \else\fi \end{landscape} \restoregeometry } \RequirePackage{natbib}%参考文献 -\RequirePackage{caption2} -\captionstyle{normal} -\renewcommand{\captionfont}{\zihao{5}\rm} -\renewcommand{\captionlabelfont}{\zihao{5}\bf} -\renewcommand{\captionlabeldelim}{\,\,} +\RequirePackage{caption} +\DeclareCaptionFont{ruccaptionfont}{\zihao{5}\rmfamily} +\DeclareCaptionLabelFormat{ruccaptionlabel}{\zihao{5}\bfseries #1~#2} +\captionsetup{font=ruccaptionfont,labelformat=ruccaptionlabel,labelsep=quad} +\RequirePackage{subcaption} \RequirePackage{booktabs}%三线表 \RequirePackage{colortbl}%表格颜色 \RequirePackage{diagbox}%表头制作 \RequirePackage{longtable}%长表格 \let\ruc@LT@array\LT@array -\def\LT@array{\zihao{5}\rm\ruc@LT@array} -\let\old@tabular\@tabular -\def\ruc@tabular{\old@tabular\zihao{5}} +\def\LT@array{\zihao{5}\rmfamily\ruc@LT@array} +\let\old@tabular\tabular +\let\endold@tabular\endtabular +\renewenvironment{tabular}[2][c]{\zihao{5}\old@tabular[#1]{#2}}{\endold@tabular} \RequirePackage{multirow}%跨行宏包 \setlength{\abovecaptionskip}{6pt} \setlength{\belowcaptionskip}{6pt} \RequirePackage{wrapfig}%图文混排,段落首字下沉 -\RequirePackage{subfigure}%子图 \RequirePackage{tikz}%绘图 \RequirePackage{amsmath,amsfonts}% \RequirePackage{latexsym,bm}% diff --git a/ructhesis.dtx b/ructhesis.dtx deleted file mode 100644 index 355b2e2..0000000 --- a/ructhesis.dtx +++ /dev/null @@ -1,745 +0,0 @@ -%\iffalse meta-comment -% Copyright (C) 2003--2015 Zebin Wang -% -------------------------------------------------------------------------- -% -% This work 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. This version of this license is in -% http://www.latex-project.org/lppl/lppl-1-3c.txt -% and 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 Maintainers of this work is Zebin Wang. -% -% This work consists of the files RUCThesis.dtx and RUCThesis.ins -% and the derived file RUCThesis.cls. -% -% -------------------------------------------------------------------------- -%\fi -%\iffalse -%<*driver> -\ProvidesFile{ructhesis.dtx}[2015/12/23 V.1.0.0] -\documentclass[10pt]{ltxdoc} -\usepackage[UTF8]{ctex} -\usepackage{tikz} -\usepackage{listings} -\usepackage{xcolor} -\usepackage{hyperref} -\usetikzlibrary{trees} -\EnableCrossrefs -\CodelineIndex -\RecordChanges -\begin{document} - \DocInput{\jobname.dtx} -\end{document} -% -%\fi -% -% \DoNotIndex{\begin,\end,\begingroup,\endgroup} -% \DoNotIndex{\ifx,\ifdim,\ifnum,\ifcase,\else,\or,\fi} -% \DoNotIndex{\let,\def,\xdef,\newcommand,\renewcommand} -% \DoNotIndex{\expandafter,\csname,\endcsname,\relax,\protect} -% \DoNotIndex{\Huge,\huge,\LARGE,\Large,\large,\normalsize} -% \DoNotIndex{\small,\footnotesize,\scriptsize,\tiny} -% \DoNotIndex{\normalfont,\bfseries,\slshape,\interlinepenalty} -% \DoNotIndex{\hfil,\par,\hskip,\vskip,\vspace,\quad} -% \DoNotIndex{\centering,\raggedright} -% \DoNotIndex{\c@secnumdepth,\@startsection,\@setfontsize} -% \DoNotIndex{\ ,\@plus,\@minus,\p@,\z@,\@m,\@M,\@ne,\m@ne} -% \DoNotIndex{\@@par,\DeclareOperation,\RequirePackage,\LoadClass} -% \DoNotIndex{\AtBeginDocument,\AtEndDocument,\\,\,} -% -% \IndexPrologue{\section*{索引}% -% \addcontentsline{toc}{section}{索~~~~引}} -% \GlossaryPrologue{\section*{修改记录}% -% \addcontentsline{toc}{section}{修改记录}} -% \title{中国人民大学\LaTeX\ 论文模板} -% \author{王泽斌\\ {\tt me@zebinwang.com}} -% \date{2015.12.23} -% \maketitle -% \begin{abstract}\noindent -% RUCThesis文档类旨在建立符合中国人民大学《本科论文指导手册》和《研究生学位论 文及其摘要的撰写和印制要求》的 \LaTeX\ 学位论文模板。 -% \end{abstract} -% \vskip2cm -% \def\abstractname{免责声明} -% \begin{abstract} -% \noindent -% \begin{enumerate} -% \item 本模板的发布遵守 \LaTeX{} Project Public License,使用前请认真阅读协议内 -% 容。 -% \item 任何个人或组织以本模板为基础进行的使用、修改、拓展而产生的一切后果自行承担。 -% \end{enumerate} -% \end{abstract} -% \clearpage -% \begin{multicols}{2}[ -% \setlength{\columnseprule}{.4pt} -% \setlength{\columnsep}{18pt}] -% \tableofcontents -% \end{multicols} -% \clearpage -% \section{安装} -% \subsection{下载} -% 目前RUCThesis提供如下两种下载方式: -% \href{https://github.com/ZebinWang/ructhesis}{GitHub}、\href{}{CTAN} -% \subsection{文件组成} -%下图为本模板的文件结构。其中\tt chap\rm 为章节目录,\tt figure\rm 为图像文件夹其中名称中有logo字样的为模板必要的图像,\tt ref\rm 为参考文献文件夹。其余所有文件都已标注在图中。 -% \begin{figure}[htbp] -% \centering -% \tikzstyle{every node}=[anchor=west] -% \begin{tikzpicture}[% -% grow via three points={one child at (0.5,-0.5) and -% two children at (0.5,-0.5) and (0.5,-1.0)}, -% edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}] -% \node {RUCThesis} -% child { node {chap} -% child { node {chapter1.tex\quad \% 章节文件}} -% child { node {...}} -% child { node {appendix\_{}1.tex\quad \% 附录}}} -% child [missing] {} -% child [missing] {} -% child [missing] {} -% child { node {cover.tex\quad \% 封面文件}} -% child { node {figures} -% child { node {logo.pdf\quad \% 图像}} -% child { node {...}}} -% child [missing] {} -% child [missing] {} -% child { node {format} -% child { node {acknowledge.tex\quad \% 致谢}} -% child { node {authorization.tex\quad \% 授权书影印件}} -% child { node {cabstractpage.tex\quad \% 中文摘要}} -% child { node {eabstractpage.tex\quad \% 英文摘要}} -% child { node {Originality.tex\quad \% 独创性声明}}} -% child [missing] {} -% child [missing] {} -% child [missing] {} -% child [missing] {} -% child [missing] {} -% child { node {main.tex\quad \% 主文件}} -% child { node {ref} -% child { node {ruc.bst\quad \% 参考文献样式}} -% child { node {yourbib.bib\quad \% 参考文献数据库}}} -% child [missing] {} -% child [missing] {} -% child { node {ructhesis.cls\quad \% RUCThesis文档类}} -% child { node {ructhesis.dtx\quad \% RUCThesis源代码}} -% child { node {ructhesis.ins\quad \% RUCThesis安装文件}}; -% \end{tikzpicture} -% \caption{RUCThesis文件目录} -% \end{figure} -% \subsection{生成模板} -% 如果对本模板机理不感兴趣的读者可以略过这里。模板源文件是\tt ructhesis.ins\rm 和\tt ructhesis.dtx\rm 文件,在终端中执行如下代码: -%\\ \tt \$ latex ructhesis.ins -%\\\rm 可以得到ructhesis.cls文件,继续执行如下代码: -%\\ \tt \$ xelatex ructhesis.dtx -%\\ \tt \$ makeindex -s gind.ist -o ructhesis.ind ructhesis.idx -%\\ \tt \$ makeindex -s gglo.ist -o ructhesis.gls ructhesis.glo -%\\ \tt \$ xelatex ructhesis.dtx -%\\ \tt \$ xelatex ructhesis.dtx -%\\\rm 可以得到本文档,这里不再赘述。 -%\subsection{使用模板} -%如果你的模板文件中已经有\tt ructhesis.cls\rm 文件可以直接略过上一步。 -%\StopEventually{\PrintChanges\PrintIndex} -% \section{程序代码} -% \subsection{文档类及选项定义} -% \begin{macrocode} -%<*cls> -\NeedsTeXFormat{LaTeX2e} -\ProvidesClass{ructhesis}[2015/12/01 v1.0.0] -\newif\ifruc@bachelor -\newif\ifruc@master -\newif\ifruc@doctor -\newif\ifruc@promaster -\newif\ifruc@shuji -% \end{macrocode} -% \begin{macro}{bachelor} -% \begin{macro}{master} -% \begin{macro}{promaster} -% \begin{macro}{doctor} 本科、硕士、专业硕士、博士选项 -% \begin{macrocode} -\DeclareOption{bachelor}{\ruc@bachelortrue} -\DeclareOption{master}{\ruc@mastertrue} -\DeclareOption{promaster}{\ruc@promastertrue} -\DeclareOption{doctor}{\ruc@doctortrue} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \end{macro} -% \end{macro} -% \begin{macro}{shuji} 这个选项只能在\tt cover.tex\rm 中使用,代表封皮是否打印书脊。 -% \begin{macrocode} -\DeclareOption{shuji}{\ruc@shujitrue} -\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} -\ProcessOptions\relax -\ifruc@doctor\LoadClass[UTF8,zihao=-4,twoside,openright,fancyhdr]{ctexbook} -\else\LoadClass[UTF8,zihao=-4,oneside,openany,fancyhdr]{ctexbook}\fi -% \end{macrocode} -% \end{macro} -% \subsection{宏} -% \begin{macrocode} -\def\thesiscode#1{\gdef\@thesiscode{#1}} -\def\sign#1{\gdef\@sign{#1}} -\def\esign#1{\gdef\@esign{#1}} -\def\title#1{\gdef\@title{#1}} -\def\subtitle#1{\gdef\@subtitle{#1}} -\def\author#1{\gdef\@author{#1}} -\def\school#1{\gdef\@school{#1}} -\def\field#1{\gdef\@field{#1}} -\def\grade#1{\gdef\@grade{#1}} -\def\studentid#1{\gdef\@studentid{#1}} -\def\advisor#1{\gdef\@advisor{#1}} -\def\score#1{\gdef\@score{#1}} -\def\date#1{\gdef\@date{#1}} -\def\keywords#1{\gdef\@keywords{#1}} -\def\etitle#1{\gdef\@etitle{#1}} -\def\covertitle#1{\gdef\@covertitle{#1}} -\def\keywordzh#1{\gdef\@keywordzh{#1}} -\def\keyworden#1{\gdef\@keyworden{#1}} -\def\doctorsign{博士学位论文} -\def\doctoresign{DOCTORAL DISSERTATION} -\def\mastersign{硕士学位论文} -\def\masteresign{THESIS OF MASTER DEGREE} -\def\promastersign{专业硕士学位论文} -\def\promasteresign{THESIS OF PROFESSION MASTER DEGREE} -\def\bachelorsign{本科毕业论文} -\def\bacheloresign{THESIS OF BACHELOR DEGREE} -\def\cabstractpagesign{摘要} -\def\eabstractpagesign{Abstract} -\def\acknowledgesign{致谢} -\newcommand{\RUCThesis}{{\tt R\kern-.107em\lower.5ex\hbox{U}\kern-.1em CThesis}} -% \end{macrocode} -% \subsection{页面布局} -% \begin{macrocode} -\ifruc@bachelor -\RequirePackage[top=25mm,left=25mm,bottom=25mm,right=20mm,footskip=10mm]{geometry} -\setlength{\topskip}{10mm} -\else -\RequirePackage[top=45mm,left=35mm,bottom=40mm,right=30mm,headsep=20mm]{geometry} -\fi -% \end{macrocode} -% \subsection{PDF} -% \begin{macrocode} -\RequirePackage{hyperref} -\AtBeginDocument{ -\hypersetup{ - pdftitle={\@title}, - pdfauthor={\@author}, - pdfsubject={中国人民大学学位论文}} -} -% \end{macrocode} -% \subsection{字体} -% \begin{macrocode} -\setmainfont{TimesNewRomanPSMT} -\setsansfont{ArialMT} -\setmonofont{CourierNewPSMT} -\xeCJKsetup{AutoFakeSlant={true}} -\setCJKmainfont{SimSun} -\setCJKsansfont{SimHei} -\setCJKmonofont{FangSong} -% \end{macrocode} -% \subsection{行距} -% \begin{macro}{\rowspace} 全文行距调整 -% \begin{macrocode} -\newcommand{\rowspace}{% - \setlength{\lineskiplimit}{2.625bp} - \setlength{\lineskip}{2.625bp} - \ifruc@bachelor - \linespread{1.25}\selectfont - \else - \linespread{1.35}\selectfont - \fi -} -% \end{macrocode} -% \end{macro} -% \subsection{空白页样式} -% \begin{macro}{\cleardoublepage} 空白页样式设为empty -% \begin{macrocode} -\let\ruc@cleardoublepage\cleardoublepage -\newcommand{\ruc@clearemptydoublepage}{% -\clearpage{\pagestyle{empty}\ruc@cleardoublepage}} -\let\cleardoublepage\ruc@clearemptydoublepage -% \end{macrocode} -% \end{macro} -% \subsection{页眉页脚} -% \noindent 这里之所以定义了这么多,完全是为了处理本科的要求...... -% \begin{macrocode} -\pagestyle{fancy} - \fancyhf{} - \lhead{} - \rhead{} - \ifruc@bachelor - \chead{\includegraphics[width=4.13cm,height=0.8452cm]{figures/logo.pdf}} - \fancyfoot[CO,CE]{ 第 \thepage 页} - \else - \chead{\zihao{5}\@title} - \if@twoside - \fancyfoot[RO,LE]{\thepage} - \else - \fancyfoot[RO,RE]{\thepage} - \fi - \fi -\fancypagestyle{headings}{ - \fancyhf{} - \lhead{} - \rhead{} - \ifruc@bachelor - \chead{\includegraphics[width=4.13cm,height=0.8452cm]{figures/logo.pdf}} - \fancyfoot[CO,CE]{\thepage} - \else - \chead{}\renewcommand*{\headrulewidth}{0bp} - \if@twoside - \fancyfoot[RO,LE]{\thepage} - \else - \fancyfoot[RO,RE]{\thepage} - \fi - \fi} -\fancypagestyle{myheadings}{ - \fancyhf{} - \lhead{} - \rhead{} - \chead{\includegraphics[width=4.13cm,height=0.8452cm]{figures/logo.pdf}} - \fancyfoot[LO,LE]{} - \fancyfoot[RO,RE]{} - \fancyfoot[CO,CE]{}} -\fancypagestyle{plain}{ - \fancyhf{} - \lhead{} - \rhead{} - \ifruc@bachelor - \chead{}\renewcommand*{\headrulewidth}{0pt} - \fancyfoot[CO,CE]{ 第 \thepage 页} - \else - \chead{} - \renewcommand*{\headrulewidth}{0pt} - \if@twoside - \fancyfoot[RO,LE]{\thepage} - \else - \fancyfoot[RO,RE]{\thepage} - \fi - \fi} -% \end{macrocode} -% \subsection{扉页} -% \begin{macro}{\maketitle} 插入扉页 -% \begin{macrocode} -\RequirePackage{graphicx} -\newif\if@subtitle -\ifruc@bachelor -\renewcommand{\maketitle}{ - \newgeometry{top=25mm,left=25mm,bottom=40mm,right=20mm,footskip=0mm,a4paper} - \setlength{\topskip}{5mm} - \thispagestyle{myheadings} - \linespread{1.5}\selectfont - {\hfill\zihao{-4}\sf\@thesiscode - \begin{center}\zihao{1}\rule[0mm]{0mm}{25mm}\@sign\par\vspace{15mm} - \@title\par - \zihao{2}\@subtitletrue\par\vskip\stretch{1}\zihao{3} - 作\qquad 者:\underline{\makebox[90mm]\@author}\hfill\par - 学\qquad 院:\underline{\makebox[90mm]\@school}\hfill\par - 专\qquad 业:\underline{\makebox[90mm]\@field}\hfill\par - 年\qquad 级:\underline{\makebox[90mm]\@grade}\hfill\par - 学\qquad 号:\underline{\makebox[90mm]\@studentid}\hfill\par - 指导教师:\underline{\makebox[90mm]\@advisor}\hfill\par - 论文成绩:\underline{\makebox[90mm]\@score}\hfill\par - 日\qquad 期:\underline{\makebox[90mm]\@date}\hfill - \end{center}} - \restoregeometry - \rowspace%本科全文行距 -} -\else -\renewcommand{\maketitle}{ - \pagestyle{empty} - \begin{center} - \includegraphics[width=7.6cm,height=1.474cm]{figures/clogo.pdf}\\ - \sf\zihao{1}\ziju{0.4}\@sign\par - \tt\zihao{3} - \vspace{25mm}\ziju{0}\linespread{1.5}\selectfont - (中文题目)\underline{\parbox[b]{110mm}\@title}\hfill\par\vspace{3mm} - (英文题目)\underline{\parbox[b]{110mm}\@etitle}\hfill\par - \vfill\ziju{0.65} - 作者学号:\underline{\makebox[80mm]\@studentid}\hfill\par - 作者姓名:\underline{\makebox[80mm]\@author}\hfill\par - 所在学院:\underline{\makebox[80mm]{\ziju{0.2}\@school}}\hfill\par - 专业名称:\underline{\parbox[b]{80mm}{\centering\ziju{0}\@field}}\hfill\par\ziju{0.65} - 导师姓名:\underline{\makebox[80mm]\@advisor}\hfill\par\ % - \ziju{0.25} - 论文主题词:\underline{\parbox[b]{80mm}{\vspace*{1pt}\centering\ziju{0}\@keywords}} - \hfill\par\ziju{0} - 论文提交日期:\underline{\makebox[80mm]\@date}\hfill - \end{center} - \rowspace%研究生全文行距 - \clearpage - \if@twoside - \thispagestyle{empty} - \vspace*{\stretch{1}} - {\zihao{5} - \definecolor{light-gray}{gray}{0.86} - \noindent - \textcolor{light-gray}{ - Typeset by \LaTeXe{}\\ - With package \tt{\RUCThesis}\\ - }} - \cleardoublepage - \fi -} -\fi -% \end{macrocode} -% \end{macro} -% \subsection{中文摘要} -% \begin{macro}{abstractzh} 中文摘要环境 -% \begin{macrocode} -\newenvironment{abstractzh} -{\clearpage\chapter*{\cabstractpagesign}\vspace*{-5mm} - \pagenumbering{Roman}\zihao{-4}\rm} -{\par\vspace*{7mm}\noindent\sf\zihao{-4}关键词: - \rm\zihao{-4}\@keywordzh - \thispagestyle{headings}} -% \end{macrocode} -% \end{macro} -% \subsection{英文摘要} -% \begin{macro}{abstracten} 英文摘要环境 -% \begin{macrocode} -\newenvironment{abstracten} -{\clearpage - \ifruc@bachelor\linespread{2}\selectfont - \chapter*{\bf{\eabstractpagesign}}\vspace*{-5mm} - \else\chapter*{\sf{\eabstractpagesign}}\vspace*{-5mm}\fi - \zihao{-4}\rm} -{\par\vspace*{7mm}\noindent - \zihao{-4}\textbf{Key Words : } - \rm\zihao{-4}\@keyworden - \thispagestyle{headings}\rowspace} -% \end{macrocode} -% \end{macro} -% \subsection{致谢} -% \begin{macro}{\acknowledge} 致谢环境 -% \begin{macrocode} -\newenvironment{acknowledge} -{\chapter*{\acknowledgesign}\vspace*{-5mm} - \addcontentsline{toc}{chapter}{\acknowledgesign}\zihao{-4}\rm} -{\thispagestyle{plain}} -% \end{macrocode} -% \end{macro} -% \subsection{授权} -% \begin{macro}{\authorization} 插入授权影印件 -% \begin{macrocode} -\newcommand{\authorization}[1] -{\ifruc@doctor\cleardoublepage\else\clearpage\fi -\newgeometry{top=0mm,left=0mm,bottom=0mm,right=0mm, -text={\paperwidth,\paperheight},marginparwidth=0mm}\hspace{-9mm} -\thispagestyle{empty} -\includegraphics[width=\paperwidth-1mm ,totalheight=\paperheight-1mm]{#1} -\restoregeometry} -% \end{macrocode} -% \end{macro} -% \subsection{独创性声明} -% \begin{macro}{\originality} 插入独创性声明 -% \begin{macrocode} -\newcommand{\originality}{ -\chapter*{\zihao{-2}\heiti 独创性声明} -{\tt\zihao{-4}本人郑重声明:所呈交的论文是我个人在导师的指导下进行的研究工作及取得的研究成果。尽我所知,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写的研究成果,也不包含为获得中国人民大学或其他教育机构的学位或证书所使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示了谢意。\par} -\vskip 10mm\hfill -论文作者:\rule[-1ex]{30mm}{0.25pt}\qquad -日\qquad 期:\rule[-1ex]{30mm}{0.25pt}\par -\vfil\centerline{\heiti\zihao{-2}关于论文使用授权的说明} -\vskip 13mm -{\tt 本人完全了解中国人民大学有关保留、使用学位论文的规定,即:学校有保留送交论文的复印件,允许论文被查阅和借阅;学校可以公布论文的全部或部分内容,可以采用影印、缩印或其他复制手段保存论文。\par -\vskip 10mm\hfill -论文作者:\rule[-1ex]{30mm}{0.25pt}\qquad -日\qquad 期:\rule[-1ex]{30mm}{0.25pt}\par -\hfill \rule[0mm]{0mm}{8mm} -指导老师:\rule[-1ex]{30mm}{0.25pt}\qquad -日\qquad 期:\rule[-1ex]{30mm}{0.25pt}\par} -\thispagestyle{empty} -} -% \end{macrocode} -% \end{macro} -% \subsection{章节标题} -% \begin{macrocode} -\setcounter{secnumdepth}{4} -\ifruc@bachelor -\ctexset{ - chapter = { - name = {,}, - number = \arabic{chapter} - }, - section = { - number = \thechapter.\arabic{section} - }, - subsection = { - number = \thesection.\arabic{subsection} - }, - subsubsection = { - number = \thesubsection.\arabic{subsubsection} - }, - chapter/format =\vspace{-15mm}\centering, - chapter/numberformat = \bf\zihao{3}, - chapter/titleformat = \sf\zihao{3}, - chapter/nameformat = \sf\zihao{3}, - section/format = , - section/numberformat = \bf\zihao{4}, - section/titleformat = \sf\zihao{4}, - subsection/format = , - subsection/numberformat = \bf\zihao{-4}, - subsection/titleformat = \sf\zihao{-4}, - subsubsection/format = , - subsubsection/numberformat = \bf\zihao{5}, - subsubsection/titleformat =\sf \zihao{5} -} -\else -\ctexset{ - chapter = { - name = {第,章}, - number = \arabic{chapter} - }, - chapter/format =\centering, - chapter/numberformat = \bf\zihao{-2}, - chapter/nameformat = \sf\zihao{-2}, - chapter/titleformat = \sf\zihao{-2}, - section/format = , - section/titleformat =\sf\zihao{-3}, - section/numberformat = \bf\zihao{-3}, - subsection/format = , - subsection/numberformat = \bf\zihao{-4}, - subsection/titleformat = \sf\zihao{-4}, - subsubsection/format = , - subsubsection/titleformat = \sf\zihao{5}, - subsubsection/numberformat = \bf\zihao{5} -} -\fi -% \end{macrocode} -% \subsection{目录样式} -% \begin{macrocode} -\RequirePackage{titletoc} -\titlecontents{chapter}[0pt]{\sf\zihao{4}\addvspace{2pt}\filright} - {\contentspush{\thecontentslabel\ }} - {}{\titlerule*[10pt]{.}{\bf\contentspage}} -\titlecontents{section}[2em]{\rm\zihao{-4}\addvspace{2pt}\filright} - {\contentspush{\thecontentslabel\ }} - {}{\titlerule*[10pt]{.}\contentspage} -\titlecontents{subsection}[4em]{\rm\zihao{-4}\addvspace{2pt}\filright} - {\contentspush{\thecontentslabel\ }} - {}{\titlerule*[10pt]{.}\contentspage} -\titlecontents{figure}[10pt]{\rm\zihao{-4}\addvspace{2pt}} - {图~\thecontentslabel\, } - {}{\titlerule*[10pt]{.}\contentspage} -\titlecontents{table}[10pt]{ \rm\zihao{-4}\addvspace{2pt}} - {表~\thecontentslabel\, } - {}{\titlerule*[10pt]{.}\contentspage} -% \end{macrocode} -% \subsection{本科脚注} -% \begin{macro}{\ruc@textcircled} 本科的圆形脚注... -% \begin{macrocode} -\RequirePackage{ifxetex} -\RequirePackage{ifthen,calc} -\def\ruc@textcircled#1{% -\ifnum \value{#1} <10 \textcircled{\zihao{-6}\arabic{#1}} -\else\ifnum \value{#1} <100 \textcircled{\zihao{7}\arabic{#1}}\fi -\fi} -\ifruc@bachelor -\renewcommand{\thefootnote}{\ruc@textcircled{footnote}} -\renewcommand{\thempfootnote}{\ruc@textcircled{mpfootnote}} -\def\footnoterule{\vskip-3\p@\hrule\@width0.3\textwidth\@height0.4\p@\vskip2.6\p@} -\let\ruc@footnotesize\footnotesize -\renewcommand\footnotesize{\ruc@footnotesize\zihao{-5}} -\def\@makefnmark{\textsuperscript{\hbox{\normalfont\@thefnmark}}} -\long\def\@makefntext#1{ -\bgroup -\newbox\ruc@tempboxa -\setbox\ruc@tempboxa\hbox{% -\hb@xt@ 1.5em{\@thefnmark\hss}} -\leftmargin\wd\ruc@tempboxa -\rightmargin\z@ -\linewidth \columnwidth -\advance \linewidth -\leftmargin -\parshape \@ne \leftmargin \linewidth -\footnotesize -\@setpar{{\@@par}}% -\leavevmode -\llap{\box\ruc@tempboxa}% -#1 -\par\egroup}\else\fi -% \end{macrocode} -% \end{macro} -% \subsection{本科签名} -% \begin{macro}{\autograph} 插入签名,在普通章节文件中插入无限制,但在\tt main.tex\rm 文件插入时被插入的章节不能使用\tt\textbackslash include\rm 命令,需使用\tt\textbackslash input\rm 命令。 -% \begin{macrocode} -\ifruc@bachelor -\newcommand{\autograph}{ % -{\noindent\zihao{4}\sf\rule[0mm]{0mm}{15mm}作者签名: -\rule[-1ex]{30mm}{0.25pt}}} -\else\fi -% \end{macrocode} -% \end{macro} -% \subsection{封面} -% \noindent 封皮都是研究生院统一从印刷厂印制,普通的打印店貌似做不出来...... -% \begin{macrocode} -\RequirePackage{lscape} -\RequirePackage{multicol} -\RequirePackage{color} -\RequirePackage[dvipsnames,prologue,table]{pstricks} -\definecolor{rucblue}{rgb}{0.129,0.482,0.663} -\definecolor{rucorange}{rgb}{0.976,0.769,0.325} -\definecolor{rucred}{rgb}{0.569,0.129,0.2} -\definecolor{rucgreen}{rgb}{0.333,0.608,0.627} -\definecolor{rucwhite}{rgb}{0.999,0.999,0.999} -\definecolor{rucbalck}{rgb}{0,0,0} -% \end{macrocode} -% \begin{macro}{\X}封面标识使用的是方正小标宋字体,PostScript名称:FZXBSJW--GB1-0 -% \begin{macrocode} -\setCJKfamilyfont{X}{FZXBSJW--GB1-0} -\newcommand{\X}{\CJKfamily{X}} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\cover}封面生成命令需在\tt cover.tex\rm 文件中使用 -% \begin{macrocode} -\newcommand{\cover}{ -\newgeometry{top=0mm,left=20mm,bottom=0mm,right=0mm,voffset=10mm,columnsep=5.5cm} -\ifruc@doctor -\pagecolor{rucorange} -\else -\ifruc@master -\pagecolor{rucblue} -\else -\ifruc@promaster -\pagecolor{rucgreen} -\else -\pagecolor{rucred} -\fi -\fi -\fi -\begin{landscape} -\begin{multicols}{2} -\rule[0mm]{22mm}{0mm} -\ifruc@doctor -\includegraphics[width=5.7cm,height=1.14cm]{figures/logo.pdf}\\ -\else -\ifruc@promaster -\includegraphics[width=6.3cm,height=1.26cm]{figures/logoW.pdf}\\ -\else -\includegraphics[width=5.7cm,height=1.14cm]{figures/logoW.pdf}\\ -\fi\fi -{\X -\ifruc@doctor -\color{rucred} -\else\color{rucwhite} -\fi\zihao{2}\rule[10mm]{30mm}{0mm} -\ifruc@doctor -\makebox[5.7cm][s]{\doctorsign}\\ -\zihao{-4}\rule[6mm]{32mm}{0mm}\makebox[5.7cm][s]{\doctoresign} -\else -\ifruc@master -\makebox[5.7cm][s]{\mastersign}\\ -\zihao{-4}\rule[6mm]{32mm}{0mm}\makebox[5.7cm][s]{\masteresign} -\else -\ifruc@promaster -\makebox[6.3cm][s]{\promastersign}\\ -\zihao{-5}\rule[6mm]{32mm}{0mm}\makebox[6.3cm][s]{\promasteresign} -\else -\makebox[5.7cm][s]{\bachelorsign}\\ -\zihao{5}\rule[0mm]{32mm}{0mm}\makebox[5.7cm][s]{\bacheloresign} -\fi\fi\fi} -\vfill -\begin{center} -\rule[0mm]{0mm}{30mm}\\ -\ifruc@doctor -\includegraphics[width=2cm,height=2cm]{figures/logo2.pdf}\vspace{2mm}\\ -\includegraphics[width=5.7cm,height=1.5048cm]{figures/logo3.pdf}\\ -\else -\includegraphics[width=2cm,height=2cm]{figures/logoW2.pdf}\vspace{2mm}\\ -\includegraphics[width=5.7cm,height=1.5048cm]{figures/logoW3.pdf}\\ -\fi -{\X -\ifruc@doctor -\color{rucred} -\else -\color{rucwhite} -\fi -\zihao{0}\ziju{0.3} -\ifruc@doctor\doctorsign -\else -\ifruc@master\mastersign -\else - \ifruc@promaster\ziju{0.1}\promastersign -\else\bachelorsign -\fi\fi\fi\par\zihao{-4}\rule[0mm]{0mm}{10mm} -\ifruc@doctor\doctoresign -\else -\ifruc@master\masteresign -\else -\ifruc@promaster\promasteresign -\else\bacheloresign -\fi\fi\fi\par}\sf\zihao{-3} -\vspace{40mm}\ziju{0}\linespread{1.5}\rule[0mm]{0mm}{30mm} -\ifruc@doctor\color{rucbalck}\else\color{rucwhite}\fi -论文题目:\underline{\parbox[b]{100mm}\@title}\hfill\par \rule[0mm]{0mm}{10mm} -英\qquad 文:\underline{\parbox[b]{100mm}\@etitle}\hfill\par -\vspace{20mm}\ -作\qquad 者:\underline{\makebox[100mm]\@author}\hfill\par\rule[0mm]{0mm}{10mm} -指导教师:\underline{\makebox[100mm]\@advisor}\hfill\par -\vspace{18mm}\@date -\end{center} -\end{multicols} -\thispagestyle{empty} -% \end{macrocode} -% \end{macro} -% 要求中只有博士是需要书脊的(硕士可选),需要设置纸张高度为两张A4纸宽度(420mm)再加书脊的宽度,100张A4纸厚度约为1cm。 -% \begin{macrocode} -\ifruc@shuji -\ifruc@doctor\color{rucbalck}\else\color{rucwhite}\fi -\uput[u]{0}(0.5\paperheight,15){{\sf\zihao{3}\shortstack[c]{\@covertitle}}} -\uput[u]{0}(0.5\paperheight,3){{\sf\zihao{3}\shortstack[c]{中\\国\\人\\民\\大\\学}}} -\else\fi -\end{landscape} -\restoregeometry -} -% \end{macrocode} -% \subsection{参考文献} -% \begin{macrocode} -\RequirePackage{natbib}%参考文献 -% \end{macrocode} -% \subsection{图表caption设定} -% \begin{macrocode} -\RequirePackage{caption2} -\captionstyle{normal} -\renewcommand{\captionfont}{\zihao{5}\rm} -\renewcommand{\captionlabelfont}{\zihao{5}\bf} -\renewcommand{\captionlabeldelim}{\,\,} -% \end{macrocode} -% \subsection{表格宏包} -% \begin{macrocode} -\RequirePackage{booktabs}%三线表 -\RequirePackage{colortbl}%表格颜色 -\RequirePackage{diagbox}%表头制作 -\RequirePackage{longtable}%长表格 -\let\ruc@LT@array\LT@array -\def\LT@array{\zihao{5}\rm\ruc@LT@array} -\let\old@tabular\@tabular -\def\ruc@tabular{\old@tabular\zihao{5}} -\RequirePackage{multirow}%跨行宏包 -% \end{macrocode} -% \subsection{表格caption上下间距} -% \begin{macrocode} -\setlength{\abovecaptionskip}{6pt} -\setlength{\belowcaptionskip}{6pt} -% \end{macrocode} -% \subsection{插图宏包} -% \begin{macrocode} -\RequirePackage{wrapfig}%图文混排,段落首字下沉 -\RequirePackage{subfigure}%子图 -\RequirePackage{tikz}%绘图 -% \end{macrocode} -% \subsection{数学宏包} -% \begin{macrocode} -\RequirePackage{amsmath,amsfonts}% -\RequirePackage{latexsym,bm}% -\RequirePackage{extarrows}% -\RequirePackage{pifont}% -% -% \end{macrocode} -% \Finale - \endinput \ No newline at end of file diff --git a/ructhesis.ins b/ructhesis.ins deleted file mode 100644 index f5754b6..0000000 --- a/ructhesis.ins +++ /dev/null @@ -1,74 +0,0 @@ -%!TEX TS-program = xelatex -%!TEX encoding = UTF-8 Unicode -%% Copyright (C) 2003--2015 Zebin Wang -%% -------------------------------------------------------------------------- -%% -%% This work 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. This version of this license is in -%% http://www.latex-project.org/lppl/lppl-1-3c.txt -%% and 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 Maintainers of this work is Zebin Wang. -%% -%% This work consists of the files RUCThesis.dtx and RUCThesis.ins -%% and the derived file RUCThesis.cls. -%% -%% -------------------------------------------------------------------------- -\input docstrip.tex -\keepsilent - -\preamble - Copyright (C) 2014--\the\year Zebin Wang - -------------------------------------------------------------------------- - - This work 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. This version of this license is in - http://www.latex-project.org/lppl/lppl-1-3c.txt - and 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 Maintainers of this work is Zebin Wang. - - This work consists of the files RUCThesis.dtx and RUCThesis.ins - and the derived file RUCThesis.cls. - - -------------------------------------------------------------------------- -\endpreamble - -\generate - { - \usedir{tex/latex/ructhesis} - \file{\jobname.cls}{\from{\jobname.dtx}{cls}} - } - -\obeyspaces -\Msg{*************************************************************} -\Msg{* *} -\Msg{* To finish the installation you have to move the following *} -\Msg{* file into proper directories searched by TeX: *} -\Msg{* *} -\Msg{* The recommended directory is TDS:tex/latex/ructhesis *} -\Msg{* *} -\Msg{* ructhesis.cls *} -\Msg{* *} -\Msg{* To produce the documentation run the file ructhesis.dtx *} -\Msg{* through XeLaTeX. *} -\Msg{* *} -\Msg{* Happy TeXing! *} -\Msg{* *} -\Msg{*************************************************************} - -\endbatchfile