latex论文撰写小记

1,088 阅读2分钟

插入引用标签

\cite{HSI:Landgrebe}

显示

图片.png

插入多个标签

\cite{Kraut1999The, kraut2001adaptive, Nasrabadi2008Regularized, Theiler2006Effect, Hybrid2007}.

显示 图片.png

显示乘号

5 $\times$ 5

结果

图片.png

$1\times1 m^2$ and $0.5\times0.5 m^2$

结果

图片.png

插入图片

\begin{figure}[htbp]
  \centering
  \includegraphics[width=12cm]{fig/subpixel.pdf}
  \caption{Four examples of targets in the MUUFL Gulfport scene with imprecise labels for illustrating the difficulties of acquiring pixel-level labeled targets. (a) Brown target in size $3\times3 m^2$. (b) Brown target in size $1\times1 m^2$ with one pixel ground truth location drift. (c - d) Faux Vineyard Green targets with potential sub-pixel nature, camouflage color and  tree canopy occlusion.}
  \label{fig:gps_shift_and_subpixel}
\end{figure}

结果

图片.png

引用图片下标

Fig. \ref{fig:workflow}

结果

图片.png

将字体设置为蓝色

先设置自定义颜色标签

\definecolor{myblue}{RGB}{20,50,200}
\definecolor{mygreen}{RGB}{34,139,34}

引用自定义颜色标签

\textcolor{myblue}{The contributions of this work are twofold. First, two sub pixel detectors, Sub-Pixel Adaptive Cosine Estimator (SPACE) and Sub-Pixel Spectral Matched Filter (SPSMF), were developed in this paper for sub-pixel hyperspectral target detection tasks under highly mixed and diverse background.}

结果

图片.png

ie.

 \ie

图片.png

标题

\section{Related Work}

结果 图片.png

希腊字母加粗

注意: \mathbf不起作用 方案一、用\usepackage{amsmath} \boldsymbol{\sigma}

\mathbf 只对公式中的普通字母ABC…abcdef等起作用。

方案二、更好的方法是使用\usepackage{bm} \bm{}来加粗

公式编写

\mathbf{\Sigma}_{b}^{-1} \mathbf{s}}

结果

图片.png

\begin{equation}
  \label{eq:ace}
  R_{\rm ACE}(\mathbf{s}, \mathbf{x})=\frac{\mathbf{s}^{T} \mathbf{\Sigma}_{b}^{-1} \mathbf{x}}{\sqrt{\mathbf{s}^{T} \mathbf{\Sigma}_{b}^{-1} \mathbf{s}} \sqrt{\mathbf{x} ^{T} \mathbf{\Sigma}_{b}^{-1} \mathbf{x} }},
\end{equation}

结果 图片.png

 $\mathbf{\Sigma}_{b}$

结果

图片.png

公式引用

From Eq. \eqref{eq:ace} and \eqref{eq:smf} 

图片.png

禁止生成编号\nonumber

\nonumber 的「反」

可能以前也讲过,不管了。 我们都知道在多行公式环境(如 align)中可以用 \nonumber(或 \notag)来禁止某行生成编号,像这样

图片.png

公式换行

\\

填补空白

\begin{eqnarray}
   &=& \left(\frac{\hat{\mathbf{s}}}{\|\hat{\mathbf{s}}\|}\right)^{T}\left(\frac{\hat{\mathbf{x}}}{\|\hat{\mathbf{x}}\|}\right)\nonumber\\
   \label{eq:ace_end}
   &=& \hat{\hat{\mathbf{s}}}^{T} \hat{\hat{\mathbf{x}}}, \hfill
\end{eqnarray}

图片.png

\cdots

图片.png