Author Archives: shicheng

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Posted in Uncategorized | 1 Comment

emacs, vim 功能设置; bibtex 参数设置;latex 字体大小

1, emacs 功能设置 方法:添加以下代码到.emacs文件中, .emacs文件地址:(Windows Vista and Win7 是 C:\Users\Username\AppData\Roaming\.emacs);打开图片显示功能 (auto-image-file-mode t);; 直接跳到某一行(define-key global-map "\C-x\C-g" ‘goto-line);;color-theme 设置下载color-theme压缩包(现在版本为6.6.0)。地址:http://download.gna.org/color-theme/ 或者 http://ftp.twaren.net/Unix/NonGNU/color-theme/解压缩color-theme-6.6.0.zip (or tar.gz…). 解压到 Home 目录下(Windows Vista and Win7 是 C:\Users\Username\AppData\Roaming\.emacs.d\,然后在 .emacs 中加入(add-to-list ‘load-path "~/.emacs.d/color-theme")(require ‘color-theme)(load-file "~/.emacs.d/color-theme/color-theme.el")(color-theme-initialize)(color-theme-dark-laptop);;字体设置;; set font 字体和字体大小(set-default-font "Consolas-14")(set-fontset-font "fontset-default" … Continue reading

Posted in Software | 2 Comments

LaTeX: Sections, Divisions, and Page Numbering

Sectioning In the body of your document, sectioning commands provide the means to structure your text into units. These are all optional, but they can greatly assist in structuring your document. Sections and Their Depths Depth in document Section Command … Continue reading

Posted in Uncategorized | Leave a comment

LaTeX 文档

使用latex编写文档 1) latex file 2) pdf file \documentclass[12pt]{article}\usepackage[colorlinks,linkcolor=blue,anchorcolor=red,citecolor=green,CJKbookmarks=true]{hyperref}\usepackage{CJK} \begin{document}\begin{CJK}{GBK}{song} \title{LaTeX 文档}\author{shi~Cheng\\shi.cheng@live.com}\date{\today}\maketitle\tableofcontents \begin{abstract}  LateX文档中 公式, 中文, 摄氏度, 角度, 定理, 定义, 目录, 链接, 书签, 分数, 开方, 摘要, references\end{abstract} \section{公式}\begin{enumerate}    \item 无序号公式 使用$\backslash$begin\{displaymath\}与$\backslash$end\{displaymath\}    \item 有序号公式 使用$\backslash$begin\{equation\} 与 $\backslash$end\{equation\}.    \item 在段落中直接使用公式, 公式需写在\$ \$或者$\backslash$[ 与$\backslash$]之间    … Continue reading

Posted in Latex | Leave a comment

LaTex: Matrix and determinant of matrix

在LaTeX中插入矩阵和行列式1. tex file2. pdf file% usepackage\usepackage{amssymb}\usepackage{amsmath}\usepackage{amsthm} % code The \emph{characteristic polynomial} $\chi(\lambda)$ of the $3 \times 3$ ~matrix\[ \left(\begin{array}{ccc}    a & b & c \\    d & e & f \\    g & h & i\end{array} \right)\] is given by … Continue reading

Posted in Uncategorized | Leave a comment

Boost Install

windows系统中, 编译boost_1_40_0, jam为 boost-jam-3.1.17. C++编译器为 visual studio 2005 1. download the source of Boost and Boost Jam from http://www.boost.org/. 2. release the Boost source files to folder, e.g. d:\shi\boost. release Boost Jam to the subfolder of the Boost sourced:\shi\boost\jam. 3. … Continue reading

Posted in Programming | Leave a comment

LaTeX: code insert

在LaTeX文档中, 插入代码, 使用 listings 宏包 用法: \usepackage{listings} \lstset{breaklines}  %LaTeX自动将长的代码行换行排版 1. 直接把代码写入TEX文本中 \begin{lstlisting}[language=***] source \end{lstlsting} 2. 调用并嵌入源文件 \lstinputlisting{filename.*} a)  file default extension: tex. 如果仅用 ilename 不加后缀名 .*, CTex会自动寻找 filename.tex文件 b) filename.*,  .* 可以为任意纯文本文件 c)  使用 \usepackage{CJK}后, \begin{lstlisting}和 end{lstlsting}间可以使用中文, 但 \lstinputlisting{filename.*}, finaname.* … Continue reading

Posted in Latex | 1 Comment

Latex: Formula in Table

latex文件中, 在表格中插入公式 文件地址: a) formulaInTable.tex b) formulaInTable.pdf   \documentclass[12pt]{article}\usepackage{amsmath}\begin{document}\title{formula in table}\author{Shi~Cheng\\shi.cheng@live.com}\date{September~10,~2009}\maketitle \begin{abstract}set formula in table\end{abstract} \section{section}\begin{tabular}{|c|c|} \hlineFormula & Explanation \\ \hline      $h_\sigma(a,B)=            \left\{            \begin{array}{rl}                1 & \mbox{if }d(a,B) \leq \sigma  \\                0 & \mbox{if }d(a,B)> \sigma            \end{array}\right.            \label{pan}$          Explain something … Continue reading

Posted in Latex | 1 Comment

excel畫折線圖

說明: 1) 這是一篇 latex 練手之作, 寫成之后發現latex生成的pdf文件無法被復制到 word中, 源代碼也無法復制到word中, 復制 后變成亂碼. ultraEdit可以自動改變編碼, 只能源代碼復制到 ultraEdit, 但將ultraEdit轉碼后的文件保存為tex, latex卻也不能編輯. 復雜的編碼問題… 2) .jpg 不能生成 .dvi文件, 使用’ latex filename ‘命令, 會提示’ !Latex Error: File ‘figureName.bb’ not found.’ 應使用’pdflatex filename’ 將tex文件轉換為pdf文件查看 3) 排版問題 a) 圖片粘貼在latex文件中,緊隨 \includegraphics{fig.jpg} b) … Continue reading

Posted in Latex | 4 Comments

Academic writing.3: Paraphrase

Original Passage Finally, how can astronauts ‘let off stream’ when interpersonal conflicts develop? Even best friends can irritate each other when forced to spend weeks together in isolation. Space stations are small, cramped, busy workspaces and there is little privacy. … Continue reading

Posted in Academic Writing | Leave a comment