﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-boath</title><link>http://www.cppblog.com/boath/</link><description /><language>zh-cn</language><lastBuildDate>Thu, 23 Apr 2026 10:14:17 GMT</lastBuildDate><pubDate>Thu, 23 Apr 2026 10:14:17 GMT</pubDate><ttl>60</ttl><item><title>A*算法求K短路（POJ 2449 Remmarguts' Date）</title><link>http://www.cppblog.com/boath/archive/2013/01/14/197266.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Mon, 14 Jan 2013 10:23:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2013/01/14/197266.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/197266.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2013/01/14/197266.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/197266.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/197266.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 静态链表实现图存储Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include&nbsp;&lt;stdio.h&gt;#include&nbsp;&lt;string.h&gt;#include&nbsp;&lt;queue&gt;#includ...&nbsp;&nbsp;<a href='http://www.cppblog.com/boath/archive/2013/01/14/197266.html'>阅读全文</a><img src ="http://www.cppblog.com/boath/aggbug/197266.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2013-01-14 18:23 <a href="http://www.cppblog.com/boath/archive/2013/01/14/197266.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>XeLaTeX+xeCJK的中文解决方案</title><link>http://www.cppblog.com/boath/archive/2012/12/24/196566.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Mon, 24 Dec 2012 07:28:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2012/12/24/196566.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/196566.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2012/12/24/196566.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/196566.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/196566.html</trackback:ping><description><![CDATA[<div><span style="font-size: 12pt; color: #000000;"></span></div><div><span style="color: #000000; font-size: 14pt; "></span></div><div><span style="font-size: 14pt; color: #000000; ">\documentclass{article}</span></div><div><span style="font-size: 14pt; color: #000000; ">\usepackage{xeCJK}</span></div><div></div><div><span style="font-size: 14pt; color: #000000; ">\setmainfont{Arial}</span></div><div><span style="font-size: 14pt; color: #000000; ">\setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}</span></div><div><span style="font-size: 14pt; color: #000000; ">\setCJKsansfont{SimHei}</span></div><div><span style="font-size: 14pt; color: #000000; ">\setCJKmonofont{SimSun}</span></div><div><span style="font-size: 14pt; color: #000000; ">\setCJKfamilyfont{rm}[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}</span></div><div></div><div><span style="font-size: 14pt; color: #000000; ">\usepackage{xcolor}</span></div><div><span style="font-size: 14pt; color: #000000; ">\usepackage{color}</span></div><div><span style="font-size: 14pt; color: #000000; ">\usepackage[colorlinks,</span></div><div><span style="font-size: 14pt; color: #000000; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; linkcolor=black,</span></div><div><span style="font-size: 14pt; color: #000000; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anchorcolor=blue,</span></div><div><span style="font-size: 14pt; color: #000000; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; citecolor=green</span></div><div><span style="font-size: 14pt; color: #000000; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]{hyperref}</span></div><div><span style="font-size: 14pt; color: #000000; ">%设置页边距</span></div><div><span style="font-size: 14pt; color: #000000; ">\usepackage[top=1in, bottom=1in, left=1.25in, right=1.25in]{geometry}</span></div><div><span style="font-size: 14pt; color: #000000; ">%插入图片</span></div><div><span style="font-size: 14pt; color: #000000; ">\usepackage{graphicx}</span></div><div><span style="font-size: 14pt; color: #000000; ">%\renewcommand*\contentsname{目录}</span></div><div><span style="font-size: 14pt; color: #000000; ">%\renewcommand*\abstractname{摘要}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand{\contentsname}{目录}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand{\listfigurename}{插图目录}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand{\listtablename}{表格目录}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand{\refname}{参考文献}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand{\abstractname}{摘要}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand{\indexname}{索引}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand{\tablename}{表}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand{\figurename}{图}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand\appendixname{附录}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand\partname{部分}</span></div><div><span style="font-size: 14pt; color: #000000; ">\renewcommand\today{\number\year年\number\month月\number\day日}</span></div><div></div><div></div><div><span style="font-size: 14pt; color: #000000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Using Code</span></div><div><span style="font-size: 14pt; color: #000000; ">\usepackage{color}</span></div><div><span style="font-size: 14pt; color: #000000; ">\usepackage{xcolor}</span></div><div><span style="font-size: 14pt; color: #000000; ">\definecolor{keywordcolor}{rgb}{0.8,0.1,0.5}</span></div><div><span style="font-size: 14pt; color: #000000; ">\usepackage{listings}</span></div><div><span style="font-size: 14pt; color: #000000; ">\lstset{</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">language=C++, %用于设置语言为C++</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">language=python,</span></div><div><span style="font-size: 14pt; color: #000000; ">%</span><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">numbers=left, %设置行号位置</span></div><div><span style="font-size: 14pt; color: #000000; ">% &nbsp; numberstyle=\tiny, %设置行号大小</span></div><div><span style="font-size: 14pt; color: #000000; ">%</span><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">frame=single, %设置边框格式</span></div><div><span style="font-size: 14pt; color: #000000; ">&nbsp; &nbsp; escapeinside=``, %逃逸字符(1左面的键)，用于显示中文</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">keywordstyle=\color{keywordcolor} \bfseries, %设置关键词为蓝色，需要引xcolor宏包</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">identifierstyle=,</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">basicstyle=\ttfamily,&nbsp;</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">commentstyle=\color{blue} \textit,</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">stringstyle=\ttfamily,&nbsp;</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">breaklines, %自动折行</span></div><div><span style="font-size: 14pt; color: #000000; ">&nbsp; &nbsp; extendedchars=false, %解决代码跨页时，章节标题，页眉等汉字不显示的问题</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">xleftmargin=2em,xrightmargin=2em, aboveskip=1em, %设置边距</span></div><div><span style="font-size: 14pt; color: #000000; ">&nbsp; &nbsp; tabsize=4, %设置tab空格数</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">showstringspaces=false,</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">%frame=shadowbox, %边框</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #000000; ">captionpos=b</span></div><div><span style="font-size: 14pt; color: #000000; ">}</span></div><div><span style="font-size: 14pt; color: #000000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Using Code</span></div><div></div><div></div><div><span style="font-size: 14pt; color: #000000; ">\title{}</span></div><div><span style="font-size: 14pt; color: #000000; ">\author{}</span></div><div><span style="font-size: 14pt; color: #000000; ">\date{}</span></div><div><span style="font-size: 14pt; color: #000000; ">\begin{document}</span></div><div><span style="font-size: 14pt; color: #000000; ">\maketitle</span></div><div><span style="font-size: 14pt; color: #000000; ">\tableofcontents</span></div><div><span style="font-size: 14pt; color: #000000; ">\newpage</span></div><div><span style="font-size: 14pt; color: #000000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Contents</span></div><div><div><span style="font-size: 19px;">\section{试验结果截图}</span></div><div><span style="font-size: 19px;">实验最后测试了www.baidu.com, os.hit.edu.cn, www.hit.edu.cn,结果如下图。</span></div><div><span style="font-size: 19px;">\begin{figure}[htbp]</span></div><div><span style="font-size: 19px;">\centering</span></div><div><span style="font-size: 19px;">\includegraphics[width=1.2\textwidth]{res1.png}</span></div><div><span style="font-size: 19px;">\caption{追踪www.baidu.com与os.hit.edu.cn}</span></div><div><span style="font-size: 19px;">\end{figure}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;">\begin{figure}[htbp]</span></div><div><span style="font-size: 19px;">\centering</span></div><div><span style="font-size: 19px;">\includegraphics[width=1.2\textwidth]{res2.png}</span></div><div><span style="font-size: 19px;">\caption{追踪www.hit.edu.cn}</span></div><div><span style="font-size: 19px;">\end{figure}<br /><br /></span></div><font size="4"><span style="color: #000000; ">\end{document}</span></font></div><div></div><div></div><div><span style="color: #000000; font-size: 14pt; "></span></div><img src ="http://www.cppblog.com/boath/aggbug/196566.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2012-12-24 15:28 <a href="http://www.cppblog.com/boath/archive/2012/12/24/196566.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在LaTeX中插入C++代码</title><link>http://www.cppblog.com/boath/archive/2012/10/16/193385.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Tue, 16 Oct 2012 12:55:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2012/10/16/193385.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/193385.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2012/10/16/193385.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/193385.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/193385.html</trackback:ping><description><![CDATA[<div><span style="font-size: 14pt; color: #800000; ">\documentclass{article}<br /><br /></span></div><div></div><div><span style="font-size: 14pt; color: #800000; ">%%%%%%%%%%%%% C++ Code</span></div><div><span style="font-size: 14pt; color: #800000; ">\usepackage{color}</span></div><div><span style="font-size: 14pt; color: #800000; ">\usepackage{xcolor}</span></div><div><span style="font-size: 14pt; color: #800000; ">\definecolor{keywordcolor}{rgb}{0.8,0.1,0.5}</span></div><div><span style="font-size: 14pt; color: #800000; ">\usepackage{listings}</span></div><div><span style="font-size: 14pt; color: #800000; ">\lstset{breaklines}%这条命令可以让LaTeX自动将长的代码行换行排版</span></div><div><span style="font-size: 14pt; color: #800000; ">\lstset{extendedchars=false}%这一条命令可以解决代码跨页时，章节标题，页眉等汉字不显示的问题</span></div><div><span style="font-size: 14pt; color: #800000; ">\lstset{language=C++, %用于设置语言为C++</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #800000; ">keywordstyle=\color{keywordcolor} \bfseries, <br /></span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #800000; ">identifierstyle=,</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #800000; ">basicstyle=\ttfamily,&nbsp;</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #800000; ">commentstyle=\color{blue} \textit,</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #800000; ">stringstyle=\ttfamily,&nbsp;</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #800000; ">showstringspaces=false,</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #800000; ">%frame=shadowbox, %边框</span></div><div><span style="white-space:pre">	</span><span style="font-size: 14pt; color: #800000; ">captionpos=b</span></div><div><span style="font-size: 14pt; color: #800000; ">}<br /></span><span style="font-size: 19px; color: #800000; ">%%%%%%%%%%%%% C++ Code</span><br /><font color="#008000"><span style="font-size: 19px;"><br /></span></font></div><div><span style="font-size: 14pt; color: #800000; ">\title{AC Machine}</span></div><div><span style="font-size: 14pt; color: #800000; ">\author{Boat}</span></div><div><span style="font-size: 14pt; color: #800000; ">\begin{document}</span></div><div><span style="font-size: 14pt; color: #800000; ">\maketitle<br /><br /></span></div><div></div><div><span style="font-size: 14pt; color: #800000; ">\begin{lstlisting}</span></div><div><span style="font-size: 14pt; color: #800000; ">/*</span></div><div><span style="font-size: 14pt; color: #800000; ">**ac_automation: multipattern match algorithm</span></div><div><span style="font-size: 14pt; color: #800000; ">*input: n patterns and string</span></div><div><span style="font-size: 14pt; color: #800000; ">*output: all the patterns that appear in the string</span></div><div><span style="font-size: 14pt; color: #800000; ">*/</span></div><div><span style="font-size: 14pt; color: #800000; ">#include &lt;stdio.h&gt;</span></div><div><span style="font-size: 14pt; color: #800000; ">#include &lt;string.h&gt;</span></div><div><span style="font-size: 14pt; color: #800000; ">#include &lt;stdlib.h&gt;</span></div><div></div><div><span style="font-size: 14pt; color: #800000; ">int main(void)</span><br /><span style="font-size: 14pt; color: #800000; ">{</span><br /><span style="font-size: 14pt; color: #800000; ">&nbsp; &nbsp; &nbsp; &nbsp;return 0;</span><br /><span style="font-size: 14pt; color: #800000; ">}</span></div><div><span style="font-size: 14pt; color: #800000; ">\end{lstlisting}</span></div><div></div><div><font color="#800000" size="4"><span style="color: #800000; ">\end{document}</span><br /></font><br /><font color="#800000" size="4"><span style="color: #339966; font-size: 14pt; ">%%%%%%%%%%%%%%%%%</span></font><span style="color: #339966; font-size: 14pt; ">%%%%%%%%%%%beamer</span><br /><br /><br /><div><span style="font-size: 19px; color: #339966; ">\documentclass{beamer}</span></div><div><span style="font-size: 19px; color: #339966; ">\usetheme{Berkeley}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #339966; ">%%%</span></div><div><span style="font-size: 19px; color: #339966; ">\usepackage{color}</span></div><div><span style="font-size: 19px; color: #339966; ">\usepackage{xcolor}</span></div><div><span style="font-size: 19px; color: #339966; ">\definecolor{keywordcolor}{rgb}{0.8,0.1,0.5}</span></div><div><span style="font-size: 19px; color: #339966; ">\usepackage{listings}</span></div><div><span style="font-size: 19px; color: #339966; ">\lstset{breaklines}%这条命令可以让LaTeX自动将长的代码行换行排版</span></div><div><span style="font-size: 19px; color: #339966; ">\lstset{extendedchars=false}%这一条命令可以解决代码跨页时，章节标题，页眉等汉字不显示的问题</span></div><div><span style="font-size: 19px; color: #339966; ">\lstset{language=C++, %用于设置语言为C++</span></div><div><span style="font-size: 19px;"><span style="white-space:pre">	</span></span><span style="font-size: 19px; color: #339966; ">keywordstyle=\color{keywordcolor} \bfseries, %设置关键词</span></div><div><span style="font-size: 19px;"><span style="white-space:pre">	</span></span><span style="font-size: 19px; color: #339966; ">identifierstyle=,</span></div><div><span style="font-size: 19px;"><span style="white-space:pre">	</span></span><span style="font-size: 19px; color: #339966; ">basicstyle=\ttfamily,&nbsp;</span></div><div><span style="font-size: 19px;"><span style="white-space:pre">	</span></span><span style="font-size: 19px; color: #339966; ">commentstyle=\color{blue} \textit,</span></div><div><span style="font-size: 19px;"><span style="white-space:pre">	</span></span><span style="font-size: 19px; color: #339966; ">stringstyle=\ttfamily,&nbsp;</span></div><div><span style="font-size: 19px;"><span style="white-space:pre">	</span></span><span style="font-size: 19px; color: #339966; ">showstringspaces=false,</span></div><div><span style="font-size: 19px;"><span style="white-space:pre">	</span></span><span style="font-size: 19px; color: #339966; ">%frame=shadowbox, %边框</span></div><div><span style="font-size: 19px;"><span style="white-space:pre">	</span></span><span style="font-size: 19px; color: #339966; ">captionpos=b</span></div><div><span style="font-size: 19px; color: #339966; ">}</span></div><div><span style="font-size: 19px; color: #339966; ">%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #339966; ">\begin{document}</span></div><div><span style="font-size: 19px; color: #339966; ">\begin{frame}[fragile]</span></div><div><span style="font-size: 19px; color: #339966; ">\frametitle{C Code Show}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #339966; ">\begin{lstlisting}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #339966; ">int main(int argc, char *argv[])</span></div><div><span style="font-size: 19px; color: #339966; ">{</span></div><div><span style="font-size: 19px; color: #339966; ">&nbsp; &nbsp; int i;</span></div><div><span style="font-size: 19px; color: #339966; ">&nbsp; &nbsp; return 0;</span></div><div><span style="font-size: 19px; color: #339966; ">}</span></div><div><span style="font-size: 19px; color: #339966; ">\end{lstlisting}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #339966; ">\end{frame}</span></div><div><span style="font-size: 19px; color: #339966; ">\end{document}</span></div></div><div></div><img src ="http://www.cppblog.com/boath/aggbug/193385.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2012-10-16 20:55 <a href="http://www.cppblog.com/boath/archive/2012/10/16/193385.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AC自动机代码</title><link>http://www.cppblog.com/boath/archive/2012/10/16/193374.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Tue, 16 Oct 2012 06:23:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2012/10/16/193374.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/193374.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2012/10/16/193374.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/193374.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/193374.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: /*Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->&nbsp;&nbsp;1&nbsp;/*&nbsp;&nbsp;2&nbsp;**ac_automation:&nbsp;multipattern&nbsp;match&nbsp;algorithm...&nbsp;&nbsp;<a href='http://www.cppblog.com/boath/archive/2012/10/16/193374.html'>阅读全文</a><img src ="http://www.cppblog.com/boath/aggbug/193374.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2012-10-16 14:23 <a href="http://www.cppblog.com/boath/archive/2012/10/16/193374.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux常用命令手记</title><link>http://www.cppblog.com/boath/archive/2012/10/02/192663.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Tue, 02 Oct 2012 10:23:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2012/10/02/192663.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/192663.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2012/10/02/192663.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/192663.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/192663.html</trackback:ping><description><![CDATA[<div><span style="font-size: 14pt; color: #000000;">1.将两个视频合并为一个</span><br /><span style="font-size: 14pt; color: #008000;">$mencoder -oac pcm -ovc copy -idx -o output.flv 0.flv 1.flv<br />截取<br />$</span><span style="font-size: 14pt; color: #008000; ">mencoder -o d.mp4 -ovc copy -oac pcm -ss 30:15 -endpos 0:55 z.mp4</span><span style="font-size: 14pt; color: #008000;"><br /></span><span style="font-size: 14pt; color: #008000;"><br /></span><span style="font-size: 14pt; color: #333300;">2.将两个pdf文档合并为一个</span><span style="font-size: 14pt; color: #008000;"><br /></span><span style="font-size: 14pt; color: #008000;">$</span><span style="font-size: 14pt; color: #008000;">sudo apt-get install gs pdftk<br /></span></div><div><span style="font-size: 14pt; color: #008000;">$</span><font color="#008000" size="4">gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=LaTeX_and_Beamer.pdf -dBATCH berkeley_latex.pdf berkeley_beamer.pdf</font><br /><br /><font color="#008000" size="4"><span style="color: #333300;">3.修改MAC地址</span></font><br /><div><span style="font-size: 19px; color: #008000;">#ifconfig eth0 down</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000;">#ifconfig eth0 hw ether 00:26:18:f9:80:38 #mine</span><br /><br /><div><span style="font-size: 19px; color: #333300;">永久修改:</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #333300;">在/etc/rc.d/rc.local里加上这三句(也可以在/etc/init.d/network里加下面三行)</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000;">ifconfig eth0 down</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000;">ifconfig eth0 hw ether 00:26:9e:07:06:0a #lv</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000;">ifconfig eht0 up</span><span style="font-size: 19px;"><br /><br /></span></div></div><div><font color="#008000" size="4"><span style="background-color: #ffffff; color: #333300;">4.修改IP地址</span></font><br /><br /><div><span style="font-size: 19px; color: #008000;">#ifconfig ethe0 down</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000;">#ifconfig ethe0 192.168.169.245 netmask 255.255.255.0</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #333300;">以上的方法下次启动时就无效了</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #333300;">如果要以后每次都生效则加入到以下文件里面</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #333300;">在/etc/sysconfig/network-scripts/下修改ifcfg-eth0地址</span><br /><br /><br /><span style="font-size: 19px;">5.一块网卡添加两个IP地址</span><br /><div><span style="font-size: 19px; background-color: #ffffff; color: #008000;">#ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; background-color: #ffffff; color: #008000;">#ifconfig eth0:2 192.168.1.2 netmask 255.255.255.0<br /><br /><br /></span><span style="font-size: 19px; color: #333300;">6.安装Ibus输入法</span><span style="font-size: 19px;"><br /></span><div><br /><span style="color: #008000; font-size: 14pt;">$sudo apt-get install ibus-pinyin ibus-pinyin-db-android</span></div><span style="font-size: 19px; color: #333300;">7.升级Ibus输入法<br /></span><span style="font-size: 19px;"><br /></span><div><span style="font-size: 14pt; color: #008000;">$sudo add-apt-repository ppa:shawn-p-huang/ppa&nbsp;</span></div><div><span style="font-size: 14pt; color: #008000;">$sudo apt-get update&nbsp;</span></div><div><span style="font-size: 14pt; color: #008000;">$sudo apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase<br /><br /></span><span style="font-size: 14pt; color: #333300;">8.在Redhat 下用 yum 安装g++<br /></span><span style="font-size: 14pt; color: #008000;"><br />#yum install gcc-c++<br /><br /><br /></span><span style="font-size: 14pt; color: #003300;">9.ubuntu server 12.04安装后添加GUI</span><span style="font-size: 14pt; color: #008000;"><br /><br /></span><span style="font-size: 14pt; color: #008000;">$sudo apt-get install x-window-system-core<br /></span><span style="font-size: 14pt; color: #008000;">$sudo apt-get install gdm<br /></span><span style="font-size: 14pt; color: #008000;">$sudo apt-get install ubuntu-desktop<br /></span><span style="font-size: 14pt; color: #008000;">$sudo apt-get install gnome-core</span><span style="font-size: 14pt; color: #333300;"><br /></span><span style="font-size: 14pt; color: #333300;"><br />10.编译LIBSVM时"</span><span style="font-family: Verdana,Geneva,Helvetica,Arial,sans-serif; line-height: normal; background-color: #ffffff; font-size: 14pt;">/usr/bin/mkoctfile-3.2.3: not found"</span><span style="font-family: Verdana,Geneva,Helvetica,Arial,sans-serif; font-size: 13px; line-height: normal; background-color: #ffffff;">&nbsp;</span><br /><span style="font-size: 14pt; color: #333300;"><br /></span><span style="font-family: Verdana,Geneva,Helvetica,Arial,sans-serif; line-height: normal; font-size: 14pt; color: #008000; background-color: #ffffff;">$sudo apt-get install octave-headers</span><span style="font-size: 14pt; color: #333300;"><br /></span></div><br /><span style="font-size: 14pt; color: #333300; background-color: #ffffff;">11. Unity回到Gnome经典桌面<br /><br />按住ctrl+alt+T打开终端<br /></span><strong style="border-width: 0px; margin: 0px; padding: 0px; font-family: Arial,Verdana,'Microsoft Yahei','WenQuanYi Micro Hei',sans-serif; outline-width: 0px; vertical-align: baseline; line-height: 25px; background-color: #fff4dd; color: #008000; font-size: 14pt;">$sudo apt-get install gnome-session-fallback<br /><br /></strong><strong style="border-width: 0px; margin: 0px; padding: 0px; font-family: Arial,Verdana,'Microsoft Yahei','WenQuanYi Micro Hei',sans-serif; outline-width: 0px; vertical-align: baseline; line-height: 25px; background-color: #fff4dd; color: #000000; font-size: 14pt;">安装compizconfig</strong><strong style="border-width: 0px; margin: 0px; padding: 0px; font-family: Arial,Verdana,'Microsoft Yahei','WenQuanYi Micro Hei',sans-serif; outline-width: 0px; vertical-align: baseline; line-height: 25px; background-color: #fff4dd; color: #008000; font-size: 14pt;"><br /><div><code>$sudo apt-get install compizconfig-settings-manager</code></div></strong><span style="font-family: 'Lucida Grande', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 16px; background-color: #f7f4ef;">sudo apt-get install compizconfig-settings-manager</span><br /><br /><span style="font-size: 14pt; color: #333300;">12.Ubuntu的源位置/etc/apt/sources.list<br /></span><span style="font-size: 14pt; color: #008000;">$sudo apt-get update<br /></span><br /><span style="font-size: 14pt; color: #333300;">13.Debian zh_CN<br /></span><br /><span style="background-color: #fffcf3; color: #008000; font-size: 14pt; font-family: 'Lucida Console';">#dpkg-reconfigure locales</span><br />zh-cn<br /><span style="color: #008000; font-size: 14pt; font-family: 'Lucida Console';">#locale</span><br /><span style="background-color: #fffcf3; color: #008000; font-size: 14pt; font-family: 'Lucida Console';">#apt-get install ttf-arphic-gbsn00lp</span><br /><span style="background-color: #fffcf3; color: #008000; font-size: 14pt; font-family: 'Lucida Console';">#apt-get install ttf-arphic-gkai00mp<br />#<div>#apt-get install ttf-arphic-uming xfonts-intl-chinese</div>#<div>#apt-get install ttf-wqy-microhei</div><br /></span><span style="background-color: #fffcf3; color: #008000; font-size: 14pt; font-family: 'Lucida Console';">/etc/environment<br /></span><span style="background-color: #fffcf3; color: #008000; font-size: 14pt; font-family: 'Lucida Console';">LANGUAGE=&#8220;en_US:en&#8221;<br /></span><span style="background-color: #fffcf3; color: #008000; font-size: 14pt; font-family: 'Lucida Console';">LANG=&#8220;zh_CN&#8221;<br /><br /></span><span style="background-color: #fffcf3; color: #008000; font-size: 14pt; font-family: 'Lucida Console';">LANGUAGE=&#8220;zh_CN:zh:en_US:en&#8221;</span><br /><span style="font-family: 宋体,Arial; background-color: #fffcf3;"><br /></span><span style="font-family: 宋体,Arial; background-color: #fffcf3; font-size: 14pt;">14.Debian安装LaTeX<br /></span><span style="font-family: 宋体,Arial; background-color: #fffcf3; font-size: 14pt;"><br /><div><span style="font-size: 14pt; color: #008000; font-family: 'Lucida Console'; "># apt-get install texlive-latex-base </span><br /> </div><div><span style="font-size: 14pt; color: #008000; font-family: 'Lucida Console'; "># apt-get install latex-cjk-chinese</span></div><div><span style="font-size: 14pt; color: #008000; font-family: 'Lucida Console'; "># apt-get install latex-cjk-chinese-arphic-gbsn00lp latex-cjk-chinese-arphic-gkai00mp&nbsp; </span><br /> </div></span><br /><br /><span style="font-size: 14pt; ">15.Ubuntu中添加源</span><br /><br /><pre style="padding-top: 8.5px; padding-right: 8.5px; padding-bottom: 8.5px; padding-left: 8.5px; font-family: Menlo, Monaco, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; background-color: #f5f5f5; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgba(0, 0, 0, 0.148438); border-right-color: rgba(0, 0, 0, 0.148438); border-bottom-color: rgba(0, 0, 0, 0.148438); border-left-color: rgba(0, 0, 0, 0.148438); border-image: initial; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; "><span style="font-size: 14pt; font-family: 'Lucida Console'; color: #339966; ">$ sudo apt-get install python-software-properties </span><br /><span style="font-size: 14pt; font-family: 'Lucida Console'; color: #339966; ">$ sudo add-apt-repository ppa:keithw/mosh </span><br /><span style="font-size: 14pt; font-family: 'Lucida Console'; color: #339966; ">$ sudo apt-get update </span><br /><span style="font-size: 14pt; font-family: 'Lucida Console'; color: #339966; ">$ sudo apt-get install mosh</span></pre><br /><span style="font-size: 14pt;">16.vim 将tab替换为空格</span><br /><span style="font-size: 14pt; color: #008000; ">在/etc/vim/vimrc中添加</span><br /><span style="font-size: 14pt; color: #008000; ">set ts=4</span><br /><span style="font-size: 14pt; color: #008000; ">set expandtab</span><br /><br /><span style="font-size: 19px;">17.okular设置背景颜色</span><br /><span style="color: #008000; font-size: 19px;">红：230；绿：255；蓝：230<br /></span><br /><br /><span style="font-size: 14pt;">18.批量下载一个文件夹</span><br /><div><span style="font-size: 14pt; color: #339966;">wget -c -r -np -nd -k -L -p<br /><br /></span></div><div><span style="color: #008000;">&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;</span></div></div></div></div></div><img src ="http://www.cppblog.com/boath/aggbug/192663.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2012-10-02 18:23 <a href="http://www.cppblog.com/boath/archive/2012/10/02/192663.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一个不错的xelatex中文模板</title><link>http://www.cppblog.com/boath/archive/2012/09/24/191883.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Mon, 24 Sep 2012 14:06:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2012/09/24/191883.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/191883.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2012/09/24/191883.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/191883.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/191883.html</trackback:ping><description><![CDATA[<span style="font-size: 14pt; color: #000000;"> </span><div><span style="font-size: 14pt; color: #000000;">\documentclass{article}</span><br /><span style="font-size: 14pt; color: #000000;">\usepackage{zhfontcfg}</span><br /><span style="font-size: 14pt; color: #000000;">%/usr/share/texmf-texlive/tex/xelatex/fontspec/zhfontcfg.sty</span><br /><span style="font-size: 14pt; color: #000000;">\usepackage{indentfirst}</span><br /><span style="font-size: 14pt; color: #000000;">\usepackage[colorlinks,linkcolor=black]{hyperref}</span><br /><span style="font-size: 14pt; color: #000000;">\usepackage{setspace}</span><br /><br /><span style="font-size: 14pt; color: #000000;">\usepackage{geometry}</span><br /><span style="font-size: 14pt; color: #000000;">\geometry{left=1.5cm,right=1.5cm,top=3.5cm,bottom=3.5cm}</span><br /><br /><span style="font-size: 14pt; color: #000000;">\linespread{1.2}</span><br /><span style="font-size: 14pt; color: #000000;">\setlength{\parindent}{2em}</span><br /><span style="font-size: 14pt; color: #000000;">\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}</span><br /><br /><span style="font-size: 14pt; color: #000000;">\title{\erhao{\hei{中国科学技术大学&#8212;&#8212;操作系统与编译原理调研}}}</span><br /><span style="font-size: 14pt; color: #000000;">\author{\xiaoerhao{\kai{LXC}}}</span><br /><span style="font-size: 14pt; color: #000000;">\begin{document}</span><br /><span style="font-size: 14pt; color: #000000;">\maketitle</span><br /><span style="font-size: 14pt; color: #000000;">\sanhao{</span><br /><span style="font-size: 14pt; color: #000000;">&nbsp;&nbsp; &nbsp;\song{</span><br /><span style="font-size: 14pt; color: #000000;">&nbsp;&nbsp; &nbsp; \tableofcontents</span><br /><span style="font-size: 14pt; color: #000000;">&nbsp;&nbsp; &nbsp;}</span><br /><span style="font-size: 14pt; color: #000000;">}</span><br /><span style="font-size: 14pt; color: #000000;">\sanhao{</span><br /><span style="font-size: 14pt; color: #000000;">&nbsp;&nbsp; &nbsp;\lucida{I am a girl from America, so if I say hello, you can not follow me.}</span><br /><br /><br /><span style="font-size: 14pt; color: #000000;">&nbsp;&nbsp; &nbsp;\courier{I am a girl form America, so if I say hello, you can not follow me.}</span><br />&nbsp;&nbsp; &nbsp;<br /><br /><span style="font-size: 14pt; color: #000000;">&nbsp;&nbsp; &nbsp;\song{依然范特西，依然爱你，叶惠美，晴天，我很忙}</span><br /><br /><br /><span style="font-size: 14pt; color: #000000;">&nbsp;&nbsp; &nbsp;\kai{依然范特西，依然爱你，叶惠美，晴天，我很忙}</span><br /><br /><br /><span style="font-size: 14pt; color: #000000;">&nbsp;&nbsp; &nbsp;\yahei{依然范特西，依然爱你，叶惠美，晴天，我很忙}</span><br /><br /><span style="font-size: 14pt; color: #000000;">}</span><br /><span style="font-size: 14pt; color: #000000;">\end{document}</span><br /><br /><br />%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br /><div><br /><span style="color: #008000; font-size: 12pt;">% xetex/xelatex 字体设定宏包 &nbsp;</span><br />&nbsp;<br /><span style="color: #008000; font-size: 12pt;">\ProvidesPackage{zhfontcfg} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\usepackage[cm-default]{fontspec} %[cm-default]选项主要用来解决使用数学环境时数学符号不能正常显示的问题 &nbsp;</span><br />&nbsp;<br /><span style="color: #008000; font-size: 12pt;">\usepackage{xunicode,xltxtra} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\defaultfontfeatures{Mapping=tex-text} %如果没有它，会有一些 tex 特殊字符无法正常使用，比如连字符。 &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">% 中文断行 &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\XeTeXlinebreaklocale "zh" &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">%将系统字体名映射为逻辑字体名称，主要是为了维护的方便 &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnamewenquanyi{WenQuanYi Micro Hei Mono}</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnamefangsong{FangSong}</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnameyahei{Microsoft YaHei} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnamehei{SimHei} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnamesong{SimSun} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnamekai{楷体} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">%English Fonts</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnamemono{DejaVu Sans Mono} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnameroman{Times New Roman} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnamelucida{Lucida Console}</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnamecourier{Courier New}</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand\fontnamemeiryo{Meiryo UI}</span><br /><span style="color: #008000; font-size: 12pt;">%%设置常用中文字号，方便调用 &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\erhao}{\fontsize{22pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\sanhao}{\fontsize{16pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\xiaosanhao}{\fontsize{15pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\liuhao}{\fontsize{7.5pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">%设置文档正文字体为宋体 &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\setmainfont[BoldFont=\fontnamehei]{\fontnamesong} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\setsansfont[BoldFont=\fontnamehei]{\fontnamekai} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\setmonofont{\fontnamemono} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">%文泉驿</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\WENQUANYI{\fontnamewenquanyi}</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\wenquanyi}[1]{{\WENQUANYI#1}}</span><br /><span style="color: #008000; font-size: 12pt;">%楷体 &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\KAI {\fontnamekai} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\kai}[1]{{\KAI#1}} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">%黑体</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\HEI{\fontnamehei} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\hei}[1]{{\HEI#1}} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">%雅黑 &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\YAHEI{\fontnameyahei} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\yahei}[1]{{\YAHEI#1}} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">%</span><br /><span style="color: #008000; font-size: 12pt;">%宋体</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\SONG{\fontnamesong}</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\song}[1]{{\SONG#1}}</span><br /><span style="color: #008000; font-size: 12pt;">%仿宋</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\FANGSONG {\fontnamefangsong} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\fangsong}[1]{{\FANGSONG#1}} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">%英文 &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\ROMAN{\fontnameroman} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\newroman}[1]{\,{\ROMAN#1}\,}</span><br /><span style="color: #008000; font-size: 12pt;">%Lucida Console</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\LUCIDA{\fontnamelucida} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\lucida}[1]{\,{\LUCIDA#1}\,}</span><br /><span style="color: #008000; font-size: 12pt;">%Courier New</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\COURIER{\fontnamecourier} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\courier}[1]{\,{\COURIER#1}\,}</span><br /><span style="color: #008000; font-size: 12pt;">%Meiryo UI</span><br /><span style="color: #008000; font-size: 12pt;">\newfontinstance\MEIRYO{\fontnamemeiryo} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\newcommand{\meiryo}[1]{\,{\MEIRYO#1}\,}</span><br /><br />%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br /><div><span style="font-size: 14pt; font-family: Lucida Console; color: #000000;"></span><br /><br /><div style="color: #000000; font-family: 'Lucida Console'; font-size: 14pt; ">\documentclass{article}<br />\usepackage[cm-default]{fontspec} %[cm-default]选项主要用来解决使用数学环境时数学符号不能正常显示的问题 &nbsp;<br />&nbsp;<br />\usepackage{xunicode,xltxtra} &nbsp;<br />\defaultfontfeatures{Mapping=tex-text} %如果没有它，会有一些 tex 特殊字符无法正常使用，比如连字符。 &nbsp;<br />% 中文断行 &nbsp;<br />\XeTeXlinebreaklocale "zh" &nbsp;<br />\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt &nbsp;<br />%将系统字体名映射为逻辑字体名称，主要是为了维护的方便 &nbsp;<br />\newcommand\fontnamewenquanyi{WenQuanYi Micro Hei Mono}<br />\newcommand\fontnamefangsong{FangSong}<br />\newcommand\fontnameyahei{Microsoft YaHei} &nbsp;<br />\newcommand\fontnamehei{SimHei} &nbsp;<br />\newcommand\fontnamesong{SimSun} &nbsp;<br />\newcommand\fontnamekai{楷体} &nbsp;<br />%English Fonts<br />\newcommand\fontnamemono{DejaVu Sans Mono} &nbsp;<br />\newcommand\fontnameroman{Times New Roman} &nbsp;<br />\newcommand\fontnamelucida{Lucida Console}<br />\newcommand\fontnamecourier{Courier New}<br />\newcommand\fontnamemeiryo{Meiryo UI}<br />%%设置常用中文字号，方便调用 &nbsp;<br />\newcommand{\erhao}{\fontsize{22pt}{\baselineskip}\selectfont} &nbsp;<br />\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont} &nbsp;<br />\newcommand{\sanhao}{\fontsize{16pt}{\baselineskip}\selectfont} &nbsp;<br />\newcommand{\xiaosanhao}{\fontsize{15pt}{\baselineskip}\selectfont} &nbsp;<br />\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont} &nbsp;<br />\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont} &nbsp;<br />\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont} &nbsp;<br />\newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont} &nbsp;<br />\newcommand{\liuhao}{\fontsize{7.5pt}{\baselineskip}\selectfont} &nbsp;<br />%设置文档正文字体为宋体 &nbsp;<br />\setmainfont[BoldFont=\fontnamehei]{\fontnamesong} &nbsp;<br />\setsansfont[BoldFont=\fontnamehei]{\fontnamekai} &nbsp;<br />\setmonofont{\fontnamemono} &nbsp;<br />%文泉驿<br />\newfontinstance\WENQUANYI{\fontnamewenquanyi}<br />\newcommand{\wenquanyi}[1]{{\WENQUANYI#1}}<br />%楷体 &nbsp;<br />\newfontinstance\KAI {\fontnamekai} &nbsp;<br />\newcommand{\kai}[1]{{\KAI#1}} &nbsp;<br />%黑体<br />\newfontinstance\HEI{\fontnamehei} &nbsp;<br />\newcommand{\hei}[1]{{\HEI#1}} &nbsp;<br />%雅黑 &nbsp;<br />\newfontinstance\YAHEI{\fontnameyahei} &nbsp;<br />\newcommand{\yahei}[1]{{\YAHEI#1}} &nbsp;<br />%<br />%宋体<br />\newfontinstance\SONG{\fontnamesong}<br />\newcommand{\song}[1]{{\SONG#1}}<br />%仿宋<br />\newfontinstance\FANGSONG {\fontnamefangsong} &nbsp;<br />\newcommand{\fangsong}[1]{{\FANGSONG#1}} &nbsp;<br />%隶书<br />\newfontfamily\lishu{LiSu}<br /><br />%英文 &nbsp;<br />\newfontinstance\ROMAN{\fontnameroman} &nbsp;<br />\newcommand{\newroman}[1]{\,{\ROMAN#1}\,}<br />%Lucida Console<br />\newfontinstance\LUCIDA{\fontnamelucida} &nbsp;<br />\newcommand{\lucida}[1]{\,{\LUCIDA#1}\,}<br />%Courier New<br />\newfontinstance\COURIER{\fontnamecourier} &nbsp;<br />\newcommand{\courier}[1]{\,{\COURIER#1}\,}<br />%Meiryo UI<br />\newfontinstance\MEIRYO{\fontnamemeiryo} &nbsp;<br />\newcommand{\meiryo}[1]{\,{\MEIRYO#1}\,}<br />%Consolas<br />\newfontfamily\consol{Consolas}<br />%Minion Pro<br />\newfontfamily\minion{Minion Pro}<br /><br />\usepackage{indentfirst}<br />\usepackage[colorlinks,linkcolor=black]{hyperref}<br />\usepackage{setspace}<br /><br />\usepackage{geometry}<br />\geometry{left=1.5cm,right=1.5cm,top=3.5cm,bottom=3.5cm}<br /><br />\linespread{1.2}<br />\setlength{\parindent}{2em}<br />\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}<br /><br />\title{\erhao{\hei{中国科学技术大学&#8212;&#8212;操作系统与编译原理调研}}}<br />\author{\xiaoerhao{\kai{LXC}}}<br />\begin{document}<br />\maketitle<br />\sanhao{<br />&nbsp;&nbsp;&nbsp; \song{<br />&nbsp;&nbsp;&nbsp;&nbsp; \tableofcontents<br />&nbsp;&nbsp;&nbsp; }<br />}<br />\sanhao{<br />&nbsp;&nbsp;&nbsp; \lucida{I am a girl from America, so if I say hello, you can not follow me.}<br /><br /><br />&nbsp;&nbsp;&nbsp; \courier{I am a girl form America, so if I say hello, you can not follow me.}<br />&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; &nbsp;\consol{I am a girl form America, so if I say hello, you can not follow me.}<br /><br />&nbsp;&nbsp; &nbsp;\minion{I am a girl form America, so if I say hello, you can not follow me.}<br /><br /><br />&nbsp;&nbsp;&nbsp; \song{依然范特西，依然爱你，叶惠美，晴天，我很忙}<br /><br /><br />&nbsp;&nbsp;&nbsp; \kai{依然范特西，依然爱你，叶惠美，晴天，我很忙}<br /><br /><br />&nbsp;&nbsp;&nbsp; \yahei{依然范特西，依然爱你，叶惠美，晴天，我很忙}<br /><br /><br />&nbsp;&nbsp; &nbsp;\lishu{依然范特西，依然爱你，叶惠美，晴天，我很忙}<br /><br /><br />}<br />\end{document}</div><font face="'Lucida Console'" size="4">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</font><br /><br /><font face="'Lucida Console'" size="4"><span style="color: #008000; ">%一个论文的模板</span></font><br /><div><span style="font-size: 19px; color: #008000; ">%!Tex Program = xelatex</span></div><div><span style="font-size: 19px; color: #008000; ">% 请在同目录中添加xemod_1.jpg这一图片</span></div><div><span style="font-size: 19px; color: #008000; ">\documentclass[a4paper,11pt]{article}</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{xeCJK}</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{latexsym}</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{amsmath} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % AMS LaTeX宏包</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{amssymb} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % 用来排版漂亮的数学公式</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{amsbsy}</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{amsthm}</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{amsfonts}</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{mathrsfs} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 英文花体字体</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{bm} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 数学公式中的黑斜体</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{relsize} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % 调整公式字体大小：\mathsmaller, \mathlarger</span></div><div><span style="font-size: 19px; color: #008000; ">%\usepackage{ccmap} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % 使pdfLatex生成的文件支持复制等</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{graphicx} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 用于图像</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{caption}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%以下是版面控制部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{geometry}\geometry{left=2.75cm,right=2.5cm,top=2.5cm,bottom=2.5cm}</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{indentfirst} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % 首行缩进</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage[perpage,symbol]{footmisc}% 脚注控制</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage[sf]{titlesec} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 控制标题</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{titletoc} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 控制目录</span></div><div><span style="font-size: 19px; color: #008000; ">\titlecontents{section}[0pt]{\addvspace{2pt}\filright}</span></div><div><span style="font-size: 19px; color: #008000; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {\contentspush{\thecontentslabel\ }}</span></div><div><span style="font-size: 19px; color: #008000; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {}{\titlerule*[8pt]{.}\contentspage}</span></div><div><span style="font-size: 19px; color: #008000; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 添加section在目录里的点号</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{setspace} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 调节行间距 &nbsp;&nbsp;</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{booktabs} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 用于表格中加下划线</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{fancyhdr} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 页眉页脚</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{type1cm} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % 控制字体大小</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{indentfirst} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % 首行缩进</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{makeidx} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % 建立索引</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{textcomp} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 千分号等特殊符号</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{layouts} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % 打印当前页面格式</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{bbding} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 一些特殊符号</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{cite} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 支持引用</span></div><div><span style="font-size: 19px; color: #008000; ">\setlength{\skip\footins}{0.5cm} &nbsp; &nbsp; % 脚注与正文的距离</span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%以上是版面控制部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%以下为中英文字体设置%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{times}</span></div><div><span style="font-size: 19px; color: #008000; ">\usepackage{fontspec,xunicode,xltxtra} % XeLaTeX相关字体字库</span></div><div><span style="font-size: 19px; color: #008000; ">\XeTeXlinebreaklocale "zh"</span></div><div><span style="font-size: 19px; color: #008000; ">\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\youyuan{YouYuan}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\hwcaiyun{STCaiyun}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\hwhupo{STHupo}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\yaoti{FZYaoTi}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\kaiti{KaiTi_GB2312}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\newfontfamily\xsong{NSimSun}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\hwsong{STSong}</span></div><div><span style="font-size: 19px; color: #008000; ">\newfontfamily\yahei{Microsoft YaHei}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\fangsong{FangSong_GB2312}</span></div><div><span style="font-size: 19px; color: #008000; ">\newfontfamily\song{SimSun}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\hwfangsong{STFangsong}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\weiti{STXinwei}</span></div><div><span style="font-size: 19px; color: #008000; ">\newfontfamily\hei{SimHei}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\hwxingkai{STXingkai}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\hwlishu{STLiti}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\zhongsong{STZhongsong}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\shuti{FZShuTi}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\hwhei{STXihei}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\lishu{LiSu}</span></div><div><span style="font-size: 19px; color: #008000; ">%\newfontfamily\hwkai{STKaiti}</span></div><div><span style="font-size: 19px; color: #008000; ">\newfontfamily\tnroman{Times New Roman}</span></div><div><span style="font-size: 19px; color: #008000; ">\newfontfamily\consol{Consolas}</span></div><div><span style="font-size: 19px; color: #008000; ">\newfontfamily\li{LiSu}</span></div><div><span style="font-size: 19px; color: #008000; ">\newcommand{\sanhao}{\fontsize{16pt}{24pt}\selectfont} &nbsp; &nbsp; &nbsp;% 三号, 1.5倍行距</span></div><div><span style="font-size: 19px; color: #008000; ">\newcommand{\sihao}{\fontsize{14pt}{21pt}\selectfont} &nbsp; &nbsp; &nbsp; % 四号, 1.5倍行距</span></div><div><span style="font-size: 19px; color: #008000; ">\newcommand{\xiaosi}{\fontsize{12pt}{18pt}\selectfont} &nbsp; &nbsp; &nbsp;% 小四, 1.5倍行距</span></div><div><span style="font-size: 19px; color: #008000; ">\newcommand{\wuhao}{\fontsize{10.5pt}{10.5pt}\selectfont} &nbsp; % 五号, 单倍行距</span></div><div><span style="font-size: 19px; color: #008000; ">\setCJKmainfont{SimSun} &nbsp; % 设置默认中文字体</span></div><div><span style="font-size: 19px; color: #008000; ">\setCJKmonofont{SimSun} &nbsp; % 设置等宽字体</span></div><div><span style="font-size: 19px; color: #008000; ">\setmainfont{Times New Roman} %设置默认英文字体。</span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%以上为中英文字体设置%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下是一些命令或环境的重定义或自定义%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">\newtheorem{theorem}{定理}</span></div><div><span style="font-size: 19px; color: #008000; ">\newtheorem{definition}{定义}</span></div><div><span style="font-size: 19px; color: #008000; ">\newtheorem{property}{问题}</span></div><div><span style="font-size: 19px; color: #008000; ">\newtheorem{proposition}{猜测}</span></div><div><span style="font-size: 19px; color: #008000; ">\newtheorem{lemma}{引理}</span></div><div><span style="font-size: 19px; color: #008000; ">\newtheorem{corollary}{推论}</span></div><div><span style="font-size: 19px; color: #008000; ">\renewcommand{\proofname}{证明}</span></div><div><span style="font-size: 19px; color: #008000; ">\renewcommand{\contentsname}{\center\hei{\sanhao{目录}}}</span></div><div><span style="font-size: 19px; color: #008000; ">\renewcommand{\refname}{\textbf{\xiaosi{\song{参考文献}}}} &nbsp; &nbsp; &nbsp;% 将References改为参考文献</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\newenvironment{chabstract}{{\hei{\xiaosi{摘要：}}}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;%定义中文摘要</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\newenvironment{enabstract}{{\bfseries{\xiaosi\tnroman{Abstract:}}}} &nbsp; &nbsp; &nbsp; &nbsp; %定义英文摘要</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\newenvironment{chkeyword}{{\hei{\xiaosi{关键词：}}}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %定义中文关键词</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\newenvironment{enkeyword}{{\bfseries{\xiaosi\tnroman{Key words:}}}} &nbsp; &nbsp; &nbsp; &nbsp; %定义英文关键词</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\newcommand{\ud}{\mathrm{d}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;%用\ud 作为微分算子&#8220;d&#8221;</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以上是一些命令或环境的重定义或自定义%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下进入正文%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\title{\hei{\sanhao{六种典型的数列空间和函数空间}}}</span></div><div><span style="font-size: 19px; color: #008000; ">\author{\li{\xiaosi{孙悟空}}}</span></div><div><span style="font-size: 19px; color: #008000; ">\date{} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %本文中手动添加时间</span></div><div><span style="font-size: 19px; color: #008000; ">\begin{document}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{titlepage} &nbsp; %封面</span></div><div><span style="font-size: 19px; color: #008000; ">\mbox{}</span></div><div><span style="font-size: 19px; color: #008000; ">\vspace*{20pt}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%\centerline{\LARGE 综合&#215;&#215;&#215;&#215;}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{figure}[!htb]</span></div><div><span style="font-size: 19px; color: #008000; ">&nbsp; \centering</span></div><div><span style="font-size: 19px; color: #008000; ">&nbsp; \includegraphics[height=85pt]{xemod_1.jpg}</span></div><div><span style="font-size: 19px; color: #008000; ">\end{figure}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\vspace*{40pt}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\centerline{\fontsize{50pt}{50pt}{本\quad \quad 科\quad \quad 毕\quad \quad 业\quad \quad 论\quad \quad 文}}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\vspace*{180pt}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{spacing}{1.8} &nbsp; &nbsp;%行间距增为1.8倍</span></div><div><span style="font-size: 19px; color: #008000; ">\begin{center}</span></div><div><span style="font-size: 19px; color: #008000; ">\begin{tabular}{rc}</span></div><div><span style="font-size: 19px; color: #008000; ">\sanhao 论文题目：&amp; \sanhao 六种典型的数列空间和函数空间\\ \cmidrule(r){2-2} %第二格加下划线</span></div><div><span style="font-size: 19px; color: #008000; ">\sanhao 学生姓名：&amp; \sanhao 悟 \qquad 空\\ \cmidrule(r){2-2}</span></div><div><span style="font-size: 19px; color: #008000; ">\sanhao 学\ \ \ \quad 号：&amp; \sanhao 200908012345\\ \cmidrule(r){2-2}</span></div><div><span style="font-size: 19px; color: #008000; ">\sanhao 专\ \ \ \quad 业： &amp; \sanhao 数~学~与~信~息~科~学 \\ \cmidrule(r){2-2}</span></div><div><span style="font-size: 19px; color: #008000; ">\sanhao 指导老师： &amp; \sanhao 孙 \quad 悟 \quad 饭\\ \cmidrule(r){2-2}</span></div><div><span style="font-size: 19px; color: #008000; ">\sanhao 学\ \ \ \quad 院： &amp; \sanhao 数~学~科~学~学~院\\ \cmidrule(r){2-2}</span></div><div><span style="font-size: 19px; color: #008000; ">\end{tabular}</span></div><div><span style="font-size: 19px; color: #008000; ">\end{center}</span></div><div><span style="font-size: 19px; color: #008000; ">\end{spacing}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\vfill</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%\centerline{\normalsize &#215;&#215;大学}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\centerline{\sanhao 2012年2月18日}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\end{titlepage}</span></div><div><span style="font-size: 19px; color: #008000; ">\thispagestyle{empty} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 首页无页眉页脚</span></div><div><span style="font-size: 19px; color: #008000; ">\newpage</span></div><div><span style="font-size: 19px; color: #008000; ">\begin{spacing}{2}</span></div><div><span style="font-size: 19px; color: #008000; ">\tableofcontents &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;% 插入目录</span></div><div><span style="font-size: 19px; color: #008000; ">\end{spacing}</span></div><div><span style="font-size: 19px; color: #008000; ">\thispagestyle{empty} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % 首页无页眉页脚</span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下是中文摘要、关键词%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\clearpage &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;%双面打印(openright) 用\cleardoublepage，刷新页面信息，为了添加目录章节后页码不乱</span></div><div><span style="font-size: 19px; color: #008000; ">\pagenumbering{arabic} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;%自此处页码开始计数 &nbsp; &nbsp; &nbsp;&nbsp;</span></div><div><span style="font-size: 19px; color: #008000; ">\addcontentsline{toc}{section}{\textbf{\xiaosi{摘要}}} %创建虚拟章节，便于将摘要部分添加到目录</span></div><div><span style="font-size: 19px; color: #008000; ">\maketitle</span></div><div><span style="font-size: 19px; color: #008000; ">\begin{chabstract}</span></div><div><span style="font-size: 19px; color: #008000; ">本文讨论了本科层次的泛函分析教材中函数空间和数列空间的实例，$\cdots$.\\</span></div><div><span style="font-size: 19px; color: #008000; ">\end{chabstract}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{chkeyword}</span></div><div><span style="font-size: 19px; color: #008000; ">{\hei\xiaosi{数列空间；函数空间；收敛性； 同构；\tnroman{Fourier}~变换.}}\\</span></div><div><span style="font-size: 19px; color: #008000; ">\end{chkeyword}</span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以上是中文摘要、关键词%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">中图分类号：O177\\</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下是英文题目、姓名、摘要、关键词%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">\begin{center}{\bfseries{\sanhao\tnroman{Some properties and links between six typical sequence spaces and function spaces}}} \\</span></div><div><span style="font-size: 19px; color: #008000; ">\end{center}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{center}{\sihao\tnroman{Sun Wu-kong}}\\</span></div><div><span style="font-size: 19px; color: #008000; ">\end{center}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{enabstract}\ {\xiaosi\tnroman{This paper has discussed the instance of sequence spaces and function spaces in the textbooks of undergraduate-level functional analysis $\cdots$\\}}</span></div><div><span style="font-size: 19px; color: #008000; ">\end{enabstract}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{enkeyword}</span></div><div><span style="font-size: 19px; color: #008000; ">\ {\xiaosi{sequence spaces;\ \ function spaces;\ \ convergence;\ \ isomorphism;\ \ Fourier transform.}}\\</span></div><div><span style="font-size: 19px; color: #008000; ">\end{enkeyword}</span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以上是英文题目、姓名、摘要、关键词%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">\newpage</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\li{这是隶书}\\</span></div><div><span style="font-size: 19px; color: #008000; ">\consol{What a fuck you are dong?}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下为论文引言部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">\section{\textbf{\xiaosi{引言}}}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">{\xiaosi{\song{在一般的本科生泛函分析教材中， $\cdots$ 如~$L^p(\mathbf{E})$~和~$l^p$~}}}\\</span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以上为论文引言部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">{\xiaosi{\song{</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下为论文第二部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">\section{\textbf{\xiaosi 数列空间和函数空间的定义}}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">以下给出六种典型的数列空间和函数空间的定义，文字叙述和符号表示依照文献\cite{1}.\\</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{definition}[空间~$l^p$ &nbsp; $(p\geq 1)$] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %%%%%%%%%%%%%%定义 1%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">一切满足</span></div><div><span style="font-size: 19px; color: #008000; ">~$(\sum\limits^{\infty}_{i=1}|\xi_i|^p)^{1/p}&lt;+\infty$~ &nbsp; &nbsp;%注意命令 \limits</span></div><div><span style="font-size: 19px; color: #008000; ">的数列~$x=(\xi_1,\xi_2,\cdots)$~的全体记为~$l^p$.\ 容易验证</span></div><div><span style="font-size: 19px; color: #008000; ">$${\parallel x\parallel}_{p}=(\sum^{\infty}_{i=1}|\xi_i|^p)^{1/p}&lt;+\infty$$ 是~$l^p$~上的范数.</span></div><div><span style="font-size: 19px; color: #008000; ">\end{definition}</span></div><div><span style="font-size: 19px; color: #008000; ">$\cdots$</span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%以上为论文正文第二部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%以下为论文正文第三部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">\section{\textbf{\song{\xiaosi 六类空间各自的性质}}}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">{\subsection{\textbf{\song{\xiaosi{$l^p$和$L^p(\mathbf{E})$}}}}}</span></div><div><span style="font-size: 19px; color: #008000; ">$l^p$~和~$L^p(\mathbf{E})$~都可分.</span></div><div><span style="font-size: 19px; color: #008000; ">$\cdots$</span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%以上为论文正文第三部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%%%以下为论文正文第四部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">{\section{\textbf{\song{\xiaosi 六种空间之间的一些联系}}}}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">{\subsection{\textbf{\song\xiaosi{函数空间与函数空间、数列空间与数列空间之间的联系}}}}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">$\cdots$</span></div><div><span style="font-size: 19px; color: #008000; ">{\subsection{\textbf{\song\xiaosi{函数空间与数列空间的联系}}}}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{lemma}[~Riesz-Fiesher~定理] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;%%%%%%%%%%%%%%%%%%%%%% 引理 1 %%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">设~$\{e_n\}$~是~Hilbert~空间~$\mathbf{H}$~中一就范正交系，$(c_1,c_2,\cdots)\in l^2$，则存在唯一的~$x\in H$~使~$(x,e_n)=e_n,\quad n=1,2,\cdots$~并且~$(x,x)=\sum\limits_{n=1}^\infty|c_n|^2$.\\</span></div><div><span style="font-size: 19px; color: #008000; ">\end{lemma}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">文献\cite{4}给出了~$1\leq p\leq 2$~时的~$L^p(\mathbf{E})$~上的~Fourier~变换的构造过程，并指出当</span></div><div><span style="font-size: 19px; color: #008000; ">~$p&gt;2$~时在广义函数的意义下~$L^p(\mathbf{E})$~仍可导入~Fourier~变换.\ 问题在于~$p\neq 2$~时~Fourier</span></div><div><span style="font-size: 19px; color: #008000; ">~变换能否构成~$L^p(\mathbf{E})$~与~$l^p$~之间的保范同构.</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\begin{property}\label{pro2} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;%%%%%%%%%%%%%%%%% 问题 2 %%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">完备距离空间~$S(\mathbf{E})$~与~$s$，Banach~空间~$M(\mathbf{E})$~与~$m$~之间是否有同构关系？更进一步，~Fourier~变换及其反演公式</span></div><div><span style="font-size: 19px; color: #008000; ">能否推广到完备距离空间~$S(\mathbf{E})$~与~$s$，Banach~空间~$M(\mathbf{E})$~ 与~$m$</span></div><div><span style="font-size: 19px; color: #008000; ">\end{property}</span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%以上是论文正文的第四部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px; color: #008000; ">}}}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">%%%%%%%%%%%%%%%%%%%%%%%%%以下是参考文献%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\clearpage %双面打印(openright) 用\cleardoublepage</span></div><div><span style="font-size: 19px; color: #008000; ">\addcontentsline{toc}{section}{\textbf{\xiaosi{参考文献}}}</span></div><div><span style="font-size: 19px; color: #008000; ">\begin{thebibliography}{99}</span></div><div><span style="font-size: 19px; color: #008000; ">{\song{\wuhao</span></div><div><span style="font-size: 19px; color: #008000; ">\bibitem{1}那汤松.\ 实变函数论（第5版）.\ 徐瑞云 译.\ 北京：高等教育出版社，2010.</span></div><div><span style="font-size: 19px; color: #008000; ">\bibitem{2}郭大钧等.\ 实变函数与泛函分析（第二版）$\cdot$ 下册.\ 山东：山东大学出版社，2005.</span></div><div><span style="font-size: 19px; color: #008000; ">\bibitem{3}夏道行等.\ 实变函数论与泛函分析（下册$\cdot$ 第二版修订本）.\ 北京：高等教育出版社，2010.</span></div><div><span style="font-size: 19px; color: #008000; ">\bibitem{4}A.H.柯尔莫戈洛夫，C.B.佛明.\ 函数论与泛函分析初步（第7 版）.\ 北京：高等教育出版社，2006.</span></div><div><span style="font-size: 19px; color: #008000; ">}<br />}</span></div><div><span style="font-size: 19px; color: #008000; ">\end{thebibliography}</span></div><div><span style="font-size: 19px;"><br /></span></div><div><span style="font-size: 19px; color: #008000; ">\end{document}</span></div></div></div></div><img src ="http://www.cppblog.com/boath/aggbug/191883.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2012-09-24 22:06 <a href="http://www.cppblog.com/boath/archive/2012/09/24/191883.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu安装matplotlib</title><link>http://www.cppblog.com/boath/archive/2012/09/22/191586.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Sat, 22 Sep 2012 05:46:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2012/09/22/191586.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/191586.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2012/09/22/191586.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/191586.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/191586.html</trackback:ping><description><![CDATA[<div><span style="color: #000000; font-size: 14pt;">参考链接:http://www.codecho.com/install-matplotlib-on-ubuntu-12-04/</span><br /><br /><span style="color: #000000; font-size: 14pt;">相关资料:http://www.scipy.org/Cookbook/Matplotlib<br /><br /></span><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #000000; font-size: 14pt;">http://en.wikipedia.org/wiki/Matplotlib</span></div></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #000000; font-size: 14pt;">http://en.wikipedia.org/wiki/Numpy</span></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #000000; font-size: 14pt;">http://en.wikipedia.org/wiki/Scipy</span></div>&nbsp;<img src ="http://www.cppblog.com/boath/aggbug/191586.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2012-09-22 13:46 <a href="http://www.cppblog.com/boath/archive/2012/09/22/191586.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>dfs解数独(sudoku)问题</title><link>http://www.cppblog.com/boath/archive/2012/09/14/190614.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Fri, 14 Sep 2012 02:48:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2012/09/14/190614.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/190614.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2012/09/14/190614.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/190614.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/190614.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 9x9的格子中可以划分为9个3x3的小宫，对每一个格子可以尝试放置1～9个数，在放置前要判断是否冲突(conflict()),如果不冲突，就继续放置下一个格子，如果按照当前的放法无法得到正确的解，那么在回溯到当前位置后，要把当前位置重新置为0以便进行下一轮的搜索，因为只有当前值为0才能放置新值。Code highlighting produced by Actipro CodeHighlighte...&nbsp;&nbsp;<a href='http://www.cppblog.com/boath/archive/2012/09/14/190614.html'>阅读全文</a><img src ="http://www.cppblog.com/boath/aggbug/190614.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2012-09-14 10:48 <a href="http://www.cppblog.com/boath/archive/2012/09/14/190614.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>深度优先搜索（dfs）解24点问题</title><link>http://www.cppblog.com/boath/archive/2012/09/12/190401.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Wed, 12 Sep 2012 08:13:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2012/09/12/190401.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/190401.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2012/09/12/190401.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/190401.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/190401.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp; 一开始将4个数存在数组中，每次从中取出两个数进行 + - * / 运算，并用运算后的结果替换原来的两个数，当数组中只有一个元素时判断这个数是不是24，如果是则输出结果。每次递归搜索后，注意将数组中取出的两个数恢复原位。&nbsp;&nbsp; 代码中， 每次取出res[i]和res[j]后将两数运算结果存入res[i]中，将res[j] = res[n-1]这样递...&nbsp;&nbsp;<a href='http://www.cppblog.com/boath/archive/2012/09/12/190401.html'>阅读全文</a><img src ="http://www.cppblog.com/boath/aggbug/190401.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2012-09-12 16:13 <a href="http://www.cppblog.com/boath/archive/2012/09/12/190401.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>XeLatex中文环境配置</title><link>http://www.cppblog.com/boath/archive/2012/08/29/188645.html</link><dc:creator>lixiucheng</dc:creator><author>lixiucheng</author><pubDate>Wed, 29 Aug 2012 08:04:00 GMT</pubDate><guid>http://www.cppblog.com/boath/archive/2012/08/29/188645.html</guid><wfw:comment>http://www.cppblog.com/boath/comments/188645.html</wfw:comment><comments>http://www.cppblog.com/boath/archive/2012/08/29/188645.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/boath/comments/commentRss/188645.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/boath/services/trackbacks/188645.html</trackback:ping><description><![CDATA[<span style="font-size: 12pt; color: #000000;">第一步。</span><br /><span style="font-size: 12pt; color: #000000;">在/usr/share/fonts/创建文件夹</span><br /><span style="font-size: 12pt; color: #000000;">$sudo mkdir /usr/share/fonts/windowsfonts/</span><br /><span style="font-size: 12pt; color: #000000;">并将windows下Windows\Fonts文件夹下的字体全部拷贝过来（大约340MB）</span><br /><span style="font-size: 12pt; color: #000000;">进入文件夹/usr/share/fonts/windowsfonts/下执行命令：</span><br /><span style="font-size: 12pt; color: #000000;">$sudo mkfontscale;&nbsp;&nbsp; sudo mkfontdir;&nbsp;&nbsp;&nbsp; sudo fc-cache;</span><br /><span style="font-size: 12pt; color: #000000;">中间可能会出现一些错误提示不过没关系，现在应该可以使用windows下的字体了</span><br /><span style="font-size: 12pt; color: #000000;">$fc-list :lang=zh-cn</span><br /><span style="font-size: 12pt; color: #000000;">可以查看系统可用的中文字体</span><br /><br /><span style="font-size: 12pt; color: #000000;">第二步。</span><br /><span style="font-size: 12pt; color: #000000;">创建文件zhfontcfg.sty内容如下：</span><br /><br /><div><span style="color: #008000; font-size: 12pt;"></span><div><br /><span style="font-size: 12pt; color: #008000;">% xetex/xelatex 字体设定宏包 &nbsp;</span><br />&nbsp;<br /><span style="font-size: 12pt; color: #008000;">\ProvidesPackage{zhfontcfg} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\usepackage[cm-default]{fontspec} %[cm-default]选项主要用来解决使用数学环境时数学符号不能正常显示的问题 &nbsp;</span><br />&nbsp;<br /><span style="font-size: 12pt; color: #008000;">\usepackage{xunicode,xltxtra} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\defaultfontfeatures{Mapping=tex-text} %如果没有它，会有一些 tex 特殊字符无法正常使用，比如连字符。 &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">% 中文断行 &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\XeTeXlinebreaklocale "zh" &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">%将系统字体名映射为逻辑字体名称，主要是为了维护的方便 &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnamewenquanyi{WenQuanYi Micro Hei Mono}</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnamefangsong{FangSong}</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnameyahei{Microsoft YaHei} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnamehei{SimHei} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnamesong{SimSun} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnamekai{楷体} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">%English Fonts</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnamemono{DejaVu Sans Mono} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnameroman{Times New Roman} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnamelucida{Lucida Console}</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand\fontnamecourier{Courier New}</span><br /><span style="font-size: 12pt; color: #008000;">%%设置常用中文字号，方便调用 &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\erhao}{\fontsize{22pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\sanhao}{\fontsize{16pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\xiaosanhao}{\fontsize{15pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\liuhao}{\fontsize{7.5pt}{\baselineskip}\selectfont} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">%设置文档正文字体为宋体 &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\setmainfont[BoldFont=\fontnamehei]{\fontnamesong} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\setsansfont[BoldFont=\fontnamehei]{\fontnamekai} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\setmonofont{\fontnamemono} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">%文泉驿</span><br /><span style="font-size: 12pt; color: #008000;">\newfontinstance\WENQUANYI{\fontnamewenquanyi}</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\wenquanyi}[1]{{\WENQUANYI#1}}</span><br /><span style="font-size: 12pt; color: #008000;">%楷体 &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newfontinstance\KAI {\fontnamekai} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\kai}[1]{{\KAI#1}} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">%黑体</span><br /><span style="font-size: 12pt; color: #008000;">\newfontinstance\HEI{\fontnamehei} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\hei}[1]{{\HEI#1}} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">%雅黑 &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newfontinstance\YAHEI{\fontnameyahei} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\yahei}[1]{{\YAHEI#1}} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">%</span><br /><span style="font-size: 12pt; color: #008000;">%宋体</span><br /><span style="font-size: 12pt; color: #008000;">\newfontinstance\SONG{\fontnamesong}</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\song}[1]{{\SONG#1}}</span><br /><span style="font-size: 12pt; color: #008000;">%仿宋</span><br /><span style="font-size: 12pt; color: #008000;">\newfontinstance\FANGSONG {\fontnamefangsong} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\fangsong}[1]{{\FANGSONG#1}} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">%英文 &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newfontinstance\ROMAN{\fontnameroman} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\newroman}[1]{\,{\ROMAN#1}\,}</span><br /><span style="font-size: 12pt; color: #008000;">%Lucida Console</span><br /><span style="font-size: 12pt; color: #008000;">\newfontinstance\LUCIDA{\fontnamelucida} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\lucida}[1]{\,{\LUCIDA#1}\,}</span><br /><span style="font-size: 12pt; color: #008000;">%Courier New</span><br /><span style="font-size: 12pt; color: #008000;">\newfontinstance\COURIER{\fontnamecourier} &nbsp;</span><br /><span style="font-size: 12pt; color: #008000;">\newcommand{\courier}[1]{\,{\COURIER#1}\,}</span></div><span style="color: #008000; font-size: 12pt;"><br /><br /></span><span style="color: #000000; font-size: 12pt;">保存文件，置于/usr/share/texmf-texlive/tex/xelatex/fontspec/下</span><span style="color: #000000; font-size: 12pt;">，执行命令：<br /></span><span style="color: #000000; font-size: 12pt;">$sudo texhash<br /></span><span style="color: #000000; font-size: 12pt;">此时即可使用了。<br /><br /></span><span style="color: #000000; font-size: 12pt;">测试,创建文件main.tex</span><span style="color: #000000; font-size: 12pt;">:<br /></span><span style="color: #000000;"><br /><div><span style="color: #008000; font-size: 12pt;">\documentclass{article} &nbsp;</span><br />&nbsp; <br /><span style="color: #008000; font-size: 12pt;">\usepackage{zhfontcfg} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\usepackage[colorlinks,linkcolor=black]{hyperref} &nbsp;</span><br /><br /><span style="color: #008000; font-size: 12pt;">\title{latex多字体简易示例} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\author{boat} &nbsp;</span><br /><br /><span style="color: #008000; font-size: 12pt;">\begin{document} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\maketitle &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\section{楷体} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\kai{楷体} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\section{黑体} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\hei{黑体} &nbsp;</span><br /><span style="color: #008000; font-size: 12pt;">\section{正文}</span><br /><span style="color: #008000; font-size: 12pt;">这里是正文，默认的字体是宋体，不知道显示出来的效果是什么样子。半岛铁盒里面隐藏着什么样的秘密&#8212;&#8212;不能说的秘密，好神秘诶，依然范特西,中文断行。回车还是空格？太棒了，以后可以使用中文了！！</span><br /><span style="color: #008000; font-size: 12pt;">\end{document}</span><br /><br /><br /><span style="font-size: 12pt;">$xelatex main.tex</span><br /><span style="font-size: 12pt;">编译即可</span><br /><br /><span style="font-size: 12pt;">参考：http://forum.ubuntu.org.cn/viewtopic.php?t=247476</span></div></span></div><img src ="http://www.cppblog.com/boath/aggbug/188645.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/boath/" target="_blank">lixiucheng</a> 2012-08-29 16:04 <a href="http://www.cppblog.com/boath/archive/2012/08/29/188645.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>