posts - 15,  comments - 0,  trackbacks - 0
\documentclass{article}
\usepackage{xeCJK}
\setmainfont{Arial}
\setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}
\setCJKsansfont{SimHei}
\setCJKmonofont{SimSun}
\setCJKfamilyfont{rm}[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}
\usepackage{xcolor}
\usepackage{color}
\usepackage[colorlinks,
            linkcolor=black,
            anchorcolor=blue,
            citecolor=green
            ]{hyperref}
%设置页边距
\usepackage[top=1in, bottom=1in, left=1.25in, right=1.25in]{geometry}
%插入图片
\usepackage{graphicx}
%\renewcommand*\contentsname{目录}
%\renewcommand*\abstractname{摘要}
\renewcommand{\contentsname}{目录}
\renewcommand{\listfigurename}{插图目录}
\renewcommand{\listtablename}{表格目录}
\renewcommand{\refname}{参考文献}
\renewcommand{\abstractname}{摘要}
\renewcommand{\indexname}{索引}
\renewcommand{\tablename}{表}
\renewcommand{\figurename}{图}
\renewcommand\appendixname{附录}
\renewcommand\partname{部分}
\renewcommand\today{\number\year年\number\month月\number\day日}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Using Code
\usepackage{color}
\usepackage{xcolor}
\definecolor{keywordcolor}{rgb}{0.8,0.1,0.5}
\usepackage{listings}
\lstset{
language=C++, %用于设置语言为C++
language=python,
% numbers=left, %设置行号位置
%   numberstyle=\tiny, %设置行号大小
% frame=single, %设置边框格式
    escapeinside=``, %逃逸字符(1左面的键),用于显示中文
keywordstyle=\color{keywordcolor} \bfseries, %设置关键词为蓝色,需要引xcolor宏包
identifierstyle=,
basicstyle=\ttfamily, 
commentstyle=\color{blue} \textit,
stringstyle=\ttfamily, 
breaklines, %自动折行
    extendedchars=false, %解决代码跨页时,章节标题,页眉等汉字不显示的问题
xleftmargin=2em,xrightmargin=2em, aboveskip=1em, %设置边距
    tabsize=4, %设置tab空格数
showstringspaces=false,
%frame=shadowbox, %边框
captionpos=b
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Using Code
\title{}
\author{}
\date{}
\begin{document}
\maketitle
\tableofcontents
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Contents
\section{试验结果截图}
实验最后测试了www.baidu.com, os.hit.edu.cn, www.hit.edu.cn,结果如下图。
\begin{figure}[htbp]
\centering
\includegraphics[width=1.2\textwidth]{res1.png}
\caption{追踪www.baidu.com与os.hit.edu.cn}
\end{figure}

\begin{figure}[htbp]
\centering
\includegraphics[width=1.2\textwidth]{res2.png}
\caption{追踪www.hit.edu.cn}
\end{figure}

\end{document}
posted on 2012-12-24 15:28 lixiucheng 阅读(2776) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理