latex编辑总结
总结一下常见插入
插入图片
\begin{figure}[H]
\centering
\includegraphics[width=0.5\linewidth]{"figure/figurename.jpg"}
\caption{captionname}
\label{fig:9}
\end{figure}
插入三线表
\begin{table}[H]
\caption{\textbf{the error of RF}}%标题
\centering%把表居中
\begin{tabular}{cccc}%四个c代表该表一共四列,内容全部居中
\toprule%第一道横线
&MAE&MSE&RMSE \\
\midrule%第二道横线
value&0.4017&0.1837&0.4286 \\
\bottomrule%第三道横线
\end{tabular}
\end{table}
插入公式
- 使用align格式, 多行公式会自动编号, center是生成居中的文本环境
\begin{center}
\begin{align}
\mathcal{L}(\phi) & = \sum_{i} l\left(\hat{y}_{i}, y_{i}\right)+\sum_{k} \Omega\left(f_{k}\right)
\end{align}
\end{center}