Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
580be94
d white space
leftrk Aug 13, 2017
b8e16e7
addsome
leftrk Dec 20, 2017
fd06a32
complete
leftrk Dec 20, 2017
ba98dc3
fix space
leftrk Dec 20, 2017
81b1b6f
fix *
leftrk Dec 20, 2017
07503e6
format
leftrk Dec 20, 2017
dd9efe7
mod README.md
leftrk Dec 20, 2017
df2eab7
mod README.md
leftrk Dec 20, 2017
f44ea45
fix README.md
leftrk Dec 21, 2017
b5ffaa7
Update README.md
Mar 17, 2018
27b576c
Update README.md
Mar 17, 2018
673b9f7
Update README.md
Mar 17, 2018
d9cb742
Update README.md
Mar 21, 2018
517a764
Who knows WTF?!
leftrk Mar 21, 2018
76799f3
clarify further the brokenness of C++. why the fuck are we using C++?
leftrk Mar 21, 2018
8822c42
add paper guidance for bachelor (2017)
Apr 15, 2018
0d037d0
把本科生毕业论文指导手册的格式改成PDF
Apr 15, 2018
50accc2
change the cls fie
Apr 15, 2018
b40c930
.DS_Store banished!
Apr 15, 2018
d631a18
Merge pull request #6 from HolosLee/dev
May 11, 2018
2df8e53
2020年6月17日
leftrk Jun 16, 2020
891bff8
delete log
leftrk Jun 16, 2020
5c17375
今天毕业了
leftrk Jul 1, 2020
87f16a7
毕业
leftrk Jul 1, 2020
3a344fb
Push poorly written test can down the road another ten years
Mar 6, 2021
7e59638
foo
Mar 6, 2021
1540bd0
By works, I meant 'doesnt work'. Works now..
Mar 6, 2021
6074ad1
Update README.md
Dec 3, 2021
e89d8a2
Update README.md
Dec 3, 2021
7b2b51d
Update README.md
Dec 8, 2021
535a27f
Update README.md
Dec 8, 2021
cf4810b
Update README.md
Mar 18, 2022
e173b34
Update README.md
Jul 5, 2022
55c2b8d
Update README.md
Nov 16, 2022
27664d7
Update README.md
Nov 16, 2022
6703834
Update README.md
leftrk Dec 7, 2022
a48409e
Update README.md
leftrk Jun 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 22 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,39 @@
# RUCThesis
##中国人民大学LaTeX论文模板
![image](https://user-images.githubusercontent.com/11362493/144565641-926c4828-1c56-486f-94cc-4b7d14afb3c8.png)

目前支持本科、硕士(学硕+专硕)和博士

**如果已经有ructhesis.cls文件的可以直接使用。**
**目前的版本使用了[2015国标](https://github.com/ustctug/gbt-7714-2015)的参考文献样式。**
在main.tex文件下使用如下命令:

这里我们使用xelatex作为排版引擎,第一步编译main.tex文件,第二步处理参考文献,然后再编译两遍生成pdf文件。
## 中国人民大学 LaTeX 论文模板

`$ xelatex main.tex`
`$ bibtex main.tex`
`$ xelatex main.tex`
`$ xelatex main.tex`
不要担心,这个项目一定可以运行

##重要信息
**1、编辑器要用UTF-8的编码要不然你打开是乱码。**
**2、排版引擎使用XeLaTeX,要不然会报错。**
有问题找 deepwiki

https://deepwiki.com/leftrk/RUC-thesis-template-for-LaTeX

###必要的字体文件
> 符合学校和老师的模板就是好模板,你需要仔细的考虑自己是否需要LaTeX,其实 Word 也是不错的软件。

字体 | PostScript名称
------------ | -------------
Times New Roman | TimesNewRomanPSMT
Arial | ArialMT
Courier New | CourierNewPSMT
宋体 | SimSun
黑体 | SimHei
仿宋 | FangSong
> 临近毕业,发邮件提问的学弟学妹越来越多了,希望大家开[issue](https://github.com/GH1995/RUC-thesis-template-for-LaTeX/issues)讨论,或者直接发PR,这样可以帮助更多的人。


**需要生成封皮的还需要自行下载安装**
目前支持本科、硕士(学硕+专硕)和博士,排版出来的封面和下面差不多,可以在 [overleaf](https://www.overleaf.com/read/kmjxwrcjstqx) 上直接预览

- 方正小标宋 PostScript名称:FZXBSJW–GB1-0
<img src="./figures/Snipaste_2020-06-17_03-55-47.png" height="500rem" alt="example" align=center />

###必要的宏包
如果已经有`ructhesis.cls`文件的可以直接使用。目前的版本使用了[2015国标](https://github.com/ustctug/gbt-7714-2015)的参考文献样式.

**全部都是TeX Live自带的**
- ctexbook
- geometry
- hyperref
- graphicx
- titletoc
- ifxetex
- ifthen
- calc
- lscape
- multicol
- color
- pstricks
本模版使用`xelatex`作为排版引擎,推荐使用 overleaf 或 Linux/MacOS,因为无论是 MacTex 还是 Windows 上的 TexLive 安装都容易出错。

###想编译模板文件和生成手册的可以执行下述代码
生成模板文件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`
您可能欠缺一部分字体,为此我们提供[这里(不是百度网盘)](https://ruc.lanzouo.com/inJo9xec09i)以供下载。

###联系
如果模板本身的问题可以上[GitHub](https://github.com/ZebinWang/ructhesis)上发篇issue。
## Ubuntu 安装 LaTeX

如果想贡献代码的请email我: <me@zebinwang.com>
```shell
sudo apt install texlive-full
```

## vscode + Mac/Linux(recommand)

我目前采用的[方案](https://yangyq.net/2022/05/latex-with-visual-studio-code.html),[视频教程](https://www.bilibili.com/video/BV1Y34y1r7jH/)


![Alt](https://repobeats.axiom.co/api/embed/178d62098f91e5a8b1c3439855fa0ec5cae1f803.svg "Repobeats analytics image")
6 changes: 4 additions & 2 deletions chap/appendix_1.tex
Original file line number Diff line number Diff line change
@@ -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.
春游浩荡,是年年寒食,梨花时节。白锦无纹香烂漫,玉树琼苞堆雪。静夜沉沉,浮光霭霭,冷浸溶溶月。人间天上,烂银霞照通彻。

浑似姑射真人,天姿灵秀,意气殊高洁。万蕊参差谁信道,不与群芳同列。浩气清英,仙才卓荦,下土难分别。瑶台归去,洞天方看清绝。
60 changes: 31 additions & 29 deletions chap/chapter1.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
\chapter{\LaTeX{} 介绍}
\epigraph{道者,万物之奥,善人之宝,不善人之所保。美言可以市尊,美行可以加人。人之不善,何弃之有?故立天子,置三公,虽有拱璧以先驷马,不如坐进此道。古之所以贵此道者何?不曰:求以得,有罪以免邪?故为天下贵。}{老子}

%\section{安装\LaTeX{} }
%\subsection{Mac OS X}
%\begin{figure}[htbp]
Expand All @@ -9,35 +11,35 @@ \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}}%
\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
\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
\end{figure}

14 changes: 14 additions & 0 deletions chap/chapter2.fdb_latexmk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Fdb version 3
["pdflatex"] 1592334309 "chapter2.tex" "chapter2.pdf" "chapter2" 1592334309
"/etc/texmf/web2c/texmf.cnf" 1587202834 1101 af7716885e081ab43982cab7b4672c1a ""
"/usr/share/texlive/texmf-dist/fonts/map/fontname/texfonts.map" 1272929888 3287 e6b82fe08f5336d4d5ebc73fb1152e87 ""
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmti7.tfm" 1136768653 1492 86331993fe614793f5e7e755835c31c5 ""
"/usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd" 1454284088 2256 80ce1168fb4ce6a85583a9cf8972c013 ""
"/usr/share/texlive/texmf-dist/web2c/texmf.cnf" 1503343927 31343 93828589fb0cea665e553ee5a17ad2d4 ""
"/usr/share/texmf/web2c/texmf.cnf" 1503343927 31343 93828589fb0cea665e553ee5a17ad2d4 ""
"/var/lib/texmf/web2c/xetex/xelatex.fmt" 1587202898 3471188 33aa358f5018835683424847207b36ec ""
"chapter2.aux" 1592334183 2229 c10ac380648704d5a8ab076ceee4f912 ""
"chapter2.tex" 1592334307 4679 6be5dab34be0f50184ee0aa895dfe2f8 ""
(generated)
"chapter2.pdf"
"chapter2.log"
11 changes: 11 additions & 0 deletions chap/chapter2.fls
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PWD /tmp/RUC-thesis-template-for-LaTeX/chap
INPUT /etc/texmf/web2c/texmf.cnf
INPUT /usr/share/texmf/web2c/texmf.cnf
INPUT /usr/share/texlive/texmf-dist/web2c/texmf.cnf
INPUT /var/lib/texmf/web2c/xetex/xelatex.fmt
INPUT chapter2.tex
OUTPUT chapter2.log
INPUT /usr/share/texlive/texmf-dist/fonts/map/fontname/texfonts.map
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmti7.tfm
INPUT /usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd
INPUT /usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd
Loading