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

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

\end{document}
posted @ 2012-12-24 15:28 lixiucheng 阅读(2731) | 评论 (0)编辑 收藏
  2012年10月16日
\documentclass{article}

%%%%%%%%%%%%% C++ Code
\usepackage{color}
\usepackage{xcolor}
\definecolor{keywordcolor}{rgb}{0.8,0.1,0.5}
\usepackage{listings}
\lstset{breaklines}%这条命令可以让LaTeX自动将长的代码行换行排版
\lstset{extendedchars=false}%这一条命令可以解决代码跨页时,章节标题,页眉等汉字不显示的问题
\lstset{language=C++, %用于设置语言为C++
keywordstyle=\color{keywordcolor} \bfseries,
identifierstyle=,
basicstyle=\ttfamily, 
commentstyle=\color{blue} \textit,
stringstyle=\ttfamily, 
showstringspaces=false,
%frame=shadowbox, %边框
captionpos=b
}
%%%%%%%%%%%%% C++ Code

\title{AC Machine}
\author{Boat}
\begin{document}
\maketitle

\begin{lstlisting}
/*
**ac_automation: multipattern match algorithm
*input: n patterns and string
*output: all the patterns that appear in the string
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void)
{
       return 0;
}
\end{lstlisting}
\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%beamer


\documentclass{beamer}
\usetheme{Berkeley}


%%%
\usepackage{color}
\usepackage{xcolor}
\definecolor{keywordcolor}{rgb}{0.8,0.1,0.5}
\usepackage{listings}
\lstset{breaklines}%这条命令可以让LaTeX自动将长的代码行换行排版
\lstset{extendedchars=false}%这一条命令可以解决代码跨页时,章节标题,页眉等汉字不显示的问题
\lstset{language=C++, %用于设置语言为C++
keywordstyle=\color{keywordcolor} \bfseries, %设置关键词
identifierstyle=,
basicstyle=\ttfamily, 
commentstyle=\color{blue} \textit,
stringstyle=\ttfamily, 
showstringspaces=false,
%frame=shadowbox, %边框
captionpos=b
}
%%%

\begin{document}
\begin{frame}[fragile]
\frametitle{C Code Show}

\begin{lstlisting}

int main(int argc, char *argv[])
{
    int i;
    return 0;
}
\end{lstlisting}

\end{frame}
\end{document}
posted @ 2012-10-16 20:55 lixiucheng 阅读(5643) | 评论 (0)编辑 收藏
     摘要: /*Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->  1 /*  2 **ac_automation: multipattern match algorithm...  阅读全文
posted @ 2012-10-16 14:23 lixiucheng 阅读(701) | 评论 (0)编辑 收藏
  2012年10月2日
1.将两个视频合并为一个
$mencoder -oac pcm -ovc copy -idx -o output.flv 0.flv 1.flv
截取
$
mencoder -o d.mp4 -ovc copy -oac pcm -ss 30:15 -endpos 0:55 z.mp4

2.将两个pdf文档合并为一个
$sudo apt-get install gs pdftk
$gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=LaTeX_and_Beamer.pdf -dBATCH berkeley_latex.pdf berkeley_beamer.pdf

3.修改MAC地址
#ifconfig eth0 down

#ifconfig eth0 hw ether 00:26:18:f9:80:38 #mine

永久修改:

在/etc/rc.d/rc.local里加上这三句(也可以在/etc/init.d/network里加下面三行)

ifconfig eth0 down

ifconfig eth0 hw ether 00:26:9e:07:06:0a #lv

ifconfig eht0 up

4.修改IP地址

#ifconfig ethe0 down

#ifconfig ethe0 192.168.169.245 netmask 255.255.255.0

以上的方法下次启动时就无效了

如果要以后每次都生效则加入到以下文件里面

在/etc/sysconfig/network-scripts/下修改ifcfg-eth0地址


5.一块网卡添加两个IP地址
#ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0

#ifconfig eth0:2 192.168.1.2 netmask 255.255.255.0


6.安装Ibus输入法

$sudo apt-get install ibus-pinyin ibus-pinyin-db-android
7.升级Ibus输入法

$sudo add-apt-repository ppa:shawn-p-huang/ppa 
$sudo apt-get update 
$sudo apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase

8.在Redhat 下用 yum 安装g++

#yum install gcc-c++


9.ubuntu server 12.04安装后添加GUI

$sudo apt-get install x-window-system-core
$sudo apt-get install gdm
$sudo apt-get install ubuntu-desktop
$sudo apt-get install gnome-core

10.编译LIBSVM时"
/usr/bin/mkoctfile-3.2.3: not found" 

$sudo apt-get install octave-headers

11. Unity回到Gnome经典桌面

按住ctrl+alt+T打开终端
$sudo apt-get install gnome-session-fallback

安装compizconfig
$sudo apt-get install compizconfig-settings-manager
sudo apt-get install compizconfig-settings-manager

12.Ubuntu的源位置/etc/apt/sources.list
$sudo apt-get update

13.Debian zh_CN

#dpkg-reconfigure locales
zh-cn
#locale
#apt-get install ttf-arphic-gbsn00lp
#apt-get install ttf-arphic-gkai00mp
#
#apt-get install ttf-arphic-uming xfonts-intl-chinese
#
#apt-get install ttf-wqy-microhei

/etc/environment
LANGUAGE=“en_US:en”
LANG=“zh_CN”

LANGUAGE=“zh_CN:zh:en_US:en”

14.Debian安装LaTeX

# apt-get install texlive-latex-base
# apt-get install latex-cjk-chinese
# apt-get install latex-cjk-chinese-arphic-gbsn00lp latex-cjk-chinese-arphic-gkai00mp 


15.Ubuntu中添加源

$ sudo apt-get install python-software-properties 
$ sudo add-apt-repository ppa:keithw/mosh
$ sudo apt-get update
$ sudo apt-get install mosh

16.vim 将tab替换为空格
在/etc/vim/vimrc中添加
set ts=4
set expandtab

17.okular设置背景颜色
红:230;绿:255;蓝:230


18.批量下载一个文件夹
wget -c -r -np -nd -k -L -p

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
posted @ 2012-10-02 18:23 lixiucheng 阅读(460) | 评论 (0)编辑 收藏
  2012年9月24日
\documentclass{article}
\usepackage{zhfontcfg}
%/usr/share/texmf-texlive/tex/xelatex/fontspec/zhfontcfg.sty
\usepackage{indentfirst}
\usepackage[colorlinks,linkcolor=black]{hyperref}
\usepackage{setspace}

\usepackage{geometry}
\geometry{left=1.5cm,right=1.5cm,top=3.5cm,bottom=3.5cm}

\linespread{1.2}
\setlength{\parindent}{2em}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}

\title{\erhao{\hei{中国科学技术大学——操作系统与编译原理调研}}}
\author{\xiaoerhao{\kai{LXC}}}
\begin{document}
\maketitle
\sanhao{
    \song{
     \tableofcontents
    }
}
\sanhao{
    \lucida{I am a girl from America, so if I say hello, you can not follow me.}


    \courier{I am a girl form America, so if I say hello, you can not follow me.}
    

    \song{依然范特西,依然爱你,叶惠美,晴天,我很忙}


    \kai{依然范特西,依然爱你,叶惠美,晴天,我很忙}


    \yahei{依然范特西,依然爱你,叶惠美,晴天,我很忙}

}
\end{document}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% xetex/xelatex 字体设定宏包  
 
\ProvidesPackage{zhfontcfg}  
\usepackage[cm-default]{fontspec} %[cm-default]选项主要用来解决使用数学环境时数学符号不能正常显示的问题  
 
\usepackage{xunicode,xltxtra}  
\defaultfontfeatures{Mapping=tex-text} %如果没有它,会有一些 tex 特殊字符无法正常使用,比如连字符。  
% 中文断行  
\XeTeXlinebreaklocale "zh"  
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt  
%将系统字体名映射为逻辑字体名称,主要是为了维护的方便  
\newcommand\fontnamewenquanyi{WenQuanYi Micro Hei Mono}
\newcommand\fontnamefangsong{FangSong}
\newcommand\fontnameyahei{Microsoft YaHei}  
\newcommand\fontnamehei{SimHei}  
\newcommand\fontnamesong{SimSun}  
\newcommand\fontnamekai{楷体}  
%English Fonts
\newcommand\fontnamemono{DejaVu Sans Mono}  
\newcommand\fontnameroman{Times New Roman}  
\newcommand\fontnamelucida{Lucida Console}
\newcommand\fontnamecourier{Courier New}
\newcommand\fontnamemeiryo{Meiryo UI}
%%设置常用中文字号,方便调用  
\newcommand{\erhao}{\fontsize{22pt}{\baselineskip}\selectfont}  
\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont}  
\newcommand{\sanhao}{\fontsize{16pt}{\baselineskip}\selectfont}  
\newcommand{\xiaosanhao}{\fontsize{15pt}{\baselineskip}\selectfont}  
\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont}  
\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont}  
\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont}  
\newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont}  
\newcommand{\liuhao}{\fontsize{7.5pt}{\baselineskip}\selectfont}  
%设置文档正文字体为宋体  
\setmainfont[BoldFont=\fontnamehei]{\fontnamesong}  
\setsansfont[BoldFont=\fontnamehei]{\fontnamekai}  
\setmonofont{\fontnamemono}  
%文泉驿
\newfontinstance\WENQUANYI{\fontnamewenquanyi}
\newcommand{\wenquanyi}[1]{{\WENQUANYI#1}}
%楷体  
\newfontinstance\KAI {\fontnamekai}  
\newcommand{\kai}[1]{{\KAI#1}}  
%黑体
\newfontinstance\HEI{\fontnamehei}  
\newcommand{\hei}[1]{{\HEI#1}}  
%雅黑  
\newfontinstance\YAHEI{\fontnameyahei}  
\newcommand{\yahei}[1]{{\YAHEI#1}}  
%
%宋体
\newfontinstance\SONG{\fontnamesong}
\newcommand{\song}[1]{{\SONG#1}}
%仿宋
\newfontinstance\FANGSONG {\fontnamefangsong}  
\newcommand{\fangsong}[1]{{\FANGSONG#1}}  
%英文  
\newfontinstance\ROMAN{\fontnameroman}  
\newcommand{\newroman}[1]{\,{\ROMAN#1}\,}
%Lucida Console
\newfontinstance\LUCIDA{\fontnamelucida}  
\newcommand{\lucida}[1]{\,{\LUCIDA#1}\,}
%Courier New
\newfontinstance\COURIER{\fontnamecourier}  
\newcommand{\courier}[1]{\,{\COURIER#1}\,}
%Meiryo UI
\newfontinstance\MEIRYO{\fontnamemeiryo}  
\newcommand{\meiryo}[1]{\,{\MEIRYO#1}\,}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\documentclass{article}
\usepackage[cm-default]{fontspec} %[cm-default]选项主要用来解决使用数学环境时数学符号不能正常显示的问题  
 
\usepackage{xunicode,xltxtra}  
\defaultfontfeatures{Mapping=tex-text} %如果没有它,会有一些 tex 特殊字符无法正常使用,比如连字符。  
% 中文断行  
\XeTeXlinebreaklocale "zh"  
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt  
%将系统字体名映射为逻辑字体名称,主要是为了维护的方便  
\newcommand\fontnamewenquanyi{WenQuanYi Micro Hei Mono}
\newcommand\fontnamefangsong{FangSong}
\newcommand\fontnameyahei{Microsoft YaHei}  
\newcommand\fontnamehei{SimHei}  
\newcommand\fontnamesong{SimSun}  
\newcommand\fontnamekai{楷体}  
%English Fonts
\newcommand\fontnamemono{DejaVu Sans Mono}  
\newcommand\fontnameroman{Times New Roman}  
\newcommand\fontnamelucida{Lucida Console}
\newcommand\fontnamecourier{Courier New}
\newcommand\fontnamemeiryo{Meiryo UI}
%%设置常用中文字号,方便调用  
\newcommand{\erhao}{\fontsize{22pt}{\baselineskip}\selectfont}  
\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont}  
\newcommand{\sanhao}{\fontsize{16pt}{\baselineskip}\selectfont}  
\newcommand{\xiaosanhao}{\fontsize{15pt}{\baselineskip}\selectfont}  
\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont}  
\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont}  
\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont}  
\newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont}  
\newcommand{\liuhao}{\fontsize{7.5pt}{\baselineskip}\selectfont}  
%设置文档正文字体为宋体  
\setmainfont[BoldFont=\fontnamehei]{\fontnamesong}  
\setsansfont[BoldFont=\fontnamehei]{\fontnamekai}  
\setmonofont{\fontnamemono}  
%文泉驿
\newfontinstance\WENQUANYI{\fontnamewenquanyi}
\newcommand{\wenquanyi}[1]{{\WENQUANYI#1}}
%楷体  
\newfontinstance\KAI {\fontnamekai}  
\newcommand{\kai}[1]{{\KAI#1}}  
%黑体
\newfontinstance\HEI{\fontnamehei}  
\newcommand{\hei}[1]{{\HEI#1}}  
%雅黑  
\newfontinstance\YAHEI{\fontnameyahei}  
\newcommand{\yahei}[1]{{\YAHEI#1}}  
%
%宋体
\newfontinstance\SONG{\fontnamesong}
\newcommand{\song}[1]{{\SONG#1}}
%仿宋
\newfontinstance\FANGSONG {\fontnamefangsong}  
\newcommand{\fangsong}[1]{{\FANGSONG#1}}  
%隶书
\newfontfamily\lishu{LiSu}

%英文  
\newfontinstance\ROMAN{\fontnameroman}  
\newcommand{\newroman}[1]{\,{\ROMAN#1}\,}
%Lucida Console
\newfontinstance\LUCIDA{\fontnamelucida}  
\newcommand{\lucida}[1]{\,{\LUCIDA#1}\,}
%Courier New
\newfontinstance\COURIER{\fontnamecourier}  
\newcommand{\courier}[1]{\,{\COURIER#1}\,}
%Meiryo UI
\newfontinstance\MEIRYO{\fontnamemeiryo}  
\newcommand{\meiryo}[1]{\,{\MEIRYO#1}\,}
%Consolas
\newfontfamily\consol{Consolas}
%Minion Pro
\newfontfamily\minion{Minion Pro}

\usepackage{indentfirst}
\usepackage[colorlinks,linkcolor=black]{hyperref}
\usepackage{setspace}

\usepackage{geometry}
\geometry{left=1.5cm,right=1.5cm,top=3.5cm,bottom=3.5cm}

\linespread{1.2}
\setlength{\parindent}{2em}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}

\title{\erhao{\hei{中国科学技术大学——操作系统与编译原理调研}}}
\author{\xiaoerhao{\kai{LXC}}}
\begin{document}
\maketitle
\sanhao{
    \song{
     \tableofcontents
    }
}
\sanhao{
    \lucida{I am a girl from America, so if I say hello, you can not follow me.}


    \courier{I am a girl form America, so if I say hello, you can not follow me.}
    
    \consol{I am a girl form America, so if I say hello, you can not follow me.}

    \minion{I am a girl form America, so if I say hello, you can not follow me.}


    \song{依然范特西,依然爱你,叶惠美,晴天,我很忙}


    \kai{依然范特西,依然爱你,叶惠美,晴天,我很忙}


    \yahei{依然范特西,依然爱你,叶惠美,晴天,我很忙}


    \lishu{依然范特西,依然爱你,叶惠美,晴天,我很忙}


}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%一个论文的模板
%!Tex Program = xelatex
% 请在同目录中添加xemod_1.jpg这一图片
\documentclass[a4paper,11pt]{article}
\usepackage{xeCJK}
\usepackage{latexsym}
\usepackage{amsmath}                 % AMS LaTeX宏包
\usepackage{amssymb}                 % 用来排版漂亮的数学公式
\usepackage{amsbsy}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{mathrsfs}                % 英文花体字体
\usepackage{bm}                      % 数学公式中的黑斜体
\usepackage{relsize}                 % 调整公式字体大小:\mathsmaller, \mathlarger
%\usepackage{ccmap}                   % 使pdfLatex生成的文件支持复制等
\usepackage{graphicx}                % 用于图像
\usepackage{caption}




%%%%%%%%%%%%%%%%%%%%%%%以下是版面控制部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{geometry}\geometry{left=2.75cm,right=2.5cm,top=2.5cm,bottom=2.5cm}
\usepackage{indentfirst}             % 首行缩进
\usepackage[perpage,symbol]{footmisc}% 脚注控制
\usepackage[sf]{titlesec}            % 控制标题
\usepackage{titletoc}                % 控制目录
\titlecontents{section}[0pt]{\addvspace{2pt}\filright}
              {\contentspush{\thecontentslabel\ }}
              {}{\titlerule*[8pt]{.}\contentspage}
                                     % 添加section在目录里的点号
\usepackage{setspace}                % 调节行间距   
\usepackage{booktabs}                % 用于表格中加下划线
\usepackage{fancyhdr}                % 页眉页脚
\usepackage{type1cm}                 % 控制字体大小
\usepackage{indentfirst}             % 首行缩进
\usepackage{makeidx}                 % 建立索引
\usepackage{textcomp}                % 千分号等特殊符号
\usepackage{layouts}                 % 打印当前页面格式
\usepackage{bbding}                  % 一些特殊符号
\usepackage{cite}                    % 支持引用
\setlength{\skip\footins}{0.5cm}     % 脚注与正文的距离
%%%%%%%%%%%%%%%%%%%%%%%%%%以上是版面控制部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





%%%%%%%%%%%%%%%%%%%%%%%%%以下为中英文字体设置%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{times}
\usepackage{fontspec,xunicode,xltxtra} % XeLaTeX相关字体字库
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
%\newfontfamily\youyuan{YouYuan}
%\newfontfamily\hwcaiyun{STCaiyun}
%\newfontfamily\hwhupo{STHupo}
%\newfontfamily\yaoti{FZYaoTi}
%\newfontfamily\kaiti{KaiTi_GB2312}

\newfontfamily\xsong{NSimSun}
%\newfontfamily\hwsong{STSong}
\newfontfamily\yahei{Microsoft YaHei}
%\newfontfamily\fangsong{FangSong_GB2312}
\newfontfamily\song{SimSun}
%\newfontfamily\hwfangsong{STFangsong}
%\newfontfamily\weiti{STXinwei}
\newfontfamily\hei{SimHei}
%\newfontfamily\hwxingkai{STXingkai}
%\newfontfamily\hwlishu{STLiti}
%\newfontfamily\zhongsong{STZhongsong}
%\newfontfamily\shuti{FZShuTi}
%\newfontfamily\hwhei{STXihei}
%\newfontfamily\lishu{LiSu}
%\newfontfamily\hwkai{STKaiti}
\newfontfamily\tnroman{Times New Roman}
\newfontfamily\consol{Consolas}
\newfontfamily\li{LiSu}
\newcommand{\sanhao}{\fontsize{16pt}{24pt}\selectfont}      % 三号, 1.5倍行距
\newcommand{\sihao}{\fontsize{14pt}{21pt}\selectfont}       % 四号, 1.5倍行距
\newcommand{\xiaosi}{\fontsize{12pt}{18pt}\selectfont}      % 小四, 1.5倍行距
\newcommand{\wuhao}{\fontsize{10.5pt}{10.5pt}\selectfont}   % 五号, 单倍行距
\setCJKmainfont{SimSun}   % 设置默认中文字体
\setCJKmonofont{SimSun}   % 设置等宽字体
\setmainfont{Times New Roman} %设置默认英文字体。
%%%%%%%%%%%%%%%%%%%%%%%%%以上为中英文字体设置%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下是一些命令或环境的重定义或自定义%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{theorem}{定理}
\newtheorem{definition}{定义}
\newtheorem{property}{问题}
\newtheorem{proposition}{猜测}
\newtheorem{lemma}{引理}
\newtheorem{corollary}{推论}
\renewcommand{\proofname}{证明}
\renewcommand{\contentsname}{\center\hei{\sanhao{目录}}}
\renewcommand{\refname}{\textbf{\xiaosi{\song{参考文献}}}}      % 将References改为参考文献

\newenvironment{chabstract}{{\hei{\xiaosi{摘要:}}}}            %定义中文摘要

\newenvironment{enabstract}{{\bfseries{\xiaosi\tnroman{Abstract:}}}}         %定义英文摘要

\newenvironment{chkeyword}{{\hei{\xiaosi{关键词:}}}}           %定义中文关键词

\newenvironment{enkeyword}{{\bfseries{\xiaosi\tnroman{Key words:}}}}         %定义英文关键词

\newcommand{\ud}{\mathrm{d}}                                    %用\ud 作为微分算子“d”

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以上是一些命令或环境的重定义或自定义%%%%%%%%%%%%%%%%%%%%%%%%










%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下进入正文%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\title{\hei{\sanhao{六种典型的数列空间和函数空间}}}
\author{\li{\xiaosi{孙悟空}}}
\date{}             %本文中手动添加时间
\begin{document}

\begin{titlepage}   %封面
\mbox{}
\vspace*{20pt}

%\centerline{\LARGE 综合××××}

\begin{figure}[!htb]
  \centering
  \includegraphics[height=85pt]{xemod_1.jpg}
\end{figure}

\vspace*{40pt}

\centerline{\fontsize{50pt}{50pt}{本\quad \quad 科\quad \quad 毕\quad \quad 业\quad \quad 论\quad \quad 文}}

\vspace*{180pt}

\begin{spacing}{1.8}    %行间距增为1.8倍
\begin{center}
\begin{tabular}{rc}
\sanhao 论文题目:& \sanhao 六种典型的数列空间和函数空间\\ \cmidrule(r){2-2} %第二格加下划线
\sanhao 学生姓名:& \sanhao 悟 \qquad 空\\ \cmidrule(r){2-2}
\sanhao 学\ \ \ \quad 号:& \sanhao 200908012345\\ \cmidrule(r){2-2}
\sanhao 专\ \ \ \quad 业: & \sanhao 数~学~与~信~息~科~学 \\ \cmidrule(r){2-2}
\sanhao 指导老师: & \sanhao 孙 \quad 悟 \quad 饭\\ \cmidrule(r){2-2}
\sanhao 学\ \ \ \quad 院: & \sanhao 数~学~科~学~学~院\\ \cmidrule(r){2-2}
\end{tabular}
\end{center}
\end{spacing}

\vfill

%\centerline{\normalsize ××大学}

\centerline{\sanhao 2012年2月18日}

\end{titlepage}
\thispagestyle{empty}                % 首页无页眉页脚
\newpage
\begin{spacing}{2}
\tableofcontents                    % 插入目录
\end{spacing}
\thispagestyle{empty}               % 首页无页眉页脚
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下是中文摘要、关键词%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\clearpage                          %双面打印(openright) 用\cleardoublepage,刷新页面信息,为了添加目录章节后页码不乱
\pagenumbering{arabic}              %自此处页码开始计数       
\addcontentsline{toc}{section}{\textbf{\xiaosi{摘要}}} %创建虚拟章节,便于将摘要部分添加到目录
\maketitle
\begin{chabstract}
本文讨论了本科层次的泛函分析教材中函数空间和数列空间的实例,$\cdots$.\\
\end{chabstract}

\begin{chkeyword}
{\hei\xiaosi{数列空间;函数空间;收敛性; 同构;\tnroman{Fourier}~变换.}}\\
\end{chkeyword}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以上是中文摘要、关键词%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



中图分类号:O177\\



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下是英文题目、姓名、摘要、关键词%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}{\bfseries{\sanhao\tnroman{Some properties and links between six typical sequence spaces and function spaces}}} \\
\end{center}

\begin{center}{\sihao\tnroman{Sun Wu-kong}}\\
\end{center}

\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$\\}}
\end{enabstract}

\begin{enkeyword}
\ {\xiaosi{sequence spaces;\ \ function spaces;\ \ convergence;\ \ isomorphism;\ \ Fourier transform.}}\\
\end{enkeyword}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以上是英文题目、姓名、摘要、关键词%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage

\li{这是隶书}\\
\consol{What a fuck you are dong?}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下为论文引言部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{\textbf{\xiaosi{引言}}}

{\xiaosi{\song{在一般的本科生泛函分析教材中, $\cdots$ 如~$L^p(\mathbf{E})$~和~$l^p$~}}}\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以上为论文引言部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

{\xiaosi{\song{

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%以下为论文第二部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{\textbf{\xiaosi 数列空间和函数空间的定义}}

以下给出六种典型的数列空间和函数空间的定义,文字叙述和符号表示依照文献\cite{1}.\\


\begin{definition}[空间~$l^p$   $(p\geq 1)$]               %%%%%%%%%%%%%%定义 1%%%%%%%%%%%
一切满足
~$(\sum\limits^{\infty}_{i=1}|\xi_i|^p)^{1/p}<+\infty$~    %注意命令 \limits
的数列~$x=(\xi_1,\xi_2,\cdots)$~的全体记为~$l^p$.\ 容易验证
$${\parallel x\parallel}_{p}=(\sum^{\infty}_{i=1}|\xi_i|^p)^{1/p}<+\infty$$ 是~$l^p$~上的范数.
\end{definition}
$\cdots$
%%%%%%%%%%%%%%%%%%%%%%%%以上为论文正文第二部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%%%%%以下为论文正文第三部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{\textbf{\song{\xiaosi 六类空间各自的性质}}}

{\subsection{\textbf{\song{\xiaosi{$l^p$和$L^p(\mathbf{E})$}}}}}
$l^p$~和~$L^p(\mathbf{E})$~都可分.
$\cdots$
%%%%%%%%%%%%%%%%%%%%%%%%%%%以上为论文正文第三部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




%%%%%%%%%%%%%%%%%%%%%%%%%%%以下为论文正文第四部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\section{\textbf{\song{\xiaosi 六种空间之间的一些联系}}}}

{\subsection{\textbf{\song\xiaosi{函数空间与函数空间、数列空间与数列空间之间的联系}}}}


$\cdots$
{\subsection{\textbf{\song\xiaosi{函数空间与数列空间的联系}}}}

\begin{lemma}[~Riesz-Fiesher~定理]                %%%%%%%%%%%%%%%%%%%%%% 引理 1 %%%%%%%%%%%%%%%%%%%%%%%%
设~$\{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$.\\
\end{lemma}


文献\cite{4}给出了~$1\leq p\leq 2$~时的~$L^p(\mathbf{E})$~上的~Fourier~变换的构造过程,并指出当
~$p>2$~时在广义函数的意义下~$L^p(\mathbf{E})$~仍可导入~Fourier~变换.\ 问题在于~$p\neq 2$~时~Fourier
~变换能否构成~$L^p(\mathbf{E})$~与~$l^p$~之间的保范同构.


\begin{property}\label{pro2}                  %%%%%%%%%%%%%%%%% 问题 2 %%%%%%%%%%%%%%%%%%%%%%%%
完备距离空间~$S(\mathbf{E})$~与~$s$,Banach~空间~$M(\mathbf{E})$~与~$m$~之间是否有同构关系?更进一步,~Fourier~变换及其反演公式
能否推广到完备距离空间~$S(\mathbf{E})$~与~$s$,Banach~空间~$M(\mathbf{E})$~ 与~$m$
\end{property}
%%%%%%%%%%%%%%%%%%%%%%%%%以上是论文正文的第四部分%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
}}}


%%%%%%%%%%%%%%%%%%%%%%%%%以下是参考文献%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\clearpage %双面打印(openright) 用\cleardoublepage
\addcontentsline{toc}{section}{\textbf{\xiaosi{参考文献}}}
\begin{thebibliography}{99}
{\song{\wuhao
\bibitem{1}那汤松.\ 实变函数论(第5版).\ 徐瑞云 译.\ 北京:高等教育出版社,2010.
\bibitem{2}郭大钧等.\ 实变函数与泛函分析(第二版)$\cdot$ 下册.\ 山东:山东大学出版社,2005.
\bibitem{3}夏道行等.\ 实变函数论与泛函分析(下册$\cdot$ 第二版修订本).\ 北京:高等教育出版社,2010.
\bibitem{4}A.H.柯尔莫戈洛夫,C.B.佛明.\ 函数论与泛函分析初步(第7 版).\ 北京:高等教育出版社,2006.
}
}
\end{thebibliography}

\end{document}
posted @ 2012-09-24 22:06 lixiucheng 阅读(10935) | 评论 (0)编辑 收藏
  2012年9月22日
参考链接:http://www.codecho.com/install-matplotlib-on-ubuntu-12-04/

相关资料:http://www.scipy.org/Cookbook/Matplotlib

                      http://en.wikipedia.org/wiki/Matplotlib
                      http://en.wikipedia.org/wiki/Numpy
                      http://en.wikipedia.org/wiki/Scipy
 
posted @ 2012-09-22 13:46 lixiucheng 阅读(989) | 评论 (0)编辑 收藏
  2012年9月14日
     摘要: 9x9的格子中可以划分为9个3x3的小宫,对每一个格子可以尝试放置1~9个数,在放置前要判断是否冲突(conflict()),如果不冲突,就继续放置下一个格子,如果按照当前的放法无法得到正确的解,那么在回溯到当前位置后,要把当前位置重新置为0以便进行下一轮的搜索,因为只有当前值为0才能放置新值。Code highlighting produced by Actipro CodeHighlighte...  阅读全文
posted @ 2012-09-14 10:48 lixiucheng 阅读(577) | 评论 (0)编辑 收藏
  2012年9月12日
     摘要:    一开始将4个数存在数组中,每次从中取出两个数进行 + - * / 运算,并用运算后的结果替换原来的两个数,当数组中只有一个元素时判断这个数是不是24,如果是则输出结果。每次递归搜索后,注意将数组中取出的两个数恢复原位。    代码中, 每次取出res[i]和res[j]后将两数运算结果存入res[i]中,将res[j] = res[n-1]这样递...  阅读全文
posted @ 2012-09-12 16:13 lixiucheng 阅读(1332) | 评论 (0)编辑 收藏
  2012年8月29日
第一步。
在/usr/share/fonts/创建文件夹
$sudo mkdir /usr/share/fonts/windowsfonts/
并将windows下Windows\Fonts文件夹下的字体全部拷贝过来(大约340MB)
进入文件夹/usr/share/fonts/windowsfonts/下执行命令:
$sudo mkfontscale;   sudo mkfontdir;    sudo fc-cache;
中间可能会出现一些错误提示不过没关系,现在应该可以使用windows下的字体了
$fc-list :lang=zh-cn
可以查看系统可用的中文字体

第二步。
创建文件zhfontcfg.sty内容如下:


% xetex/xelatex 字体设定宏包  
 
\ProvidesPackage{zhfontcfg}  
\usepackage[cm-default]{fontspec} %[cm-default]选项主要用来解决使用数学环境时数学符号不能正常显示的问题  
 
\usepackage{xunicode,xltxtra}  
\defaultfontfeatures{Mapping=tex-text} %如果没有它,会有一些 tex 特殊字符无法正常使用,比如连字符。  
% 中文断行  
\XeTeXlinebreaklocale "zh"  
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt  
%将系统字体名映射为逻辑字体名称,主要是为了维护的方便  
\newcommand\fontnamewenquanyi{WenQuanYi Micro Hei Mono}
\newcommand\fontnamefangsong{FangSong}
\newcommand\fontnameyahei{Microsoft YaHei}  
\newcommand\fontnamehei{SimHei}  
\newcommand\fontnamesong{SimSun}  
\newcommand\fontnamekai{楷体}  
%English Fonts
\newcommand\fontnamemono{DejaVu Sans Mono}  
\newcommand\fontnameroman{Times New Roman}  
\newcommand\fontnamelucida{Lucida Console}
\newcommand\fontnamecourier{Courier New}
%%设置常用中文字号,方便调用  
\newcommand{\erhao}{\fontsize{22pt}{\baselineskip}\selectfont}  
\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont}  
\newcommand{\sanhao}{\fontsize{16pt}{\baselineskip}\selectfont}  
\newcommand{\xiaosanhao}{\fontsize{15pt}{\baselineskip}\selectfont}  
\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont}  
\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont}  
\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont}  
\newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont}  
\newcommand{\liuhao}{\fontsize{7.5pt}{\baselineskip}\selectfont}  
%设置文档正文字体为宋体  
\setmainfont[BoldFont=\fontnamehei]{\fontnamesong}  
\setsansfont[BoldFont=\fontnamehei]{\fontnamekai}  
\setmonofont{\fontnamemono}  
%文泉驿
\newfontinstance\WENQUANYI{\fontnamewenquanyi}
\newcommand{\wenquanyi}[1]{{\WENQUANYI#1}}
%楷体  
\newfontinstance\KAI {\fontnamekai}  
\newcommand{\kai}[1]{{\KAI#1}}  
%黑体
\newfontinstance\HEI{\fontnamehei}  
\newcommand{\hei}[1]{{\HEI#1}}  
%雅黑  
\newfontinstance\YAHEI{\fontnameyahei}  
\newcommand{\yahei}[1]{{\YAHEI#1}}  
%
%宋体
\newfontinstance\SONG{\fontnamesong}
\newcommand{\song}[1]{{\SONG#1}}
%仿宋
\newfontinstance\FANGSONG {\fontnamefangsong}  
\newcommand{\fangsong}[1]{{\FANGSONG#1}}  
%英文  
\newfontinstance\ROMAN{\fontnameroman}  
\newcommand{\newroman}[1]{\,{\ROMAN#1}\,}
%Lucida Console
\newfontinstance\LUCIDA{\fontnamelucida}  
\newcommand{\lucida}[1]{\,{\LUCIDA#1}\,}
%Courier New
\newfontinstance\COURIER{\fontnamecourier}  
\newcommand{\courier}[1]{\,{\COURIER#1}\,}


保存文件,置于/usr/share/texmf-texlive/tex/xelatex/fontspec/下,执行命令:
$sudo texhash
此时即可使用了。

测试,创建文件main.tex:

\documentclass{article}  
 
\usepackage{zhfontcfg}  
\usepackage[colorlinks,linkcolor=black]{hyperref}  

\title{latex多字体简易示例}  
\author{boat}  

\begin{document}  
\maketitle  
\section{楷体}  
\kai{楷体}  
\section{黑体}  
\hei{黑体}  
\section{正文}
这里是正文,默认的字体是宋体,不知道显示出来的效果是什么样子。半岛铁盒里面隐藏着什么样的秘密——不能说的秘密,好神秘诶,依然范特西,中文断行。回车还是空格?太棒了,以后可以使用中文了!!
\end{document}


$xelatex main.tex
编译即可

参考:http://forum.ubuntu.org.cn/viewtopic.php?t=247476
posted @ 2012-08-29 16:04 lixiucheng 阅读(1456) | 评论 (0)编辑 收藏
仅列出标题  下一页