hiko
Diary:(·-·)Hoping I Keep On, Hanging In Kinda Okay---

MacTeX

软件推荐

  • 首选 Texifier,因为它可以帮助你一天速成 MacTeX。

  • 次选 TeXShop,因为它已包含在 MacTeX 中,安装后自动可以使用。

  • 最次选 VS Code,因为它可以自动补全。

学习资料

论文模板

  1. 总模版
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
\documentclass{cumcmthesis}
% \documentclass[withoutpreface]{cumcmthesis}

\usepackage[framemethod=TikZ]{mdframed}
\usepackage{url}
\usepackage{subcaption}
\usepackage{cite}
\title{题目}

\begin{document}

\maketitle
% 摘要
\begin{abstract}

\keywords{} %关键词
\thispagestyle{empty}
\end{abstract}
\tableofcontents
\thispagestyle{empty}

\newpage
\section{问题重述}
\subsection{问题背景}
\subsection{问题提出}

\section{问题分析}
\subsection{问题一的分析}
\subsection{问题二的分析}
\subsection{问题三的分析}
\subsection{问题四的分析}

\section{模型假设}
\begin{enumerate}
\item 假设
\item 假设
\item 假设
\end{enumerate}

\section{符号说明}
\begin{table}[!htbp] % 可以用[H]
\caption{表格的名字}\label{tab:001} \centering
\begin{tabular}{cc}
\toprule[1.5pt]
符号 & 说明\\
\midrule[1pt]
a & 1 \\
b & 2 \\
c & 3 \\
\bottomrule[1.5pt]
\end{tabular}
\end{table}

\section{模型的建立与求解}
\subsection{数据预处理}
\subsection{问题一模型的建立与求解}
\subsection{问题二模型的建立与求解}
\subsection{问题三模型的建立与求解}
\subsection{问题四模型的建立与求解}

\section{模型的分析与检验}
\subsection{}
\subsection{}

\section{模型的评价、改进与推广}
\subsection{模型的优点}
\subsection{模型的缺点}
\subsection{模型的改进}
\subsection{模型的推广}

\newpage
% 参考文献
\begin{thebibliography}{9}
\bibitem{ref1}
\bibitem{ref2}
\end{thebibliography}

\newpage
\begin{appendices}
\section*{附录}
\end{appendices}

\end{document}
  1. 将当前页面的页码设置为 1
1
\setcounter{page}{1}
  1. 强制开始新的一页
1
\newpage
  1. 插入图片
1
2
3
4
5
6
7
如图\ref{fig:example}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.5\textwidth]{图片文件的名字}
\caption{图片的标题}
\label{fig:example}
\end{figure}
1
2
3
\includegraphics[width=5cm]{image.png}  % 设置宽度为 5cm
\includegraphics[height=4cm]{image.png} % 设置高度为 4cm
\includegraphics[scale=0.5]{image.png} % 设置缩放比例为 50%
  1. 插入表格
1
2
3
4
5
6
7
8
9
10
11
12
\begin{table}[htbp]
\centering
\caption{表格的标题}
\begin{tabular}{ccc}
\toprule
列 1 & 列 2 \\
\midrule
内容 1 & 内容 2 \\
内容 4 & 内容 5 \\
\bottomrule
\end{tabular}
\end{table}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
% 合并单元格
\begin{table}[htbp]
\centering
\caption{表格的标题}
\begin{tabular}{|c|c|c|}
\hline
\multicolumn{2}{|c|}{合并两列} & 单独一列 \\
\hline
内容 1 & 内容 2 & 内容 3 \\
\hline
内容 4 & 内容 5 & 内容 6 \\
\hline
\end{tabular}
\end{table}
  1. 插入公式
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% 一行编号
\begin{equation}
E = mc^2
\end{equation}
% 多行编号
\begin{align}
a &= b + c \\
x &= y + z
\end{align}
% 无编号
\[
E = mc^2
\]
% 行内
$E = mc^2$
1
2
3
4
5
6
7
8
% 组合公式
\[
f(x) =
\begin{cases}
x^2 & \text{if } x \geq 0 \\
-x^2 & \text{if } x < 0
\end{cases}
\]
  1. 文献引用
1
\textsuperscript{\cite{ref1}}
  1. 插入列表
1
2
3
4
\begin{enumerate}[leftmargin=4em, label=(\arabic*)]
\item
\item
\end{enumerate}
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
% 无序列表
\begin{itemize}
\item 项目1
\item 项目2
\item 项目3
\end{itemize}
% 有序列表
\begin{enumerate}
\item 第一项
\item 第二项
\item 第三项
\end{enumerate}
% 描述性列表
\begin{description}
\item[项1] 描述1
\item[项2] 描述2
\item[项3] 描述3
\end{description}
% 嵌套列表
\begin{enumerate}
\item 第一项
\begin{itemize}
\item 嵌套项目1
\item 嵌套项目2
\end{itemize}
\item 第二项
\end{enumerate}
  1. 设置文本
1
2
3
4
\textbf{粗体}
\textit{斜体}
\underline{下划线}
\textcolor{red}{文本} %颜色
1
2
3
4
5
6
7
\tiny{极小字体}
\scriptsize{稍小字体}
\small{小字体}
\normalsize{正常字体}
\large{大字体}
\Large{更大字体}
\huge{更更大字体}
  1. 脚注
1
这是一段带脚注的文字\footnote{这是脚注内容}。
  1. 符号
1
2
3
4
5
6
7
8
9
10
% 数学符号
\int, \sum, \prod, \infty, \sin, \cos, \tan, \log, \lim
% 拉丁字母
\alpha, \beta, \gamma, \delta, \epsilon, \zeta
% 运算符
\frac{a}{b} % 分数
\sqrt{a} % 平方根
\sum_{i=1}^n x_i % 求和符号
\prod_{i=1}^n x_i % 乘积符号
\int_a^b f(x) \, dx % 定积分
  1. 目录
1
2
\tableofcontents
\setcounter{tocdepth}{2} % 设置目录层级深度,1是章节,2是小节,3是子小节
  1. 插入代码
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
\lstset{
language=python, % 设置代码语言
backgroundcolor=\color{white}, % 背景颜色
basicstyle=\ttfamily\small, % 基本字体样式
keywordstyle=\color{blue!50!white}\bfseries, % 更柔和的蓝色
commentstyle=\color{green!70!black}, % 更柔和的绿色
stringstyle=\color{red!40!white}, % 更柔和的红色
numbers=left, % 行号显示位置
numberstyle=\tiny\color{gray}, % 行号字体
stepnumber=1, % 行号递增步长
numbersep=5pt, % 行号与代码之间的距离
showstringspaces=false, % 不显示字符串中的空格
breaklines=true, % 自动换行
breakatwhitespace=true, % 在空格处换行
frame=single, % 给代码加框
rulecolor=\color{lightgray} % 框的颜色
caption=标题 % 代码块的标题
}

\begin{lstlisting}
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
\end{lstlisting}

If you liked this article, how about grabbing me a coffee? Thanks a bunch!💗

WechatWechat
AlipayAlipay
Search
Matching results:
No matching articles were found.