Latex论文样式

贴下全部代码,凑个字数hh

全部文件在文章末尾~

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
\documentclass[UTF8, a4paper, zihao=-4,twoside,scheme=chinese,openany]{article}
\usepackage[margin=1in]{geometry} %将margin设为来1inch(2.5cm),符合Office word中对A4纸的默认定义。
\usepackage{fancyhdr}
\pagestyle{fancy}
\lfoot{} %这条语句可以让页码出现在下方
\renewcommand{\headrulewidth}{0pt} %去除页眉的横线
\renewcommand\appendix{\setcounter{secnumdepth}{-2}} % 隐藏标题前的序号,但是可以在目录中显示

\usepackage{ctex}
\usepackage{graphicx} %引入图片

\usepackage{setspace} %行距
%\singlespacing %单倍行距
%\onehalfspacing %1.5倍行距
%\doublespacing %双倍行距
%\setstretch{1.25} %任意行距

\usepackage{ulem} %下划线
\usepackage{indentfirst} %缩进
\usepackage{titlesec} %目录
\usepackage{titletoc} %目录
\graphicspath{{logo}} %图片路径

%=============设置中文字体========================
\usepackage{ctexsize,type1cm}
\newcommand{\yihao}{\fontsize{26pt}{39pt}\selectfont}
\newcommand{\xiaoyi}{\fontsize{24pt}{36pt}\selectfont}
\newcommand{\erhao}{\fontsize{22pt}{33pt}\selectfont}
\newcommand{\xiaoer}{\fontsize{18pt}{27pt}\selectfont}
\newcommand{\sanhao}{\fontsize{16pt}{24pt}\selectfont}
\newcommand{\xiaosan}{\fontsize{15pt}{22.5pt}\selectfont}
\newcommand{\sihao}{\fontsize{14pt}{21pt}\selectfont}
\newcommand{\xiaosi}{\fontsize{12pt}{18pt}\selectfont}
\newcommand{\wuhao}{\fontsize{10.5pt}{15.75pt}\selectfont}
\newcommand{\xiaowu}{\fontsize{9pt}{13.5pt}\selectfont}
\newcommand{\liuhao}{\fontsize{7.5pt}{11.25pt}\selectfont}
%===================================================

%===============设置目录格式=========================
\titlecontents{chapter}[4em]{\vspace{3mm}\heiti}{\contentslabel{4.0em}}{}{\titlerule*[0.5pc]{$\cdot$}\small\contentspage}

\titlecontents{section}[4em]{\small}{\contentslabel{2.5em}}{}{\titlerule*[0.5pc]{$\cdot$}\contentspage}

\titlecontents{subsection}[7.0em]{\small}{\contentslabel{3.3em}}{}{\titlerule*[.5pc]{$\cdot$}\contentspage}

\titlecontents{subsubsection}[10.0em]{\small}{\contentslabel{3.3em}}{}{\titlerule*[.5pc]{$\cdot$}\contentspage}
%===================================================

%===============参考文献============================
\bibliographystyle{plain} % 文献样式
%===================================================

\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%===================================封面===========================================================
\thispagestyle{empty} %当前页不显示页码

\begin{center}
\includegraphics[scale=0.7]{1}
\includegraphics[scale=0.9]{2}
\\~\\~\\ %在居中里空两行
%空一行:\\~\\
%\\换行
{\kaishu \erhao \bfseries 2020-2021学年第3学期}
\\~\\
{\kaishu \yihao \bfseries 《丝绸文化与东南亚发展》结课论文}
\\~\\~\\
\end{center}

%~\\ %在正文中空一行
% \leftskip=0pt \rightskip=0pt plus 0cm 左右对齐
{
\heiti \xiaoer \bfseries 题目 \qquad \uline{{\heiti \sanhao 基于深度学习图像分割筛选优质蚕细胞}}
}

\vspace{1cm}

\begin{center}
{
\kaishu \sihao \setlength{\baselineskip}{35pt} %pt磅的意思,调整{}中的行距为35磅

\hspace{1.4em} 院 \uline{\qquad 计算机与电子信息 \qquad}

\hspace{1.4em} 业 \uline{\qquad 计算机科学与技术 \qquad}

\hspace{1.4em} 名 \uline{\qquad ~~~~~~ 李旺冬 ~~~~~~~ \qquad}

\hspace{1.4em} 号 \uline{\qquad ~~~ 1907310426 ~~~ \qquad}

\hspace{1.4em} 级 \uline{~~~ 计算机与科学192班 \quad ~}

任课老师 \uline{\qquad ~~~~~~ 徐开遵 ~~~~~~~ \qquad}

%上面的空行必须有,\hspace{}可以调字间的宽度,~当空格来用
}
\vspace{3.5cm}{\songti \xiaoer 2021年8月7日}
\end{center}
%===================================封面===========================================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%===================================摘要===========================================================
\clearpage %新建一页
\thispagestyle{empty} %当前页不显示页码

\renewcommand{\abstractname}{\heiti \sihao 摘要\\}
\begin{abstract}
{
\singlespacing %单倍行距
\songti \xiaosi %\hspace{0.6em}首行缩进两个字符
\hspace{0.6em}今天天气很好,我觉得今天天气很好,我觉得今天天气很好,我觉得今天天气很好

\hspace{0.6em}今天天气很好,我觉得今天天气很好,我觉得今天天气很好,我觉得今天天气很好

%上面的空行必须有
}
\end{abstract}
\par{\heiti \sihao \bfseries 关键词:}{\heiti \xiaosi 一二三,二三四}
%===================================摘要===========================================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%===================================目录===========================================================
\clearpage %新建一页
\thispagestyle{empty} %当前页不显示页码
\tableofcontents

%===================================目录===========================================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%===================================正文===========================================================
%==================================================================================================
\clearpage %新建一页
\thispagestyle{plain} %无页眉,页脚为居中页码
\setcounter{page}{1} %从下面开始编页码
\appendix %在这之后的标题没有序号
\section{一、标题}
{
\singlespacing %单倍行距
\songti \xiaosi %\hspace{0.6em}首行缩进两个字符
\hspace{0.6em}今天天气很好,\cite{zhou2018unet++} 我觉得今天天气很好,我觉得今天天气很好,我觉得今天天气很好

\hspace{0.6em}今天天气很好,\cite{peng2019end} 我觉得今天天气很好,我觉得今天天气很好,我觉得今天天气很好

%上面的空行必须有
}
\subsection{(1)二级标题} %需要运行两次才有,不知道为啥
\subsubsection{1.三级标题}
\subsection{(2)二级标题}
\subsubsection{1.三级标题}


%==================================================================================================
\clearpage %新建一页
\thispagestyle{plain} %无页眉,页脚为居中页码
\setcounter{page}{2} %从下面开始编页码
\section{二、标题}
\subsection{(1)二级标题} %需要运行两次才有,不知道为啥
\subsubsection{1.三级标题}
\subsection{(2)二级标题}
\subsubsection{1.三级标题}

\clearpage %新建一页
\setcounter{page}{3} %从下面开始编页码

%===================================正文===========================================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%===================================参考文献========================================================
\bibliography{ref}
%===================================参考文献========================================================
\end{document}

效果如下:

全部文件如下:

链接:https://pan.baidu.com/s/13n1QH-XmrXpEJI2r1EcshA
提取码:ouu0

生成的PDF如果需要转word格式,请点击下面的链接,转换的效果还是不错的,只需要细节处检查一些格式即可

PDF to WORD | Convert PDF to Word online for free (ilovepdf.com)