- 在线时间
- 42 小时
- 最后登录
- 2015-11-24
- 注册时间
- 2013-5-11
- 听众数
- 12
- 收听数
- 3
- 能力
- 0 分
- 体力
- 3334 点
- 威望
- 0 点
- 阅读权限
- 200
- 积分
- 1064
- 相册
- 0
- 日志
- 0
- 记录
- 0
- 帖子
- 124
- 主题
- 8
- 精华
- 0
- 分享
- 0
- 好友
- 22
TA的每日心情 | 开心 2015-11-24 17:35 |
|---|
签到天数: 49 天 [LV.5]常住居民I
 群组: 2014年地区赛数学建模 |
本帖最后由 ∮蘑菇O_o沫 于 2014-7-22 13:15 编辑 & x/ F/ g8 J$ _6 h0 F
. g7 J8 o* \# i" X/ ^( j r$ Z------------------------------------------------------------------------------
. E. D) F w! i* F" h; x8 T; I8 h
8 T4 @: e2 w* N9 i _
/ ?! m$ U$ h1 J% o% o# Z! Q中文TeX使用者一般的选择是在Windows下用CTeX,在UNIX下用teTeX+laTeX-CJK。下面介绍一个简单的LaTeX+CJK论文模板。
8 y! w9 @+ W+ @- n: ^$ z1 Q) S$ s& ? J( [" u
' s( p8 `9 u$ c* K
唯一要说明的是,命令 \CJKcaption{GB} 是实现章节标题的中文化,但是在 FreeBSD下用teTeX编译通不过。感谢aloft的贡献,他修改的GB.cpx真正实现了章节标题的中文化,使得\CJKcaption{GB}在UNIX和Windows下都没有问题。 UNIX用户可以用aloft的GB.cpx替换/usr/local/share/texmf/tex/latex/CJK/GB/GB.cpx文件。6 U/ x' `7 e5 K1 B
' x' I6 c' i+ t* t: n& R% l0 J! H/ l4 [" D3 ~# I
从一个简单的LaTeX+CJK论文模板出发,你会发现用TeX写作是一件非常令人愉悦的事情。欢迎测试和使用,任何方面的改进都是鼓励的。你可以对照本模板生成的pdf文件。& A, N& `9 ?/ R$ }: t
2 G+ A9 D% _; c3 `& k* w5 _$ t3 `7 v1 ]9 q+ o5 ]
* I, L1 ~3 h+ A# U+ C! c& G6 u/ Z* `3 n) e* f
/ l1 w9 m; Z* Q; [+ z" L
\documentclass[a4paper,11pt,twoside,openany]{article} $ X$ T: m# D* f# T7 _
% A4 % 双面% 新章节在偶数页开始
5 A9 N) B O9 u, ?! [5 S
- n) ~+ V2 i- a2 m %%%%%%%%%% 版面控制 %%%%%%%%%%
- d# t! b& r; Y! u1 y: c/ Z
7 I0 U3 p T8 R( l7 b8 D\usepackage{indentfirst} % 首行缩进
, z; E' ^( C7 A/ h; H2 i o& e\usepackage[%paperwidth=18.4cm, paperheight=26cm,body={14.6true cm,22true cm},twosideshift=0 pt,headheight=1.0true cm]{geometry}
+ u& s# g4 m9 |- ]2 J/ A# b6 e\usepackage[perpage,symbol]{footmisc}% 脚注控制
& t1 Q/ \" k6 U8 S. Y4 M1 f\usepackage[sf]{titlesec} % 控制标题* d0 c3 V, _# @% X4 H; B& U
\usepackage{titletoc} % 控制目录
. u9 h& f x* @\usepackage{fancyhdr} % 页眉页脚
' l; D: n5 F5 Q4 Y* _! P n\usepackage{type1cm} % 控制字体大小
5 h. s$ s. H5 w( |\usepackage{indentfirst} % 首行缩进6 K) Q& |! `) ^ o% y0 k
\usepackage{makeidx} % 建立索引
3 ~: ?* ]; K3 S1 ]\usepackage{textcomp} % 千分号等特殊符号
+ y9 A* s/ {9 F6 P+ z2 m1 M. x\usepackage{layouts} % 打印当前页面格式0 \! \5 z. ?7 y
\usepackage{bbding} % 一些特殊符号
9 R+ k' ]: n1 i6 i0 L9 c5 N+ ?7 j\usepackage{cite} % 支持引用- d& _7 r/ q# c' }6 }
\usepackage{color,xcolor} % 支持彩色文本、底色、文本框等5 f& k" n2 X0 I4 F
\usepackage{listings} % 粘贴源代码
6 i) |' @# q' R) M\lstloadlanguages{} % 所要粘贴代码的编程语言
; ?% M0 g3 n( G8 C; p, r; R& j. _\lstset{language=,tabsize=4, keepspaces=true,xleftmargin=2em,xrightmargin=2em, aboveskip=1em,backgroundcolor=\color{lightgray},frame=none,keywordstyle=\color{blue}\bfseries,breakindent=22pt,numbers=left,stepnumber=1,numberstyle=\tiny,basicstyle=\footnotesize,showspaces=false,flexiblecolumns=true,breaklines=true, breakautoindent=true,breakindent=4em,escapeinside={/*@}{@*/}}) L8 ^9 k2 u9 ?' a
; T A0 h- Q4 f; p# k1 K
%%%%%%%%%% 字体支持 %%%%%%%%%%%%
0 q& V+ Q: a1 q) T6 e I* C o& }
. [4 W9 Q; D6 V5 [1 f%\usepackage{ccmap} % 使pdfLatex生成的文件支持复制等
1 ^6 w" r$ @& Y! x$ R\usepackage{CJK,CJKnumb,CJKulem} % 中文支持% x0 g" ^8 {) E$ f
\usepackage{times} % 包括 Times Roman + Helvetica + Courier
0 g" T0 _; N( C# e9 F%\usepackage{palatino} % 包括 Palatino + Helvetica + Courier( H9 k7 {# _; h1 Q3 b
%\usepackage{newcent} % 包括 New Century Schoolbook + Avant Garde + Courier; Y; L+ }! F- V: i- L
%\usepackage{bookman} % 包括 Bookman + Avant Garde + Courier
9 U3 U- \5 m' m4 f/ }7 L
, }$ E- ~0 \+ x$ c/ y: t$ p%%%%%%%%%% 数学符号公式 %%%%%%%%%%
% b8 q {+ u6 x X% l0 N
9 c0 K- H$ L- q. P4 y8 C3 U\usepackage{latexsym}1 I. m/ P. j/ ^' i
\usepackage{amsmath} % AMS LaTeX宏包( j: `/ b2 @! ~$ D2 d* g4 K0 S0 C5 K
\usepackage{amssymb} % 用来排版漂亮的数学公式. Y: Z% h+ S5 ~4 e
\usepackage{amsbsy} l4 h3 h: [& m: q5 ?* c9 V. t
\usepackage{amsthm}
& Y* i& O5 b [, t. x. h- R7 S& ~\usepackage{amsfonts}4 R. b7 i- b& ]( ]
\usepackage{mathrsfs} % 英文花体字体
9 f" l& u3 T* c0 r! n1 ~( D# A\usepackage{bm} % 数学公式中的黑斜体- W: ^1 g& r" p3 {6 f
\usepackage{relsize} % 调整公式字体大小:\mathsmaller, \mathlarger- {9 H5 K3 `( ^7 q& h: H
\usepackage{caption2} % 浮动图形和表格标题样式% W9 z( Z2 [+ N& `
6 Y, |. W& H& @5 k, v9 u! ]6 n
& s J$ L5 z1 v B
%%%%%%%%%% 图形支持宏包 %%%%%%%%%%
% @. }* M1 |9 c" e2 E# Y% f' t+ V' `
\ifx\pdfoutput\undefined % 用latex或pdflatex编译
# Z0 B' V: a$ O2 w/ x \usepackage[dvips]{graphicx} % 将eps格式的图片放在figures目录下
1 ]# ~0 u3 b: l5 x/ A- ?2 Z\else % 在setup/format.tex中用以下命令注明路径:
3 K; M) j, ^. C e) K3 e$ ^ \usepackage[pdftex]{graphicx} % \graphicspath{{figures/}}* p7 u) @ a9 y8 J7 n. Q
& I! m @3 ]0 r+ Q% F; F0 T! P
%\usepackage{subfigure}. b7 x- a) K) b( M6 F
\usepackage{epsfig} % 支持eps图像1 y7 P( O! Y9 o+ g
%\usepackage{picinpar} % 图表和文字混排宏包5 O" M( [1 m' G' s# `% Y# B% x
%\usepackage[verbose]{wrapfig} % 图表和文字混排宏包
" H- h9 n. ^6 T) o& ?4 z8 K%\usepackage{eso-pic} % 向文档的部分页加n副图形, 可实现水印效果
% e, X0 L* u G: E%\usepackage{eepic} % 扩展的绘图支持0 S% @4 D. ~% p. z/ z! D9 T
%\usepackage{curves} % 绘制复杂曲线
0 w3 w; I I7 G. q%\usepackage{texdraw} % 增强的绘图工具* s; F' y$ G, [6 @, O7 ]" F
%\usepackage{treedoc} % 树形图绘制6 L ?/ p3 P/ b! J# p. E; f
%\usepackage{pictex} % 可以画任意的图形/ J6 E, V* J3 J" i; c8 B/ |
%\usepackage{hyperref}
% `" w$ G% g8 p: H2 O) n# L0 R/ g2 g( W& [1 g* V \, o" `+ Y
%%%%%%%%%% 一些距离设置 %%%%%%%%%%%
, y+ J* M" d/ {! V4 p- C+ V+ @ ]% ?$ j1 O2 A$ R" W( d
\setlength{\floatsep}{10pt plus 3pt minus 2pt} % 图形之间或图形与正文之间的距离
' W8 H1 {! B* o0 O& o9 @* K( [\setlength{\abovecaptionskip}{2pt plus 1pt minus 1pt}% 图形中的图与标题之间的距离% I a- y6 a4 H. p4 A2 \2 I
\setlength{\belowcaptionskip}{3pt plus 1pt minus 2pt}% 表格中的表与标题之间的距
; I( o6 c3 P% e" B6 Y& h2 N, u/ s
2 Y2 f& V( ~# h) t1 Q
%%%%%%%%%% 纸张和页面的大小 %%%%%%%%%%
, d/ G' K, _ T1 s/ }
! G( ^( B! d2 ]5 ^" k%\paperwidth 20 true cm % 纸张宽
! u7 U' F8 s9 M/ ^& Q%\paperheight 30 true cm % 纸张高4 v0 [+ @- M( R" ]: O# d
%\textwidth 10 true cm % 正文宽
( [, Q: Q3 @1 A%\textheight 20 true cm % 正文高
1 A3 T% ?; M1 {5 C%\headheight 14pt % 页眉高
% p3 z" i# | H Q%\headsep 16pt % 页眉距离* t* ?& h7 u. c: H
%\footskip 27pt % 页脚距离
# j1 f6 v0 m; J: [6 c' J%\marginparsep 10pt % 边注区距离$ o* X# v( G6 a* T3 u
%\marginparwidth 100pt % 边注区宽) H3 I( S# G, M1 ]& ]. l/ v4 ?: \! h
\makeindex % 生成索引
2 K% Y5 y/ ^4 B\pagestyle{fancy} % 页眉页脚风格
+ `! u7 n o+ b) ?\fancyhf{} % 清空当前页眉页脚的默认设置
% I4 l" {; f# \+ [" e" d- Y k! w; R$ n( ^2 Z2 Z) `% P/ F
$ B* x: E4 u/ D# K
%%%%%%%%%% 导入中文环境 %%%%%%%%%%
, s6 X2 D' p! S. d3 X) K/ c% U J* h! Q- I7 _( Q' {' m5 K/ ?
\AtBeginDocument{\begin{CJK*}{GBK}{song} % 不计中文的空格7 j! o8 m4 [- T; R% H( Q* h6 h
\CJKindent % 首行缩进两个汉字( a4 P! {, ]7 }$ X# r; W
\sloppy\CJKspace % 中英文混排的断行
. x; ~2 a. H" J4 T\CJKtilde % 重新定义~,用~隔开中英文
0 k/ b/ H% t U3 l1 e\CJKcaption{GB} % 章节标题的中文化
5 p4 C5 n/ s- _7 W8 Q}4 `) B0 B; h3 R- O
\AtEndDocument{\end{CJK*}}! T/ V# X& J6 }; F7 l, J5 Y% _
# P5 |$ M& M; R9 X%%%%%%%%%% 正文 %%%%%%%%%%
. Z+ U, `1 a2 ~2 o J
) P% h/ {$ n* ] g9 G" I5 z\begin{document}
' Q1 ?. @9 I! R& U! J9 H1 Z- o9 P$ \ ~; i, y8 i% l' @ J' k3 R
%%%%%%%%%% 一些新定义 %%%%%%%%%%5 i3 @. l6 x, A; s) |
, Q# d" J* X4 y: y1 \\newcommand{\song}{\CJKfamily{song}} % 宋体' c' x, w1 k- z& x
\newcommand{\hei}{\CJKfamily{hei}} % 黑体. f; ^. a5 h1 e+ c
\newcommand{\fs}{\CJKfamily{fs}} % 仿宋& E. g; s2 e: Q5 {: }, A$ x! t
\newcommand{\kai}{\CJKfamily{kai}} % 楷体& a& V# k3 }3 U6 c2 q
3 I# b( Z4 l5 E3 X, O1 N2 k%%%%%%%%%% 定理类环境的定义 %%%%%%%%%%2 q }: Q$ v; d7 k& f3 [/ m' @
. [( ]& _+ I8 }+ ?6 }1 S%% 必须在导入中文环境之后
3 C2 l* \( P: m0 d3 r4 f\newtheorem{example}{例} % 整体编号
+ c b N: {1 R\newtheorem{algorithm}{算法}
" _9 n" R( }9 q1 J7 |\newtheorem{theorem}{定理}[section] % 按 section 编号
* }; {, s2 W5 _4 T\newtheorem{definition}{定义}; i+ _( N5 q) K) |! f
\newtheorem{axiom}{公理}
0 M. Q, e( _9 A- [4 @8 B\newtheorem{property}{性质}- b3 t- l3 E' f5 U9 P( X# B
\newtheorem{proposition}{命题}
# ?4 B( Y* r0 E5 }+ `7 [: ]\newtheorem{lemma}{引理}
. [0 M! L: C& n\newtheorem{corollary}{推论}
9 W9 ?% e) S7 S; g\newtheorem{remark}{注解}- C: D. T! y. |. h# r
\newtheorem{condition}{条件}' E! Z9 Q+ l1 [
\newtheorem{conclusion}{结论}
7 h1 A- [" D* s% V$ a9 J9 G) U\newtheorem{assumption}{假设}
2 ^0 q+ f- M: ^: a5 p! Z: q; `- T1 B
%%%%%%%%%% 一些重定义 %%%%%%%%%%
5 @& r' S5 [" L) w
D5 m2 ^ V v$ _1 B; n%% 必须在导入中文环境之后
5 C# D* [5 p# j# {\renewcommand{\contentsname}{目录} % 将Contents改为目录
O- o5 b2 c4 V# J+ s, W5 }4 o. |\renewcommand{\abstractname}{摘\ \ 要} % 将Abstract改为摘要2 Q a" b+ s6 Q4 ^6 n1 }
\renewcommand{\refname}{参考文献} % 将References改为参考文献
! ~# }; h4 C9 m$ }1 ?& i\renewcommand{\indexname}{索引}. C2 q7 t) y) Q' K
\renewcommand{\figurename}{图}+ ^7 k1 v" x3 T+ L
\renewcommand{\tablename}{表}0 {4 Z* o! ~1 F0 `: j( m& x
\renewcommand{\appendixname}{附录}
; `% C0 T2 Z( x$ C\renewcommand{\proofname}{\hei 证明}
. N( J4 u8 l. y% p4 a1 S: Y\renewcommand{\algorithm}{\hei 算法}% F+ P" d9 R; F' r; N& B
: U' t! X/ ]! I2 r1 s5 G3 ?8 W
%%%%%%%%%% 重定义字号命令 %%%%%%%%%%
4 {6 Q+ L) J, Z
9 z9 t' c3 T& }1 s" O* q r\newcommand{\yihao}{\fontsize{26pt}{36pt}\selectfont} % 一号, 1.4倍行距
: [1 v! W$ W! b( }\newcommand{\erhao}{\fontsize{22pt}{28pt}\selectfont} % 二号, 1.25倍行距- a9 y& @4 G( U# N3 h! n9 E7 g
\newcommand{\xiaoer}{\fontsize{18pt}{18pt}\selectfont} % 小二, 单倍行距) [* }* }! z x# }. x- E3 I8 Q {1 X& @
\newcommand{\sanhao}{\fontsize{16pt}{24pt}\selectfont} % 三号, 1.5倍行距
) I+ G4 G( z6 L\newcommand{\xiaosan}{\fontsize{15pt}{22pt}\selectfont} % 小三, 1.5倍行距! z. i4 I6 U/ u+ @* O% M- U, w
\newcommand{\sihao}{\fontsize{14pt}{21pt}\selectfont} % 四号, 1.5倍行距 h- K0 n- h6 ~6 t Q( i% z! V
\newcommand{\bansi}{\fontsize{13pt}{19.5pt}\selectfont} % 半四, 1.5倍行距
$ S s p' [6 D" [; n$ z\newcommand{\xiaosi}{\fontsize{12pt}{18pt}\selectfont} % 小四, 1.5倍行距
- r+ D% C' @# _2 Q2 C5 ?& E\newcommand{\dawu}{\fontsize{11pt}{11pt}\selectfont} % 大五, 单倍行距6 B7 h+ y. V- G& `( H
\newcommand{\wuhao}{\fontsize{10.5pt}{10.5pt}\selectfont} % 五号, 单倍行距- W2 n! r; ?( X" Q* E9 e: _
. G% y1 o. @+ C! _. [& E
%%%%%%%%%% 页眉和页脚的设置 %%%%%%%%%%
7 _4 M- V& \0 q q3 D: ?4 I6 N7 d. S1 ]$ r: f8 j6 R+ y
\lhead{一个~\LaTeX+CJK~的简单模板}
. H5 _+ j+ H1 F) K+ P, `\rhead{\TeX~爱好者}
5 `: z& E& F3 ~+ H\lfoot{用~\LaTeX~写科技论文}
8 l- E5 i! _+ E\rfoot{~\thepage~}( z$ ]( F) e0 I4 b' H8 Z& m- P
: k: p! P8 i! t) S5 G5 I+ x+ \; Z
%%%%%%%%%% 论文标题、作者等 %%%%%%%%%%
; y" f5 | q+ b% w1 S+ t4 _/ l5 D8 n2 y) Z0 e) O3 C- P# H
\title{用~\LaTeX~写科技论文 % 论文标题
+ E; p- ?3 m# z9 @ \thanks{这是一个为初学者写的~\LaTeX+CJK~论文模板,未经作者允许可以
: D s# H: `% j# c. a' w 随意下载使用并修改传播,目的是让更多的人迅速上手用~\LaTeX~系统写作。}7 Z j' N8 M. w" B) N# F: o
}
9 [9 O- C4 F0 `. l8 I, P' B( u\author{于江生\\ % 作者* g3 E. H9 ]+ @
北京大学计算机系}. a5 D2 ?$ j! s( p
\date{2008年10月01日} % 日期& b& H* J! Q. t1 v. \/ `
\maketitle % 生成标题2 _1 s V x6 `% |8 [
\tableofcontents % 插入目录# y5 A/ e, q- k- V, k) |
\thispagestyle{empty} % 首页无页眉页脚
9 H9 i5 \0 w! M4 h( U6 j3 ~
& W' Z! e( q1 ]: G& B\begin{abstract}# j8 y4 T; w# h( S* `$ |
\noindent % 不缩进
) @/ D2 }7 B/ y; u# o这是一个简单的~\LaTeX+CJK~的模板,为~\TeX~的初学者提供便利上手的参照。
' R5 @4 g% ^* {; p q, v8 ?该模板在FreeBSD+te\TeX下编译通过,适合在UNIX下工作的朋友。
) W6 F& I4 @2 j从一个简单的模板出发,不断地提升对~\TeX~的认识,培养良好的写作风格。
" h+ h6 _8 O0 p x网上有大量的资料,我推荐~\LaTeX~编辑部:http://zzg34b.w3.c361.com/index.htm,
# T" V$ [) I7 E' ~% X4 b7 R那里能找到国内外许多期刊的模板和一些高校博/硕士论文的模板。祝玩儿得开心!3 l( }: @) v9 G! O6 I: W# l
\end{abstract}2 f- j) G5 Q# y
1 Z, X+ J$ `# j. {' a+ a7 E; Z
: O4 q$ K! D: v M6 J6 l ^: |
\PencilRightUp % 一些可爱的图标,需要bbding宏包的支持0 L6 p$ S: ^# g. l7 w
公元~1974~年,ACM~图灵奖授予了~Standford~大学教授\index{Donald E. Knuth}~Donald E. Knuth~(高德纳),* n0 h/ X% R, Y% X# ^
表彰他在算法和程序语言设计等多方面杰出的成就。他的巨著~The Art of Computer Programming~令人震撼,
9 f9 \+ x5 _9 W2 C感兴趣的读者可以访问他的主页~http://www-cs-faculty.stanford.edu/\~{}knuth/index.html。
; A/ \4 |3 N+ S$ |+ Q) h另外,Knuth~的突出贡献还包括\index{\TeX系统}~\TeX~系统,毫不夸张地评价,
% k! l4 Y, ?; A$ _* C\TeX~给科技论文的排版带来了一场革命。
, ?5 `: R6 ^" ~) S4 p8 r: \%%%%%%%%%% section %%%%%%%%%%3 b2 Q1 `+ R" \6 v6 x: Y
\section{编辑数学公式}
4 U# b8 w" n( y; R$ |\indent % 恢复缩进: f) d: y4 r- L8 S7 E
\TeX~有诸如AMS\TeX、\LaTeX~等宏库。在~FreeBSD~下,缺省的宏库是~te\TeX。
' K- p5 z+ i: CKnuth~用~\$~符号界定数学公式,意味着每个好的公式都是无价之宝。- Y( H* J5 ^+ E$ r; |+ }8 M2 e
有了~\TeX~系统,输入数学公式变得简单愉快。如,0 u, m( \. z6 K& m9 Q
\begin{theorem}[L\'{e}vy\index{L\'{e}vy~定理}]7 Z& J) I! L0 W3 h+ ^
令~$F(x),\varphi(t)$~分别为随机变量~$X$~的分布函数和特征函数。# H, V, k4 b a" V7 J
假定~$F(x)$~在~$a+h$~和~$a-h (h>0)$~处连续,则有0 G, K ]4 U) P5 c& x$ `, }9 M% {
\begin{eqnarray}; Y q6 w! P9 {1 B l- _5 o; Z9 [
\label{Levy theorem} % 方程的标记可以是专有名词
4 x2 S" B0 e2 Z4 sF(a+h)-F(a-h)&=&\lim_{T\rightarrow\infty} \frac{1}{\pi}\int^{T}_{-T} \frac{\sin ht}{t} e^{-ita} \varphi(t)dt' ^: ~3 S9 P! D( y
\end{eqnarray}9 A o2 \& @7 _, c# i
\end{theorem}
. J/ S: T* I7 t0 _/ A\begin{proof}' H+ P2 B$ R( z+ ?/ h
从略。感兴趣的读者可以参考……。5 J+ L. s* D: b4 A
\end{proof}
6 d: ]8 m2 g; |L\'{e}vy~定理在分布函数和特征函数之间搭建了一座桥梁。由公式~(\ref{Levy theorem})~可得
( i: [* X! q! E\begin{eqnarray}6 G6 \9 ?5 ~' N2 m, X, @, t" v# H }1 x
\label{DensityCharacteristic} % 自定义的标记
" K7 w3 E/ ^9 ]: E3 n U, k9 t f(x)&=&\frac{1}{2\pi}\int^{+\infty}_{-\infty} e^{-itx}\varphi(t)dt; @3 B9 W# a+ e8 [- ^6 S$ {) y2 w' r
\end{eqnarray}8 y8 k0 l. ?( F- r
\begin{proof}
5 G. x, Q: E ]+ q% V由~(\ref{Levy theorem})~和~Lebesgue~定理,我们有
6 w0 S5 q6 B5 d# \ M' n# I\begin{eqnarray}
$ O z/ e6 F: `' ^& Y1 i \frac{F(x+\Delta x)-F(x)}{\Delta x}&=&\frac{1}{2\pi} \int^{+\infty}_{-\infty}$ q# v! h2 \6 X% _7 J
\frac{\sin(t\Delta x/2)}{t\Delta x/2} e^{-it(x+\Delta x/2)} \varphi(t) dt\nonumber\\
9 `; T- |( k( M+ S" A f(x)&=&\frac{1}{2\pi} \int^{+\infty}_{-\infty} \lim_{\Delta x\rightarrow 0}) y9 D+ f2 k5 W5 x+ H+ R& u
\frac{\sin(t\Delta x/2)}{t\Delta x/2} e^{-it(x+\Delta x/2)} \varphi(t) dt\nonumber\\
! p- i/ U7 F9 f &=&\frac{1}{2\pi}\int^{+\infty}_{-\infty} e^{-itx}\varphi(t)dt\nonumber8 B. ]3 d' l& m# T9 Z2 K& P
\end{eqnarray}" E( {; f; p# F- i
我们知道特征函数的定义是
1 Q: y/ ]+ U' ^1 {: J! _\begin{eqnarray}
5 h" v4 z P0 l \label{section1:characteristic} % 标记中注明了章节号7 g' F) x1 A0 z# q! J
\varphi(t)&=& E(e^{itX})\nonumber\\4 ]" I! M1 Q5 C# b. {: m( T
&=& \int^{+\infty}_{-\infty} e^{itx} f(x)dx: H% ~- Q* e5 `3 c7 G
\end{eqnarray}
6 s" H0 [! k6 `* Y! u对比~(\ref{DensityCharacteristic})~和~(\ref{section1:characteristic})~可见,
9 i7 Y5 [. W) D( A" _密度函数和特征函数之间的关系非常巧妙。
+ ^1 s1 } V* _" \# u\end{proof}# s/ D: A6 E) k6 f! b
\HandRight 在~\TeX~环境里,数学公式的表达是很自然的,绝大多数命令就是英文的数学% T+ U6 L' S+ B$ i. t
专有名词或它们的缩写,如果你以前读过英文的数学文献,记忆这些命令是不难的。
- q; _1 j; }" ^) s& O8 F# j手头有个命令快速寻查表是很方便的,
3 ], r6 w( v1 Z/ d我用的是~Hypertext Help with \LaTeX,网上可以搜到,是免费的。
8 C' {! t- o& n0 v2 G M% @%%%%%%%%%% section %%%%%%%%%%& U) o, W1 t9 x2 ~( P' y
\section{符号、字体、颜色等}1 h0 q- h* F; q
\begin{itemize}$ I7 I( |( _$ n
\item 特殊字符:\# \$ \% \^{} \& \_ \{ \} \~{} $\backslash \cdots$
( z& ?2 a6 ^: ]! F6 n# [/ q \item 中文字体:{\song 宋体} {\kai 楷体} {\hei 黑体} {\fs 仿宋}
% m+ p3 s/ }# x6 {2 s5 N \item 字体大小:{\tiny tiny} {\small small} {\normalsize normalsize}+ u5 T7 O: L0 N2 E
{\large large} {\Large Large} {\huge huge} {\Huge Huge}. t! d$ z5 O$ Y" {& Q3 y* @
\item 汉字大小:{\wuhao 五号} {\dawu 大五} {\xiaosi 小四} {\sihao 四号}( Q1 |% s5 w9 N7 O* u$ ^9 Z' ^
{\xiaosan 小三} {\sanhao 三号} {\xiaoer 小二} {\erhao 二号} {\yihao 一号}9 l9 C( l2 c+ W! t& R4 ?: X
\item 各种颜色:{\color{red} 红色} {\color{yellow} 黄色} {\color{blue} 蓝色}
# O# A1 Y. Q! \& z4 o4 ~# |1 r) a {\color{magenta} 洋红} {\color{cyan} 蓝绿}& [ p4 G* a2 p4 C
\end{itemize}2 u" V$ m& O7 t- g; O! P. v* B
%%%%%%%%%%% section %%%%%%%%%%* ^; D, ~: z/ `- g9 @8 V
\section{图形表格等浮动对象}
- D, U" ?1 d" l: |. M" } c1 P/ @+ c( E$ M& L# `
$ o+ s8 K+ ?6 p
\index{贝叶斯方法}贝叶斯方法~\cite{Gelman}~主要用于小样本数据分析,它利用参数先验分布和
5 a' O* _( U% i后验分布之差异进行统计推断,其一般步骤是:% r+ v" u% G0 Z: c
\begin{enumerate}
& y) `1 n7 S2 b4 Y \item 构建概率模型,包括参数的先验分布。
7 H* C2 b' | c- M5 p* p+ R \item 给定观察数据,计算参数的后验分布。
7 z$ [) }5 J, J: ~) d* U& W3 \ \item 分析模型的效果,如有必要,回到第一步。
& e- O8 z+ H8 E$ {" ?\end{enumerate}
9 Y1 U0 I# y. ]; ^8 ~% n下面,我们给一个表格的例子:
5 g4 P+ W; i( S/ \ f" r! y\begin{center}; }/ Z. m% F1 U# A( t+ j2 \
\begin{table}[!h] % 强制在原位显示表格
- h: R2 V" z! j `7 u$ A\centering
: s1 u* ` x! g7 i) h\caption{二维随机向量$(X,Y)$的边缘分布}9 a+ J5 P1 h( `4 ^; w S/ i+ w
\begin{tabular}{l|ccccc|c} U) \6 b1 l4 W( `! c8 c5 E
$_X$\hspace{3mm} $^Y$&$y_1$&$y_2$&$\cdots$&$y_j$&$\cdots$\\
+ s3 Z, }& p* a* s. R; }\hline1 M& Z6 ]' O+ M; G
$x_1$ &$p_{11}$&$p_{12}$&$\cdots$&$p_{1j}$&$\cdots$&$p_{1\cdot}$\\
/ k. K& i. y3 `6 E5 C, |$x_2$ &$p_{21}$&$p_{22}$&$\cdots$&$p_{2j}$&$\cdots$&$p_{2\cdot}$\\ s' }5 e( x# f8 g5 @6 O2 k
$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$ \\
# [/ M5 y" V. } q, h$x_i$ &$p_{i1}$&$p_{i2}$&$\cdots$&$p_{ij}$&$\cdots$&$p_{i\cdot}$\\6 K' j% e" l( C, t v# n+ c
$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$ \\* ~ T3 s( O8 {2 i5 g) S
\hline
4 A" m d7 L9 B0 t &$p_{\cdot 1}$&$p_{\cdot 2}$&$\cdots$&$p_{\cdot j}$&$\cdots$&1" ?7 V3 k" v! E9 v9 }6 p; k9 ~5 x
\label{marginal distribution}6 o0 ^- M2 q1 i" J
\end{tabular}6 r: Q `5 ^7 j& \6 C) q
\end{table}) _/ a. b) g+ |" [" J* B* e q
\end{center}$ q& d- u* `9 Z& Z
在表~\ref{marginal distribution}中,$p_{\cdot j}=\sum\limits_i p_{ij}$,类似地,$ p_{i\cdot}=\sum\limits_j p_{ij}$。
5 k6 x5 @" y* ?, t4 t# N9 e- j% 插入一个图片( o' h% _ P7 h8 k5 l v
%\includegraphics[width=50mm,height=40mm]{figures/demo.eps}- Q; m7 X4 ^2 x& D+ _6 ?6 B* R! }
" h0 n: o7 U# A
, _8 I; D. ~0 G%%%%%%%%%% section %%%%%%%%%%8 i( h$ G. n0 o" V
\section{生成索引}
: I6 G' D0 y! s4 L键入命令:makeindex 文件名。\newline
- C, O, @$ o# U2 ~6 d3 N: l\indent 譬如对这个模板,生成~Template4CJK.ind~的过程如下。
! F5 k8 H5 s( S' `$ L\begin{lstlisting}
4 ?5 e0 U3 F' O6 j) s }/ u$ makeindex Template4CJK1 y& J- f; O5 l
This is makeindex, version 2.14 [02-Oct-2002] (kpathsea + Thai support).
9 }$ D) T) } ?. A8 k6 `Scanning input file Template4CJK.idx....done (4 entries accepted, 0 rejected).
" S) m9 h) y- _7 Q! O @8 dSorting entries....done (9 comparisons).
% S1 @$ ]5 t& A6 h- q5 I# O( x* ~& UGenerating output file Template4CJK.ind....done (18 lines written, 0 warnings).7 l$ j% h" H5 p( y! S
Output written in Template4CJK.ind.
) j- v' f4 ?& r9 B& zTranscript written in Template4CJK.ilg.
9 N' r0 c% y* e @9 u$ P$ D\end{lstlisting}
6 ^! ?2 E- w9 V9 P8 ?7 k( G: ? N# d; @3 O% i: [: Q* ?
, ~4 ~7 M9 d! y* [: j4 n2 @4 @" J, i\printindex % 打印出索引名及其所在页码,即那些\index{索引名}
5 ~. N- Q/ B3 l) y6 j%%%%%%%%%% 参考文献 %%%%%%%%%%. l: C5 ?8 \( z$ O5 h9 L
\begin{thebibliography}{}
7 c5 P0 U% G3 X$ C, `1 O\bibitem[Gelman et~al., 2004]{Gelman} Gelman, A., Carlin, J.~B., Stern, H.~S. \& Rubin, D.~B. (2004)" ?2 i& [8 \& A" `) w2 k
Bayesian Data Analysis (Second Edition). \newblock Chapman \& Hall/CRC.
& V6 o% h1 Z5 Z6 ~; u7 G. g\end{thebibliography}7 W3 v* F( j; d t' X
\clearpage1 k1 _2 s2 \+ `8 c6 l
\end{document}
2 o1 x& [# G0 z0 k, j; p( p%%%%%%%%%% 结束 %%%%%%%%%%3 F& J. i) d: C$ ^1 h
3 V6 ?. [6 ?8 W2 Z5 e0 ?) x. h( I
|
zan
|