Latex 写作注意事项
Latex 写作注意事项
- 环境
- label
- begin 语法
- 行间公式
- 字体
- 括号
- 引用
环境
\documentclass[preprint,12pt,authoryear]{elsarticle}
\usepackage{times}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{lineno}
\linenumbers
\usepackage{bigstrut,multirow,rotating}
\usepackage{booktabs}
\usepackage{color}
\usepackage[
colorlinks=true,
citecolor=black,
linkcolor=black,
urlcolor=black,
anchorcolor=black,
]{hyperref}
\usepackage{bm}
\usepackage{amsfonts}
\usepackage{enumitem}
\setlist[enumerate,1]{label=(\arabic*)}
label
紧紧跟在 includegraphics 后面, 避免序号不一致问题
- 例子
\begin{figure}[htbp] \centering\includegraphics[width = 8cm]{Figure_NA_MMSI1.eps}\caption{Total Numbers Comparasion of $NA_{\text{MMSI}}$}\label{fig:NAMMSIComparasion} \end{figure}
\begin{table}[htbp]\centering\caption{ Numerical Comparasion of $NA_{\text{MMSI}}$}\begin{tabular}{cccc}\hlineMethod & \multicolumn{1}{p{5.5em}}{DeepSORVF\newline{}no anti} & \multicolumn{1}{p{5.5em}}{DeepSORVF\newline{}anti} & KNB \bigstrut\\\hlineVideo-01 & 45 & 84 & 39 \bigstrut[t]\\Total & 5694 & 6455 & 716 \bigstrut[b]\\\hline\end{tabular}%\label{tab:NA_MMSI}\end{table}%
begin 语法
\begin{eqation}中间不能空行\end{equation}
行间公式
使用 $
字体
粗斜体 \bm{}
细正体 \mathrm{}
粗正体 \mathbf{} \bf{}已废弃
括号
\left( 比 ( 更清楚,适配好
引用
公式: \hyperref[eqn:CV_AIS]{Equation~\ref{eqn:CV_AIS}}