error_reporting(E_ERROR | E_WARNING | E_PARSE);
phpversion() >= '5.1.0' && date_default_timezone_set('UTC');
header("Content-Type: text/html; charset=utf-8");
$version = "v2010.04.11";
$time_start = microtime_float();
function memory_usage() {
$memory = ( ! function_exists('memory_get_usage')) ? '0' : round(memory_get_usage()/1024/1024, 2).'MB';
return $memory;
}
// 计时
function microtime_float() {
$mtime = microtime();
$mtime = explode(' ', $mtime);
return $mtime[1] + $mtime[0];
}
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
\documentclass[10pt,a4paper,openany]{book}
\usepackage{fontspec}
\usepackage{indentfirst} % 段首空两格
\setmainfont[BoldFont=Adobe Heiti Std]{Adobe Song Std} % 使用系统默认字体(默认是宋体,加粗为黑体)
\setsansfont[BoldFont=Adobe Heiti Std]{Adobe Kaiti Std}
\setmonofont{Arial}
\newfontface\KaiTi{Adobe Kaiti Std} %楷体
\newfontface\SongTi{Adobe Song Std} %宋体
\newfontface\FangSong{Adobe Fangsong Std} %仿体
\newfontface\HeiTi{Adobe Heiti Std} %黑体
\newfontface\STCaiYun{STCaiyun} %华文彩云
\newfontface\STHuPo{STHupo} %华文琥珀
\newfontface\STSong{STSong} %华文宋体
\newfontface\STFangSong{STFangsong} %华文仿宋
\newfontface\STZhongSong{STZhongsong} %华文中宋
\newfontface\STKaiTi{STKaiti} %华文楷体
\newfontface\STXinWei{STXinwei} %华文新魏
\newfontface\STXingKai{STXingkai} %华文行楷
\newfontface\STLiTi{STLiti} %华文隶书
\newfontface\STXiHei{STXihei} %华文细黑
\newfontface\FZShuTi{FZShuTi} %方正舒体
\newfontface\FZYaoTi{FZYaoTi} %方正姚体
\newfontface\YouYuan{YouYuan} %幼圆
\newfontface\GBKaiTi{KaiTi_GB2312} %楷体_GB2312
\newfontface\GBFangSong{FangSong_GB2312} %仿宋_GB2312
\newfontface\GBSongTi{SimSun} %宋体
\newfontface\GBXinSong{NSimSun} %新宋体
\newfontface\GBLiSu{LiSu} %隶书
\newfontface\GBHeiTi{SimHei} %黑体
\newfontface\YaHei{Microsoft YaHei} %微软雅黑
\newfontface\UKaiCN{AR PL UKai CN} %AR PL UKai CN
\newfontface\UKaiHK{AR PL UKai HK} %AR PL UKai HK
\newfontface\UKaiTW{AR PL UKai TW} %AR PL UKai TW
\newfontface\UKaiWMBE{AR PL UKai TW MBE} %AR PL UKai TW MBE
\newfontface\Arial{Arial Unicode MS} %Arial Unicode MS
\usepackage{geometry} %版面合适设置
\geometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm} %上下各2.5cm
\usepackage[usenames,dvipsnames]{color} %颜色
\usepackage[pagestyles]{titlesec} %使标题居中
\titleformat{\chapter}{\centering\Huge\bfseries}{第\,\thechapter\,章}{1em}{} %使章标题居中 ,并且显示中文常用样式
%\usepackage{lastpage} %全文页码数
\usepackage{fancyhdr} %页眉页脚
\pagestyle{fancy}
\lhead{\small 第\thechapter 章}
\chead{\bfseries \LaTeXe{} Memo}
\rhead{\small 第\thesection 节}
\lfoot{Site: http://chunchu.org/}
\cfoot{\thepage}
\rfoot{Email: Admin@chunchu.net}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\XeTeXlinebreaklocale "zh" % 针对中文进行断行
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt % 给予TeX断行一定自由度
\linespread{1.2} % 1.2倍行距
%\setlength{\voffset}{-15.4mm}
%\setlength{\hoffset}{-2.4mm}
\setlength{\parskip}{0pt}
\setcounter{tocdepth}{5} %设置目录显示的层数
\setcounter{secnumdepth}{5} %设置章节显示的层数
%\addtolength{\hoffset}{-2.5cm}
%\addtolength{\textwidth}{2cm}
\makeindex %激活索引命令
\title{\LaTeXe{}学习笔记}
\author{Dai ChunChu \\
(代春初)\\[5pt]
西南交通大学\\[5pt]
(生命科学与工程学院)
}
\date{\today} % Activate to display a given date or no date (if empty),
% otherwise the current date is printed
\begin{document}
\maketitle
\renewcommand\contentsname{目录}
\renewcommand\listfigurename{插图目录}
\renewcommand\listtablename{表格目录}
\tableofcontents %生成章节目录
\listfigurename %生成插图目录
\listtablename %生成表格目录
\part {基础篇} %第一部分
\chapter {文字排版} %第一章
\section{没落的贵族—摩托罗拉} %第一节
美国过去未曾有过贵族,今后也不会有。无论是巨富盖茨或者是年轻美貌、聪明而富有的女继承人伊万卡·特朗普都不是任何意义上的贵族。实际上贵族这个词在整个西方本身就是一个没落的词汇,虽然在东方一些人或许沉迷在贵族梦中。但是,贵族在历史上曾经实实在在地出现过。如果我们认为公司之中也有所谓的贵族,摩托罗拉无疑可以算是一个。
application: chutob
version: 1-2011-04-01
runtime: python
api_version: 1
handlers:
- url: /favicon\.ico
static_files: static/favicon.ico
upload: static/favicon.ico
mime_type: image/x-icon
- url: /robots\.txt
static_files: static/robots.txt
upload: static/robots.txt
- url: /scripts
static_dir: syntaxhighlighter/scripts
- url: /tests
static_dir: syntaxhighlighter/tests
- url: /styles
static_dir: syntaxhighlighter/styles
- url: /
static_files: syntaxhighlighter/index.html
upload: syntaxhighlighter/index.html
- url: /
static_dir: syntaxhighlighter