Skip to content

Commit 75af1a3

Browse files
committed
try minimal example
1 parent 07142b1 commit 75af1a3

File tree

2 files changed

+73
-66
lines changed

2 files changed

+73
-66
lines changed

main.tex

Lines changed: 4 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,7 @@
1-
\documentclass[oneside]{tongjithesis} % 双面模式请将 oneside 改为 twoside
1+
\documentclass[oneside]{tongjithesis}
22
\usepackage{tongjithesis}
33

4-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5-
% 引用文献的设置:请选择以下两种方式之一(A或B)
6-
% Citation setup: Please choose ONE method (A or B)
7-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8-
9-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10-
% A. 使用 biblatex(推荐,功能更强大)
11-
% A. Using biblatex (recommended, more powerful)
12-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13-
% \usepackage[
14-
% backend=biber, % 使用biber作为后端处理引擎
15-
% style=gb7714-2015, % 使用符合GB/T 7714-2015标准的引用样式
16-
% natbib=true, % 兼容natbib命令
17-
% ]{biblatex}
18-
% \addbibresource{bib/note.bib} % 指定参考文献数据库文件
19-
20-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21-
% B. 使用 bibtex 配合 gbt7714 宏包(传统方式)
22-
% B. Using bibtex with gbt7714 package (traditional method)
23-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24-
\usepackage[sort&compress]{gbt7714} % 加载gbt7714宏包,支持排序和压缩引用编号
25-
\bibliographystyle{gbt7714-numerical} % 设置符合GB/T 7714标准的数字式引用样式
26-
\setlength{\bibsep}{3pt} % 设置参考文献条目之间的间距
27-
284
\begin{document}
29-
30-
\input{sections/frontcover.tex}
31-
\cleardoublepage
32-
33-
\pagestyle{firststyle}
34-
\input{sections/00_abstract.tex}
35-
36-
\clearpage
37-
\tableofcontents % 放置目录
38-
\cleardoublepage
39-
40-
\pagestyle{mainstyle}
41-
\input{sections/01_intro}
42-
\clearpage
43-
\input{sections/02_math}
44-
\clearpage
45-
\input{sections/03_reference}
46-
\clearpage
47-
\input{sections/04_float}
48-
\clearpage
49-
\input{sections/05_conclusion}
50-
\clearpage
51-
52-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53-
% 参考文献列表生成(选择与上方相同的选项A或B)
54-
% Reference list generation (choose the same option A or B as above)
55-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56-
57-
% A. 如果使用biblatex,取消下面一行的注释
58-
% A. If using biblatex, uncomment the line below
59-
% \printbibliography[heading=bibintoc,title=参考文献]
60-
61-
% B. 如果使用bibtex,取消下面的注释
62-
% B. If using bibtex, uncomment the lines below
63-
\addcontentsline{toc}{section}{参考文献} % 将参考文献项加入目录
64-
\bibliography{bib/note}
65-
66-
\clearpage
67-
\input{sections/thanks}
68-
69-
\end{document}
5+
\section{Test Section}\label{sec:test}
6+
Reference to \cref{sec:test}.
7+
\end{document}

main_bk.tex

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
\documentclass[oneside]{tongjithesis} % 双面模式请将 oneside 改为 twoside
2+
\usepackage{tongjithesis}
3+
4+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5+
% 引用文献的设置:请选择以下两种方式之一(A或B)
6+
% Citation setup: Please choose ONE method (A or B)
7+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8+
9+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10+
% A. 使用 biblatex(推荐,功能更强大)
11+
% A. Using biblatex (recommended, more powerful)
12+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13+
% \usepackage[
14+
% backend=biber, % 使用biber作为后端处理引擎
15+
% style=gb7714-2015, % 使用符合GB/T 7714-2015标准的引用样式
16+
% natbib=true, % 兼容natbib命令
17+
% ]{biblatex}
18+
% \addbibresource{bib/note.bib} % 指定参考文献数据库文件
19+
20+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21+
% B. 使用 bibtex 配合 gbt7714 宏包(传统方式)
22+
% B. Using bibtex with gbt7714 package (traditional method)
23+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24+
\usepackage[sort&compress]{gbt7714} % 加载gbt7714宏包,支持排序和压缩引用编号
25+
\bibliographystyle{gbt7714-numerical} % 设置符合GB/T 7714标准的数字式引用样式
26+
\setlength{\bibsep}{3pt} % 设置参考文献条目之间的间距
27+
28+
\begin{document}
29+
30+
\input{sections/frontcover.tex}
31+
\cleardoublepage
32+
33+
\pagestyle{firststyle}
34+
\input{sections/00_abstract.tex}
35+
36+
\clearpage
37+
\tableofcontents % 放置目录
38+
\cleardoublepage
39+
40+
\pagestyle{mainstyle}
41+
\input{sections/01_intro}
42+
\clearpage
43+
\input{sections/02_math}
44+
\clearpage
45+
\input{sections/03_reference}
46+
\clearpage
47+
\input{sections/04_float}
48+
\clearpage
49+
\input{sections/05_conclusion}
50+
\clearpage
51+
52+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53+
% 参考文献列表生成(选择与上方相同的选项A或B)
54+
% Reference list generation (choose the same option A or B as above)
55+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56+
57+
% A. 如果使用biblatex,取消下面一行的注释
58+
% A. If using biblatex, uncomment the line below
59+
% \printbibliography[heading=bibintoc,title=参考文献]
60+
61+
% B. 如果使用bibtex,取消下面的注释
62+
% B. If using bibtex, uncomment the lines below
63+
\addcontentsline{toc}{section}{参考文献} % 将参考文献项加入目录
64+
\bibliography{bib/note}
65+
66+
\clearpage
67+
\input{sections/thanks}
68+
69+
\end{document}

0 commit comments

Comments
 (0)