1.插入C++代码(边框、关键字高亮等)
%set C++ Code
\lstset{numbers=left,
numberstyle= \tiny,
keywordstyle= \color{ blue!70},
commentstyle=\color{red!50!green!50!blue!50},
frame=shadowbox,
rulesepcolor= \color{ red!20!green!20!blue!20},
extendedchars=false
}
\begin{lstlisting}[language={[ANSI]C++}]
代码部分。。。。。
\end{lstlisting}
效果如图:
2.插入图片
\begin{figure}[!htbp]
\centering
% Requires \usepackage{graphicx}
\includegraphics[width=12cm]{picture1.jpg}\\
\caption{Consequence}\label{}
\end{figure}
3.花括号
$$ Score=\left\{
\begin{aligned}
0 & = & Match \\
1 & = & Dismatch \\
1 & = & Ins/Del
\end{aligned}
\right.
$$
效果如图:
3.未完待续