Merge branch 'edit' of http://bdgit.educoder.net/xphi/p2l5wexnu into wireshark
	
		
	
				
					
				
			| @ -1,192 +0,0 @@ | ||||
| %# -*- coding: utf-8-unix -*- | ||||
| @article {EK85, | ||||
| 	AUTHOR = {Ed Turner and Karen Gold}, | ||||
| 	TITLE = {Rubik's groups}, | ||||
| 	JOURNAL = {\textbf{\textit{American Mathematical Monthly}}}, | ||||
| 	VOLUME = {92}, | ||||
| 	NUMBER = {9}, | ||||
| 	PAGES = {617-629}, | ||||
| 	YEAR = {1985} | ||||
| } | ||||
| 
 | ||||
| @article {G03, | ||||
| 	AUTHOR = {Gabriel Navarro}, | ||||
| 	TITLE = {On the fundamental theorem of finite abelian groups}, | ||||
| 	JOURNAL = {\textbf{\textit{American Mathematical Monthly}}}, | ||||
| 	VOLUME = {110}, | ||||
| 	NUMBER = {2}, | ||||
| 	PAGES = {153-154}, | ||||
| 	YEAR = {2003} | ||||
| } | ||||
| 
 | ||||
| @article {G64, | ||||
| 	AUTHOR = {Gert Sabidussi}, | ||||
| 	TITLE = {Vertex-transitive graphs}, | ||||
| 	JOURNAL = {\textbf{\textit{Monatshefte fur Mathematik}}}, | ||||
| 	VOLUME = {68}, | ||||
| 	NUMBER = {5}, | ||||
| 	PAGES = {426-438}, | ||||
| 	YEAR = {1964} | ||||
| } | ||||
| 
 | ||||
| @article {BDC64, | ||||
| 	AUTHOR = { B.A. Kennedy and D.A. McQuarrie and Jr,C.H. Brubaker }, | ||||
| 	TITLE = {Group theory and isomerism}, | ||||
| 	JOURNAL = {\textbf{\textit{Inorganic Chemistry}}}, | ||||
| 	VOLUME = {3}, | ||||
| 	NUMBER = {2}, | ||||
| 	PAGES = {265-268}, | ||||
| 	YEAR = {1964} | ||||
| } | ||||
| 
 | ||||
| @book{U05, | ||||
| 	title = {\textbf{\textit{International Tables for Crystallography}}}, | ||||
| 	publisher = {Springer}, | ||||
| 	year = {2005}, | ||||
| 	edition   = {5th edition}, | ||||
| 	author = { Uri Shmueli}, | ||||
| 	volume={  A} | ||||
| } | ||||
| 
 | ||||
| @book{D65, | ||||
| 	title = {\textbf{\textit{Molecular Symmetry}}}, | ||||
| 	publisher = {D. Van Nostrand}, | ||||
| 	year = {1965}, | ||||
| 	adress={London}, | ||||
| 	author = { David S. Schonland} | ||||
| } | ||||
| 
 | ||||
| @book{ST69, | ||||
| 	title = {\textbf{\textit{Theory of Groups and its Application to | ||||
| 	Physical Problems}}}, | ||||
| 	publisher = { Academic Press}, | ||||
| 	year = {1969}, | ||||
| 	author = {S. Bhagavantam and T. Venkatarayudu}, | ||||
| 	address={ New York} | ||||
| } | ||||
| 
 | ||||
| @book{D07, | ||||
| 	title = {\textbf{\textit{Music: a Mathematical Offering}}}, | ||||
| 	publisher = { Cambridge University Press}, | ||||
| 	year = {2007}, | ||||
| 	author = { David J. Benson}, | ||||
| 	address={Cambridge CB2 2RU, UK} | ||||
| } | ||||
| 
 | ||||
| @book{C78, | ||||
| 	title = {\textbf{\textit{Field Theory and its Classic Problems}}}, | ||||
| 	publisher = {Mathematical Association of America}, | ||||
| 	year = {1978}, | ||||
| 	author = {  Charles Robert Hadlock}, | ||||
| 	series={Number 19 in | ||||
| 	Carus Mathematical Monographs} | ||||
| } | ||||
| 
 | ||||
| @book{WI64, | ||||
| 	title = {\textbf{\textit{ Groups and their Graphs}}}, | ||||
| 	publisher = {Mathematical Association of America}, | ||||
| 	year = {1964}, | ||||
| 	author = {  Wilhelm Magnus and Israel Grossman}, | ||||
| 	series={Anneli Lax New | ||||
| 	Mathematical Library} | ||||
| } | ||||
| 
 | ||||
| @book{HBE02, | ||||
| 	title = {The SmallGroups library | ||||
| 	—— a GAP package}, | ||||
| 	year = {2002}, | ||||
| 	author = { Hans Ulrich Besche and Bettina Eick and Eamonn O'Brien} | ||||
| } | ||||
| 
 | ||||
| @book{JS03, | ||||
| 	title = {Classification of finite abelian groups}, | ||||
| 	publisher={ Course notes available on | ||||
| 	the World Wide Web}, | ||||
| 	year = {2003}, | ||||
| 	author = { John M. Sullivan} | ||||
| } | ||||
| 
 | ||||
| @book{P88, | ||||
| 	title = {\textbf{\textit{Group representations in probability and statistics}}}, | ||||
| 	publisher = { Academic Press}, | ||||
| 	year = {1988}, | ||||
| 	author = { Persi Diaconis}, | ||||
| 	address={ Institute of Mathe- | ||||
| 	matical Statistics, Hayward, CA}, | ||||
| 	series={Institute of | ||||
| 	Mathematical Statistics Lecture Notes——Monograph Series,11} | ||||
| 	 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @online {J05, | ||||
| 	AUTHOR = {Jonathan Goss}, | ||||
| 	TITLE = {Point group symmetry}, | ||||
| 	URL = {www.phys.ncl.ac.uk/staff/njpg/symmetry/}, | ||||
| 	YEAR = {2005} | ||||
| 	 | ||||
| } | ||||
| 
 | ||||
| @online {L03, | ||||
| 	AUTHOR = {Larry Copes}, | ||||
| 	TITLE = {Representations of contra dance moves}, | ||||
| 	URL = { www.edmath.org/copes/contra/representations.html}, | ||||
| 	YEAR = {2003} | ||||
| 	 | ||||
| } | ||||
| 
 | ||||
| @online {I03, | ||||
| 	AUTHOR = { Ivars Peterson}, | ||||
| 	TITLE = { Contra dances, matrices, and groups}, | ||||
| 	URL = {www.sciencenews.org/articles/20030308/mathtrek.asp}, | ||||
| 	YEAR = {2003} | ||||
| 	 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| @book{M91, | ||||
| 	author = {Michael Artin}, | ||||
| 	title = { \textbf{\textit{Algebra}}}, | ||||
| 	publisher = {Prentice Hall}, | ||||
| 	address = { Englewood Cliffs, NJ}, | ||||
| 	year = {1991} | ||||
| 	 | ||||
| } | ||||
| 
 | ||||
| @book{J02, | ||||
| 	title = {\textbf{\textit{A First Course in Abstract Algebra}}}, | ||||
| 	publisher = {Addison-Wesley}, | ||||
| 	address = {  Reading, MA}, | ||||
| 	year = {2002}, | ||||
| 	edition   = {seventh edition}, | ||||
| 	author = { John B. Fraleigh} | ||||
| } | ||||
| 
 | ||||
| @book{D01, | ||||
| 	title = {\textbf{\textit{Solved and Unsolved Problems in Number Theory}}}, | ||||
| 	publisher = {American | ||||
| 	Mathematical Society Chelsea Publishing}, | ||||
| 	address = {   Providence, RI}, | ||||
| 	year = {2001}, | ||||
| 	edition   = {fourth edition}, | ||||
| 	author = { Daniel Shanks} | ||||
| } | ||||
| 
 | ||||
| @book{J04, | ||||
| 	title = {\textbf{\textit{Contemporary Abstract Algebra}}}, | ||||
| 	publisher = {Houghton Mifflin Company}, | ||||
| 	year = {2004}, | ||||
| 	author = { Joseph Gallian} | ||||
| } | ||||
| 
 | ||||
| @book{E30, | ||||
| 	title = {\textbf{\textit{Algebraic Equations, An Introduction to the Theories of Lagrange | ||||
| 	and Galois}}}, | ||||
| 	publisher = {Columbia University Press}, | ||||
| 	year = {1930}, | ||||
| 	author = {  Edgar Dehn}, | ||||
| 	adress={New York} | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| @ -1,23 +0,0 @@ | ||||
| %# -*- coding: utf-8-unix -*- | ||||
| %====================================================================== | ||||
| %% Book Configurations | ||||
| %====================================================================== | ||||
| \ProvidesFile{qbook.cfg}[2019/03/19 v1.00 Qbook configuration file] | ||||
| \def\q@contentsname{目~~~~录} | ||||
| \def\q@figurename{图} | ||||
| \def\q@listfigurename{插图索引} | ||||
| \def\q@tablename{表} | ||||
| \def\q@listtablename{表格索引} | ||||
| \def\q@overviewname{概~~~~览} | ||||
| \def\q@pre{前~~~~言} | ||||
| \def\q@label@thm{定理} | ||||
| \def\q@label@defn{定义} | ||||
| \def\q@label@keypoint{关键点} | ||||
| \def\q@label@rem{注} | ||||
| \def\q@label@prop{性质} | ||||
| \def\q@label@proof{证明} | ||||
| \def\q@label@lem{引理} | ||||
| \def\q@label@cor{推论} | ||||
| \def\q@label@exmp{例} | ||||
| \def\q@value@listingname{算法} | ||||
| \endinput | ||||
| @ -1,128 +0,0 @@ | ||||
| %# -*- coding: utf-8-unix -*- | ||||
| %========================================================================= | ||||
| % instructions.tex for Computer Network Assigenment & Project Instructions | ||||
| %========================================================================= | ||||
| % 双面打印 | ||||
| % \documentclass[fontset=fandol]{../format/instructions} | ||||
| \documentclass[]{instructions} | ||||
| \addbibresource{../bib/main.bib}  % 导入参考文献数据库 | ||||
| \begin{document} | ||||
| \pagestyle{empty} | ||||
| \input{../data/cover}  % 载入封面 | ||||
| 
 | ||||
| %========================================================================= | ||||
| % 版本声明 | ||||
| \clearpage | ||||
| \begin{center} | ||||
|   \Large{Version 1.0$\alpha$} \\ \vspace{2em} | ||||
|   \Large{发布日期: {\number\year 年 \number\month 月 \number\day 日}} | ||||
|  % \\ \vspace{1em} | ||||
| \end{center}  | ||||
| 
 | ||||
| % \vfill | ||||
| % \vspace{30em} | ||||
| % \begin{tabular*}{\textwidth}{ccc} | ||||
| %   \includegraphics{figure/by-nc.eps} | ||||
| %   & \begin{minipage}[b]{0.6\textwidth} | ||||
| %     \small\sffamily | ||||
| %     本作品采用知识共享 署名-非商业性使用 4.0 国际许可协议进行许可。\\ | ||||
| %     访问~\href{http://creativecommons.org/licenses/by-nc/4.0/}{此链接}~查看该许可协议。 | ||||
| %   \end{minipage} | ||||
| % \end{tabular*}   | ||||
| 
 | ||||
| %========================================================================= | ||||
| % 前言 | ||||
| \thispagestyle{empty} | ||||
| \frontmatter  % 对前言和概览用罗马数字作为页码 | ||||
| \pagestyle{empty} | ||||
| \input{../data/preface} | ||||
| 
 | ||||
| %========================================================================= | ||||
| % 目录 | ||||
| \cleardoublepage | ||||
| \pagestyle{empty} | ||||
| \tableofcontents | ||||
| \mainmatter	  % 对正文用阿拉伯数字作为页码 | ||||
| 
 | ||||
| %====================================================================== | ||||
| % 正文内容 | ||||
| \pagestyle{fancy} | ||||
| \setcounter{page}{1} | ||||
| 
 | ||||
| % “网络抓包与协议分析” | ||||
| \graphicspath{{../figure/chapters/wireshark/}} | ||||
| \input{../data/ch_wireshark/preface} | ||||
| \input{../data/ch_wireshark/sec_arp} | ||||
| \input{../data/ch_wireshark/sec_ip} | ||||
| \input{../data/ch_wireshark/sec_tcp} | ||||
| 
 | ||||
| % “基于套接字的网络程序设计” | ||||
| \graphicspath{{../figure/chapters/socket/}} | ||||
| \input{../data/ch_socket/preface} | ||||
| \input{../data/ch_socket/sec_udp} | ||||
| \input{../data/ch_socket/sec_web} | ||||
| \input{../data/ch_socket/sec_smtp} | ||||
| 
 | ||||
| 
 | ||||
| % “组网基础” | ||||
| \graphicspath{{../figure/chapters/ensp/}} | ||||
| \input{../data/ch_ensp/preface} | ||||
| \input{../data/ch_ensp/sec_static} | ||||
| \input{../data/ch_ensp/sec_rip} | ||||
| \input{../data/ch_ensp/sec_ospf} | ||||
| 
 | ||||
| % “路由器实现” | ||||
| \graphicspath{{../figure/chapters/router-openbox/}} | ||||
| \input{../data/ch_router-openbox/preface} | ||||
| \input{../data/ch_router-openbox/sec_switch} | ||||
| \input{../data/ch_router-openbox/sec_router} | ||||
| \input{../data/ch_router-openbox/sec_networking} | ||||
| 
 | ||||
| % “软件定义网络与网络测量” | ||||
| \graphicspath{{../figure/chapters/sdn-openbox/}} | ||||
| \input{../data/ch_sdn-openbox/preface} | ||||
| \input{../data/ch_sdn-openbox/sec_sdn} | ||||
| \input{../data/ch_sdn-openbox/sec_topo} | ||||
| \input{../data/ch_sdn-openbox/sec_ns} | ||||
| 
 | ||||
| 
 | ||||
| %========================================================================= | ||||
| % 附录 | ||||
| \appendix | ||||
| \titleformat{\chapter}[display]{\flushleft}{ | ||||
|   \begin{tikzpicture} | ||||
|   \node[anchor=south west] (chap) at (0,1.3){ | ||||
|     \Large\heiti {附录\Alph{chapter}}}; | ||||
|   \path [left color=c1,right color=c3] (0,-0.3) rectangle (\textwidth,-0.5); | ||||
|   \path(0,-0.2); | ||||
|   \end{tikzpicture} | ||||
| }{-30mm}{\Huge\heiti} | ||||
| \titlespacing{\chapter}{0pt}{0pt}{2\baselineskip} | ||||
| \renewcommand{\thefigure}{\Alph{chapter}--\arabic{figure}} | ||||
| \renewcommand{\thetable}{\Alph{chapter}--\arabic{table}} | ||||
| \renewcommand{\chaptername}{附录\Alph{chapter}} | ||||
| 
 | ||||
| % 速查手册 | ||||
| \graphicspath{{../figure/appendixes/cheat_sheet/}} | ||||
| \input{../data/appendix/cheat_sheet} | ||||
| 
 | ||||
| % 华为网络仿真平台eNSP简介 | ||||
| \graphicspath{{../figure/appendixes/ensp/}} | ||||
| \input{../data/appendix/ensp} | ||||
| 
 | ||||
| % 可编程网络平台-操作手册 | ||||
| \graphicspath{{../figure/appendixes/openbox/}} | ||||
| \input{../data/appendix/openbox} | ||||
| 
 | ||||
| % FAST软件编程入门指南 | ||||
| \graphicspath{{../figure/appendixes/fast/}} | ||||
| \input{../data/appendix/fast} | ||||
| 
 | ||||
| \backmatter	 | ||||
| %====================================================================== | ||||
| % 参考文献 | ||||
| % \printbibliography[heading=bibintoc] | ||||
| % \makeatletter | ||||
| % \makeatother | ||||
| 
 | ||||
| \end{document} | ||||
| @ -1,63 +1,11 @@ | ||||
| @echo off | ||||
| chcp 65001 >nul | ||||
| 
 | ||||
| set flag=%1 | ||||
| if %flag%x == x ( | ||||
| 	set flag=instr | ||||
| ) | ||||
| 
 | ||||
| if %flag%x == instrx ( | ||||
| 	call :cleanall | ||||
| 	call :instr	 | ||||
| 	if ERRORLEVEL 1 ( | ||||
| 		echo Error! Please check the 'instructions.log' for more details... | ||||
| 		pause | ||||
| 	) else ( | ||||
| 		call :clean | ||||
| 		echo Finished! | ||||
| 	) | ||||
| 	goto :EOF | ||||
| ) | ||||
| 
 | ||||
| if %flag%x == cleanx ( | ||||
| 	call :clean | ||||
| 	goto :EOF | ||||
| ) | ||||
| 
 | ||||
| if %flag%x == cleanallx ( | ||||
| 	call :cleanall | ||||
| 	goto :EOF | ||||
| ) | ||||
| 
 | ||||
| :help | ||||
| 	echo This is the compile batch script for CNAP Instructions. | ||||
| 	echo Usage: | ||||
| 	echo     make.bat [option] | ||||
| 	echo options: | ||||
| 	echo   instr     Compile the instructions book (default) | ||||
| 	echo   clean     Clean all work files | ||||
| 	echo   cleanall  Clean all work files and generated pdf | ||||
| 	echo   help      Print this help message | ||||
| goto :EOF | ||||
| 
 | ||||
| :instr | ||||
| 	echo Compile... | ||||
| 	latexmk -xelatex -shell-escape --halt-on-error -silent books\instructions >nul 2>nul | ||||
| goto :EOF | ||||
| 
 | ||||
| :clean | ||||
| 	echo Clean files... | ||||
| 	latexmk -c -silent 2>nul | ||||
| 	del tex\*.aux >nul 2>nul | ||||
| goto :EOF | ||||
| 
 | ||||
| :cleanall | ||||
| 	echo Clean files... | ||||
| 	latexmk -C -silent 2>nul | ||||
| 	del tex\*.aux >nul 2>nul | ||||
| 	if exist instructions.pdf ( | ||||
| 		echo Close the file: instructions.pdf! | ||||
| 		pause | ||||
| 		call :cleanall | ||||
| 	) | ||||
| goto :EOF | ||||
| echo Compiling... | ||||
| latexmk -xelatex -shell-escape --halt-on-error -silent instructions >nul 2>nul | ||||
| echo Done! | ||||
| 
 | ||||
| echo Clean files... | ||||
| latexmk -c -silent 2>nul | ||||
| del instructions.listing >nul 2>nul | ||||
| del instructions.xdv >nul 2>nul | ||||
| rmdir /S /Q _minted-instructions >nul 2>nul | ||||
| echo Done! | ||||
|  | ||||
| @ -0,0 +1,12 @@ | ||||
| #!/bin/bash | ||||
| 
 | ||||
| echo Compiling... | ||||
| latexmk -xelatex -shell-escape --halt-on-error -silent instructions > /dev/null 2>&1 | ||||
| echo Done! | ||||
| 
 | ||||
| echo Clean files... | ||||
| latexmk -c -silent > /dev/null 2>&1 | ||||
| rm instructions.listing > /dev/null 2>&1 | ||||
| rm instructions.xdv > /dev/null 2>&1 | ||||
| rm -r _minted-instructions > /dev/null 2>&1 | ||||
| echo Done! | ||||
| @ -0,0 +1,195 @@ | ||||
| %# -*- coding: utf-8-unix -*- | ||||
| 
 | ||||
| %============================================================================ | ||||
| % 基本库 | ||||
| \usepackage{longtable} | ||||
| \usepackage{multirow} | ||||
| \usepackage{array} | ||||
| \usepackage{caption} | ||||
| \usepackage{lscape} | ||||
| \usepackage{fancyhdr} | ||||
| \usepackage{newtxtext} | ||||
| \usepackage{amsmath,mathtools,amsthm,amsfonts,amssymb,bm} | ||||
| \usepackage{titlesec} | ||||
| \usepackage[colorlinks,bookmarksnumbered,urlcolor=blue, | ||||
|             linkcolor=purple,citecolor=red,plainpages=false]{hyperref} | ||||
| \usepackage[centering,a4paper,body={16cm,22cm}]{geometry} | ||||
| 
 | ||||
| %============================================================================ | ||||
| % 配制全局字体 | ||||
| % \setmonofont{inconsolata}  % 使用 inconsolata 等宽字体 | ||||
| 
 | ||||
| % % 使用方正系列字体 | ||||
| % \setCJKmainfont[BoldFont={FZHei-B01},ItalicFont={FZKai-Z03}]{FZShuSong-Z01} | ||||
| % \setCJKfamilyfont{zhsong}{FZShuSong-Z01} | ||||
| % \setCJKfamilyfont{zhhei}{FZHei-B01} | ||||
| % \setCJKfamilyfont{zhkai}{FZKai-Z03} | ||||
| % \setCJKfamilyfont{zhfs}{FZFangSong-Z02} | ||||
| % \setCJKfamilyfont{zhli}{FZLiShu-S01} | ||||
| % \renewcommand*{\songti}{\CJKfamily{zhsong}}     % 宋体 | ||||
| % \renewcommand*{\heiti}{\CJKfamily{zhhei}}       % 黑体 | ||||
| % \renewcommand*{\kaishu}{\CJKfamily{zhkai}}      % 楷体 | ||||
| % \renewcommand*{\fangsong}{\CJKfamily{zhfs}}     % 仿宋 | ||||
| % \renewcommand*{\lishu}{\CJKfamily{zhli}}        % 隶书 | ||||
| 
 | ||||
| % \setCJKsansfont{FZHei-B01}                      % 中文无衬线字体 | ||||
| % \setCJKmonofont{FZHei-B01}                      % 中文等宽字体 | ||||
| 
 | ||||
| 
 | ||||
| %============================================================================ | ||||
| % 配制列表环境 | ||||
| \usepackage{enumitem} | ||||
| \setlist{nosep}  % 紧凑间距 | ||||
| \setlist*{leftmargin=*}  % 列表和段落头对齐 | ||||
| \setlist[1]{labelindent=\parindent} % Only the level 1 | ||||
| %============================================================================ | ||||
| % 绘图支持 | ||||
| \usepackage{tikz} | ||||
| \definecolor{c1}{RGB}{116, 52, 129} %清华紫 | ||||
| \definecolor{c2}{RGB}{130, 80, 140} | ||||
| \definecolor{c3}{RGB}{230, 180, 240} | ||||
| %============================================================================ | ||||
| % 定制代码框 | ||||
| \usepackage[breakable,minted]{tcolorbox} | ||||
| \newtcblisting{code}[1][]{ | ||||
|   center, | ||||
|   width=0.95\linewidth, | ||||
|   listing only, | ||||
|   breakable=true, | ||||
|   minted language=#1, | ||||
|   extras={frame empty}, | ||||
|   fontupper=\linespread{1.3}\small, | ||||
|   % minted style=colorful, | ||||
|   minted options={ %自动移除前置空白、制表为4字符、mathhe和||内的不处理 | ||||
|     fontfamily=tt, | ||||
|     breaksymbol=, | ||||
|     autogobble, | ||||
|     tabsize=4, | ||||
|     startinline, | ||||
|     breaklines, | ||||
|     mathescape | ||||
|   } | ||||
|  } | ||||
| %============================================================================ | ||||
| % 设置 PDF 文件信息 | ||||
| \hypersetup{ | ||||
|   pdfauthor = {计算机网络教案社区}, | ||||
|   pdftitle = {实验指导书}, | ||||
|   pdfkeywords = {计算机网络}} | ||||
| 
 | ||||
| %============================================================================ | ||||
| % 文档风格 | ||||
| \ctexset{today=small} | ||||
| \ctexset{contentsname=目~~~~录} | ||||
| \setcounter{secnumdepth}{4}  % 章节编号深度 (part 对应 -1) | ||||
| \setcounter{tocdepth}{1}     % 目录深度 (part 对应 -1) | ||||
| %============================================================================ | ||||
| % 每节单独起一页 | ||||
| \newcommand{\sectionbreak}{\clearpage} | ||||
| %============================================================================ | ||||
| % 居中章节标题 | ||||
| \newenvironment{pre}{ | ||||
|   \titleformat{\chapter}[display]{\centering}{}{-3mm}{\Huge\heiti} | ||||
|   \titlespacing{\chapter}{0pt}{0pt}{2\baselineskip} | ||||
|   \chapter{前~~~~言}{} | ||||
| }{} | ||||
| %============================================================================ | ||||
| % chapter级样式设置 | ||||
| \ctexset{chapter/name = {第,单元}} | ||||
| \titleformat{\chapter}[display]{\flushleft}{ | ||||
|   \begin{tikzpicture} | ||||
|   \node[anchor=south west] (chap) at (0,1.3){ | ||||
|     \Large\heiti {\chaptername}}; | ||||
|   \path[left color=c1,right color=c3] | ||||
|     (0,-0.3)rectangle(\textwidth,-0.5); | ||||
|   \end{tikzpicture} | ||||
| }{-30mm}{\Huge\heiti} | ||||
| \titlespacing{\chapter}{0pt}{0pt}{2\baselineskip} | ||||
| %============================================================================ | ||||
| % section级样式设置 | ||||
| \ctexset{section/break = \Needspace{\textheight}} | ||||
| \ctexset{section={ | ||||
|   name={实验}, | ||||
|   format={\Large\heiti\centering}, | ||||
|   afterskip={1.0ex \@plus .2ex}, | ||||
|   } | ||||
| } | ||||
| %============================================================================ | ||||
| % subection级样式设置 | ||||
| \ctexset{subsection={ | ||||
|   format={\bfseries\heiti\normalsize}, | ||||
|   indent={0\ccwd}, | ||||
|   afterskip={1.0ex \@plus .2ex}, | ||||
|   number={\chinese{subsection}~.} | ||||
|   } | ||||
| } | ||||
| %============================================================================ | ||||
| % subsubection级样式设置 | ||||
| \ctexset{subsubsection={ | ||||
|   format={\bfseries\bfseries\normalsize}, | ||||
|   indent={0\ccwd}, | ||||
|   afterskip={1.0ex \@plus .2ex}, | ||||
|   number={\arabic{subsection}.\arabic{subsubsection}} | ||||
|   } | ||||
| } | ||||
| %============================================================================ | ||||
| % paragraph级样式设置 | ||||
| \ctexset{paragraph={ | ||||
|   format={\normalfont\normalsize}, | ||||
|   indent={0\ccwd}, | ||||
|   number={\arabic{subsection}.\arabic{subsubsection}.\arabic{paragraph}} | ||||
|   } | ||||
| } | ||||
| %============================================================================ | ||||
| % 设置页眉与页脚样式 | ||||
| \def\markboxwidth{0.75\textwidth} | ||||
| \pagestyle{fancy} | ||||
| \fancyhf{} | ||||
| \renewcommand{\chaptername}{第\zhnumber{\thechapter}单元} | ||||
| \renewcommand{\chaptermark}[1]{\markboth{\chaptername\  #1}{}} | ||||
| % 在奇数页的右上角显示页码,偶数页的左上角显示页码 | ||||
| \fancyhead[LE,RO]{\sffamily\normalsize\thepage} | ||||
| \fancyhead[LO]{\nouppercase{\small\kaishu\rightmark}} % 在奇数页的左侧显示小节名 | ||||
| \fancyhead[RE]{\nouppercase{\small\kaishu\leftmark}}  % 在偶数页的右侧显示章名 | ||||
| \renewcommand{\headrulewidth}{0.5pt} | ||||
| \addtolength{\headheight}{2.5pt} | ||||
| \renewcommand{\footrulewidth}{0pt} | ||||
| \fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}} | ||||
| %============================================================================ | ||||
| % 设置图片的标题样式 | ||||
| \DeclareCaptionFont{heiti}{\heiti} | ||||
| \captionsetup{format=plain,labelformat=simple, | ||||
|               labelsep=space,justification=centering, | ||||
|               font={small,heiti}} | ||||
| \captionsetup[sub]{font=footnotesize} | ||||
| %============================================================================ | ||||
| % 设置图、表的号 | ||||
| \numberwithin{figure}{section} | ||||
| \numberwithin{table}{section} | ||||
| \renewcommand{\thefigure}{\arabic{chapter}.\arabic{section}--\arabic{figure}} | ||||
| \renewcommand{\thetable}{\arabic{chapter}.\arabic{section}--\arabic{table}} | ||||
| %============================================================================ | ||||
| % 设置目录格式 | ||||
| \makeatletter | ||||
| \renewcommand\tableofcontents{% | ||||
|   \cleardoublepage | ||||
|   \pdfbookmark[0]{\contentsname}{toc} | ||||
|   \chapter*{\centerline{\Huge\heiti\contentsname}} | ||||
|   \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}% | ||||
|   \@starttoc{toc}% | ||||
| } | ||||
| \addtocontents{toc}{\let\string\CTEX@spaceChar\relax} | ||||
| \makeatother | ||||
| %============================================================================ | ||||
| % 行距缩放 | ||||
| \linespread{1.5} | ||||
| \renewcommand{\arraystretch}{1} | ||||
| %============================================================================ | ||||
| % 调整附录格式 | ||||
| \let\stdappendix\appendix | ||||
| \renewcommand{\appendix}{ | ||||
|   \stdappendix | ||||
|   \renewcommand{\thefigure}{\Alph{chapter}--\arabic{figure}} | ||||
|   \renewcommand{\thetable}{\Alph{chapter}--\arabic{table}} | ||||
|   \renewcommand{\chaptername}{附录\Alph{chapter}} | ||||
| } | ||||
| @ -0,0 +1,20 @@ | ||||
| 
 | ||||
| %========================================================================= | ||||
| % 版本声明 | ||||
| \clearpage | ||||
| \begin{center} | ||||
|   \Large{Version 1.0$\alpha$} \\ \vspace{2em} | ||||
|   \Large{发布日期: \today}%{\number\year 年 \number\month 月 \number\day 日}} | ||||
|  % \\ \vspace{1em} | ||||
| \end{center}  | ||||
| 
 | ||||
| % \vfill | ||||
| % \vspace{30em} | ||||
| % \begin{tabular*}{\textwidth}{ccc} | ||||
| %   \includegraphics{figure/by-nc.eps} | ||||
| %   & \begin{minipage}[b]{0.6\textwidth} | ||||
| %     \small\sffamily | ||||
| %     本作品采用知识共享 署名-非商业性使用 4.0 国际许可协议进行许可。\\ | ||||
| %     访问~\href{http://creativecommons.org/licenses/by-nc/4.0/}{此链接}~查看该许可协议。 | ||||
| %   \end{minipage} | ||||
| % \end{tabular*}   | ||||
| After Width: | Height: | Size: 67 KiB | 
| After Width: | Height: | Size: 13 KiB | 
| Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 255 KiB | 
| Before Width: | Height: | Size: 226 KiB After Width: | Height: | Size: 226 KiB | 
| Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB | 
| Before Width: | Height: | Size: 241 KiB After Width: | Height: | Size: 241 KiB | 
| After Width: | Height: | Size: 61 KiB | 
| After Width: | Height: | Size: 290 KiB | 
| After Width: | Height: | Size: 167 KiB | 
| After Width: | Height: | Size: 68 KiB | 
| After Width: | Height: | Size: 347 KiB | 
| After Width: | Height: | Size: 11 KiB | 
| After Width: | Height: | Size: 79 KiB | 
| After Width: | Height: | Size: 125 KiB | 
| After Width: | Height: | Size: 14 KiB | 
| After Width: | Height: | Size: 146 KiB | 
| After Width: | Height: | Size: 12 KiB | 
| After Width: | Height: | Size: 49 KiB | 
| Before Width: | Height: | Size: 223 KiB | 
| Before Width: | Height: | Size: 39 KiB | 
| Before Width: | Height: | Size: 58 KiB | 
| Before Width: | Height: | Size: 1.5 MiB | 
| Before Width: | Height: | Size: 1.5 MiB | 
| Before Width: | Height: | Size: 1.5 MiB | 
| Before Width: | Height: | Size: 18 KiB | 
| Before Width: | Height: | Size: 53 KiB | 
| Before Width: | Height: | Size: 735 KiB | 
| Before Width: | Height: | Size: 127 KiB | 
| Before Width: | Height: | Size: 220 KiB | 
| Before Width: | Height: | Size: 184 KiB | 
| Before Width: | Height: | Size: 24 KiB | 
| Before Width: | Height: | Size: 21 KiB | 
| Before Width: | Height: | Size: 22 KiB | 
| Before Width: | Height: | Size: 19 KiB | 
| Before Width: | Height: | Size: 25 KiB | 
| Before Width: | Height: | Size: 98 KiB | 
| Before Width: | Height: | Size: 72 KiB | 
| Before Width: | Height: | Size: 135 KiB | 
| Before Width: | Height: | Size: 114 KiB | 
| Before Width: | Height: | Size: 132 KiB | 
| Before Width: | Height: | Size: 24 KiB | 
| Before Width: | Height: | Size: 97 KiB | 
| Before Width: | Height: | Size: 52 KiB | 
| Before Width: | Height: | Size: 28 KiB | 
| Before Width: | Height: | Size: 28 KiB | 
| Before Width: | Height: | Size: 13 KiB | 
| Before Width: | Height: | Size: 220 KiB | 
| After Width: | Height: | Size: 76 KiB | 
| Before Width: | Height: | Size: 200 KiB | 
| After Width: | Height: | Size: 76 KiB | 
| Before Width: | Height: | Size: 223 KiB | 
| After Width: | Height: | Size: 71 KiB | 
| Before Width: | Height: | Size: 143 KiB | 
| After Width: | Height: | Size: 82 KiB | 
| After Width: | Height: | Size: 108 KiB | 
| Before Width: | Height: | Size: 160 KiB | 
| After Width: | Height: | Size: 79 KiB | 
| Before Width: | Height: | Size: 102 KiB | 
| After Width: | Height: | Size: 71 KiB | 
| @ -0,0 +1,83 @@ | ||||
| %# -*- coding: utf-8-unix -*- | ||||
| 
 | ||||
| \documentclass[zihao=-4]{ctexbook} | ||||
| 
 | ||||
| \input{config/main} | ||||
| 
 | ||||
| \begin{document} | ||||
| 
 | ||||
| \pagestyle{empty}                % 前导页无页眉页脚 | ||||
| %============================================================ | ||||
|  % 封面 | ||||
| \input{data/cover}      | ||||
| %============================================================ | ||||
|  % 版权页 | ||||
| \input{data/copyright}      | ||||
| 
 | ||||
| \frontmatter                     % 从前言开始用罗马数字作为页码 | ||||
| %============================================================ | ||||
| % 前言 | ||||
| \input{data/preface} | ||||
| %============================================================ | ||||
| % 目录 | ||||
| \cleardoublepage | ||||
| \tableofcontents | ||||
| 
 | ||||
| \mainmatter	                     % 从正文开始用阿拉伯数字作为页码 | ||||
| \pagestyle{fancy}                % 正文有页眉页脚 | ||||
| \setcounter{page}{1}             % 正文页码从1开始 | ||||
| %============================================================ | ||||
| % 正文内容 | ||||
| 
 | ||||
| % “网络抓包与协议分析” | ||||
| \graphicspath{{figure/chapters/wireshark/}} | ||||
| \input{data/ch_wireshark/preface} | ||||
| \input{data/ch_wireshark/sec_arp} | ||||
| \input{data/ch_wireshark/sec_ip} | ||||
| \input{data/ch_wireshark/sec_tcp} | ||||
| 
 | ||||
| % “基于套接字的网络程序设计” | ||||
| \graphicspath{{figure/chapters/socket/}} | ||||
| \input{data/ch_socket/preface} | ||||
| \input{data/ch_socket/sec_udp} | ||||
| \input{data/ch_socket/sec_web} | ||||
| \input{data/ch_socket/sec_smtp} | ||||
| 
 | ||||
| % “组网基础” | ||||
| \graphicspath{{figure/chapters/ensp/}} | ||||
| \input{data/ch_ensp/preface} | ||||
| \input{data/ch_ensp/sec_static} | ||||
| \input{data/ch_ensp/sec_rip} | ||||
| \input{data/ch_ensp/sec_ospf} | ||||
| 
 | ||||
| % “路由器实现” | ||||
| \graphicspath{{figure/chapters/router-openbox/}} | ||||
| \input{data/ch_router-openbox/preface} | ||||
| \input{data/ch_router-openbox/sec_switch} | ||||
| \input{data/ch_router-openbox/sec_router} | ||||
| \input{data/ch_router-openbox/sec_networking} | ||||
| 
 | ||||
| % “软件定义网络与网络测量” | ||||
| \graphicspath{{figure/chapters/sdn-openbox/}} | ||||
| \input{data/ch_sdn-openbox/preface} | ||||
| \input{data/ch_sdn-openbox/sec_sdn} | ||||
| \input{data/ch_sdn-openbox/sec_topo} | ||||
| \input{data/ch_sdn-openbox/sec_ns} | ||||
| 
 | ||||
| %============================================================ | ||||
| % 附录 | ||||
| \appendix | ||||
| 
 | ||||
| % 速查手册 | ||||
| \graphicspath{{figure/appendixes/cheat_sheet/}} | ||||
| \input{data/appendix/cheat_sheet} | ||||
| 
 | ||||
| % 华为网络仿真平台eNSP简介 | ||||
| \graphicspath{{figure/appendixes/ensp/}} | ||||
| \input{data/appendix/ensp} | ||||
| 
 | ||||
| % FAST平台介绍与操作说明手册 | ||||
| \graphicspath{{figure/appendixes/fast/}} | ||||
| \input{data/appendix/fast} | ||||
| 
 | ||||
| \end{document} | ||||