Overleaf uses tips (note by yourself)

Input in Chinese:

Import package: \usepackage[UTF8]{ctex}
switch compiler to XeLatex
insert image description here
----"insert image description here

Start another paragraph:

Just leave a few lines blank,
for exampleinsert image description here

Note: ctrl+/ after selection

use of headings

\section{
    
    这是一级标题}
\subsection{
    
    这是二级标题}
\subsubsection{
    
    这是三级标题}

insert formula

Interline formula (inline): use $...$ to enclose the formula. For example, the effect of $w^{[i]}$
: insert image description here
the formula occupies a single line and is automatically numbered:

\begin{
    
    equation}
.....//你的公式
\end{
    
    equation} 
//比如
\begin{
    
    equation}
S(x)=\frac{
    
    1}{
    
    1+e^{
    
    -x}}
\end{
    
    equation} 

insert image description here
(Note: I already have four formulas here before, so this one is inserted and numbered 5) For the
specific formula to be inserted, see this big guy's blog:
https://blog.csdn.net/baidu_38060633/article/ details/79183905

You can use https://www.latexlive.com/ to edit the formula first and then copy the corresponding code into it

insert table

2022/9/18
Reference blog: https://blog.csdn.net/qq_33684682/article/details/125048367
directly use this website to complete the form, and then paste the latex code automatically generated by the website to
https://www. tablesgenerator.com/Because
I am too lazy to write in detail, just paste and copy to see the effect, you can compare and change:
three-line table:

 \begin{
    
    table}[htbp]
\renewcommand\arraystretch{
    
    1.5}
\setlength{
    
    \tabcolsep}{
    
    3pt} %设置列宽
\centering
\caption{
    
    Iris数据集中每个花卉类型的真实值得数量}
\begin{
    
    tabular}{
    
    cccc}%l=left, r=right,c=center分别代表左对齐,右对齐和居中,字母c的个数代表列数
\hline  %这是那个分隔线
花卉类别 &山鸢尾  &变色鸢尾  &维吉尼亚鸢尾\\ \hline
训练集 &36 &35  &39 \\  %这个\\换行必用 ,&就是对应的列
验证集 &14  &15  &11 \\ 
\end{
    
    tabular}
\end{
    
    table}

Effect:
insert image description here
There is another:

\newcommand{
    
    \tabincell}[2]{
    
    \begin{
    
    tabular}{
    
    @{
    
    }#1@{}}#2\end{tabular}}  
%表格自动换行
\begin{
    
    table*}[t]
\caption{
    
    五种分类算法优缺点对比}
\centering
    \begin{
    
    tabular}{
    
    |c|c|c|}
        \toprule
        {
    
    \bf 算法} & {
    
    \bf 优点} & {
    
    \bf 缺点} \\      
%\bf表示字体加粗
        \hline
         KNN & \tabincell{
    
    c}{
    
    简单、有效;对数据的分布无要求;\\直接使用训练集对
数据样本进行分类,训练阶段较快}  & \tabincell{
    
    c}{
    
    \\不建立分类模型;K值不易选择;\\不易发现特征之间的关
系;数据不均
衡时,预测偏差比较大}  \\
%需要分行的单元格的语句用\tabincell{
    
    c}{
    
    所填写第一行内容\\第二行内容···},可以根据需要换行,也不限定换多少行。
        \hline
        NB & \tabincell{
    
    c}{
    
    训练和分类仅仅是特征概率的数学运算,
分类速度快;\\在对大样本进行处理
时有很大的优势;对结果解释容易理解} & \tabincell{
    
    c}{
    
    使用样本属性独立性的假设,\\样本属性
有关联时,会导致分类性能降低} \\
         \hline
        DL & \tabincell{
    
    c}{
    
    结构简单,可以可视化分析;\\容易提取出分
类规则;适合处理量比较大的数据;} & \tabincell{
    
    c}{
    
    不易处理缺失数据;\\易出现过拟合;忽略
了数据集中属性的相互关联;} \\
         \hline
        SVM & \tabincell{
    
    c}{
    
    解决小样本、非线性问题;\\无局部极小值
问题;可以很好的处理高维数据集;泛化
能力比较强} & \tabincell{
    
    c}{
    
    对缺失数据敏感\\适用于
二分类问题,\\对于多分类问题容易产生
过拟合} \\
         \hline
        ANN & \tabincell{
    
    c}{
    
    分类准确度高,学习能力强;\\对噪声数据
鲁棒性和容错性较强;\\对未经训练的数据也
具有较好的预测分类能力} & \tabincell{
    
    c}{
    
    参数较多;\\训练时间较
长,有可能陷入局部极小值;\\黑箱过程,不能
观察中间结果,可解释性差;} \\
        \bottomrule
    \end{
    
    tabular}
\end{
    
    table*}

See the effect:insert image description here

insert picture

First import the package:

\usepackage{
    
    graphicx}
\graphicspath{
    
     {
    
    image/} } //image是你自己存放图片的文件夹

For example:
insert image description here
Created by yourself in the left menu bar

\begin{
    
    figure}[t]
\centering
\includegraphics[width=8cm,height=10cm]{
    
    dl.jpeg}\\{
    
    这里是图片路径}
\caption{
    
    决策树算法}\\图片的名称
\label{
    
    fig:label4}  \\图片的label
\end{
    
    figure}

In this way, the pictures can have some relative position changes without causing problems such as difficulty in pagination.

For example:
insert image description here
**\begin{figure}[t]** A few explanations about this line
[t] I understand that this means how to insert pictures first
Optional parameters:

Optional parameter
h here (here)
t top of page (top)
b bottom of page (bottom)
p separate page (page)

Multiple can coexist at the same time

Insert a large picture occupying two columns:
just change the previous figure to figure*, and the others are the same

Reference:
https://blog.csdn.net/chichoxian/article/details/52588833
https://blog.csdn.net/xovee/article/details/109254872

Guess you like

Origin blog.csdn.net/qq_43545501/article/details/121183171