overleaf保姆级0基础教程(下)
推荐两个latex公式网站:
一、插入表格
\begin{center}
\begin{tabular}{c c c}
cell1 & cell2 & cell3 \\
cell4 & cell5 & cell6 \\
cell7 & cell8 & cell9
\end{tabular}
\end{center}
\begin{center}
\begin{tabular}{|c|c|c|}
\hline
cell1 & cell2 & cell3 \\
cell4 & cell5 & cell6 \\
cell7 & cell8 & cell9 \\
\hline
\end{tabular}
\end{center}
\begin{center}
\begin{tabular}{|c c c c|}
\hline
col1 & col2 & col3 & col4 \\
\hline
\hline
1 & 2 & 2987 & 287 \\
\hline
8 & 2 & 907 & 870 \\
\hline
3 & 6 & 173 & 4924 \\
\hline
\end{tabular}
\end{center}
二、插入固定位置图片
创建文件夹
导入图片
\usepackage{graphicx}
\includegraphics[scale=0.5]{images/machine.jpg}
scale表示规格大小,也可以根据angel修改图片的角度
三、文字包围图片
\usepackage{wrapfig}
\begin{wrapfigure}{r}{0.4\textwidth}
\includegraphics[width=0.4\textwidth]{images/machine.jpg}
\end{wrapfigure}
四、图片标题和图片引用
\begin{figure}[h]
\centering
\includegraphics[width=0.5\textwidth]{images/machine.jpg}
\caption{machine learning}
\label{fig:1}
\end{figure}