目录
插入图片
\begin{figure}[ht]
\centering
\includegraphics[scale=0.6]{fullscreen.png}
\caption{this is a figure demo}
\label{fig:label}
\end{figure}
使用相对路径
\includegraphics[scale=0.6]{fig/fullscreen.png}
当然了,graphicx宏包有一个特别有用的命令就是graphicspath它可以指定我们图片的路径。
\documentclass{article}
\usepackage{graphicx}
\graphicspath{{figs/}}
\begin{document}
并排图片
\documentclass{article}
\usepackage{graphicx} %use graph format
\usepackage{subfigure}
1. 并排摆放,共享标题
\begin{figure}[htbp]
\centering
\includegraphics{left}
\includegraphics{right}
\caption{反清复明}
\end{figure}
2. 并排摆放,各有标题
\begin{figure}[htbp]
\centering
\begin{minipage}[t]{0.3\textwidth}
\centering
\includegraphics{left}
\caption{清明}
\end{minipage}
\begin{minipage}[t]{0.3\textwidth}
\centering
\includegraphics{right}
\caption{反复}
\end{minipage}
\end{figure}
3.并排摆放,共享标题,各有子标题
\begin{figure}
\centering
\subfigure[house]{%\label{fig:subfig:a} %% label for first subfigure
\includegraphics[width=1.5in]{./a.png} }
\subfigure[hotel]{%\label{fig:subfig:b} %% label for second subfigure
\includegraphics[width=1.5in]{./b.png} }
\caption{Frames of the house and hotel data sets}
%\label{fig:subfig} %% label for entire figure
\end{figure}
表格
\begin{table}
\Large
\caption{自动换行}
\begin{center}
\begin{tabular}{|l|l|l|l| p{5cm}|}
\hline
Item & Name & Gender & Habit & Self-introduction \\ \hline
1 & Jimmy & Male & Badminton & Hi, everyone,my name is Jimmy. I come from Hamilton,
and it's my great honour to give this example. My topic is about how to use p{width} command \\ \hline
2 & Jimmy & Male & Badminton & Hi, everyone,my name is Jimmy. I come from Hamilton,
and it's my great honour to give this example. My topic is about how to use p{width} command \\
\hline
\end{tabular}
\end{center}
\end{table}
代码
{article}
usepackage{listings}
begin{document}%
begin{lstlisting}[language=?]
源代码
end{lstlisting}%
end{document}
引用参考文献方法
方法一:不使用BibTeX
\begin{thebibliography}{99}
\bibitem{ref1}Zheng L, Wang S, Tian L, et al., Query-adaptive late fusion for image search and person re-identification, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015: 1741-1750.
\bibitem{ref2}Arandjelović R, Zisserman A, Three things everyone should know to improve object retrieval, Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on, IEEE, 2012: 2911-2918.
\bibitem{ref3}Lowe D G. Distinctive image features from scale-invariant keypoints, International journal of computer vision, 2004, 60(2): 91-110.
\bibitem{ref4}Philbin J, Chum O, Isard M, et al. Lost in quantization: Improving particular object retrieval in large scale image databases, Computer Vision and Pattern Recognition, 2008. CVPR 2008, IEEE Conference on, IEEE, 2008: 1-8.
\end{thebibliography}
引用的时候用
\cite{ref1}
\cite{ref1, ref5}
方法二:使用BibTeX
BibTeX 使用数据库的的方式来管理参考文献. BibTeX 文件的后缀名为 .bib . 用endnote就可以创建。然后
1) 设置参考文献的类型 (bibliography style). 标准的为 plain:
\bibliographystyle{plain}
将上面的命令放在 LaTeX 文档的 \begin{document}后边.
- unsrt – 基本上跟 plain 类型一样,除了参考文献的条目的编号是按照引用的顺序,而不是按照作者的字母顺序.
- alpha – 类似于 plain 类型,当参考文献的条目的编号基于作者名字和出版年份的顺序.
- abbrv – 缩写格式
2) 标记引用 (Make citations). 当你在文档中想使用引用时, 插入 LaTeX 命令
\cite{引用文章名称}
"引用文章名称" 就是前边定义@article后面的名称.
3) 告诉LaTeX生成参考文献列表,在 LaTeX 的结束前输入
\bibliography{bibfile}
这里bibfile 就是你的 BibTeX 数据库文件 bibfile.bib .
插入网页参考
1. 在导言去加入url包,及\usepackage{url}
2.\url{http://www.tp-ontrol.hu/index.php/TP_Toolbox}