-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbook.tex
More file actions
108 lines (75 loc) · 2.5 KB
/
book.tex
File metadata and controls
108 lines (75 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
%"思考Python:像计算机科学家一样思考"LaTex源码
%Copyright (c) 2008 Allen B. Downey.
%中文翻译:2010 Walter Lewis (刘宇辉).
% 2010 hjc(韩骏超)
% 2010 zongru
% Permission is granted to copy, distribute and/or modify this
% document under the terms of the GNU Free Documentation License,
% Version 1.1 or any later version published by the Free Software
% Foundation; with no Invariant Sections, no Front-Cover Texts,
% and no Back-Cover Texts.
% This distribution includes a file named fdl.tex that contains the text
% of the GNU Free Documentation License. If it is missing, you can obtain
% it from www.gnu.org or by writing to the Free Software Foundation,
% Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
%
\documentclass[10pt]{book}
\usepackage[width=5.5in,height=8.5in,hmarginratio=3:2,vmarginratio=1:1]{geometry} %指定了{h,v}marginratio,width和height被忽略了,可以不用指定(参考geometry.pdf, $texdoc geometry.pdf)。
%下面的这些包,你可能需要安装texlive-latex-extra(in Debian/Ubuntu)
\usepackage{pslatex} %
\usepackage{url}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{exercise}
\usepackage{makeidx}
\usepackage{setspace}
\usepackage{hevea}
\usepackage{upquote}
%这些是对中文的支持
\usepackage{xeCJK}
\usepackage{fontspec}
\setCJKmainfont{AR PL SungtiL GB:style=Regular}
\setmainfont{TeXGyrePagella:style=Regular}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip=0pt plus 1pt minus 0.1pt
\title{思考Python}
\newcommand{\thetitle}{思考Python:像计算机科学家一样思考}
\newcommand{\theversion}{1.1.22}
%以下的这些风格被转换成html的css
\newstyle{a:link}{color:black;}
\newstyle{p+p}{margin-top:lem;margin-bottom:lem}
\newstyle{img}{border:opx}
%改变箭头(方向)
\setlinkstext
{\imgsrc[ALT="Previous"]{back.png}}
{\imgsrc[ALT="Previous"]{up.png}}
{\imgsrc[ALT="Previous"]{next.png}}
\makeindex
\begin{document}
\frontmatter
\input{part/chapter00}
\mainmatter
\input{part/chapter01}
\input{part/chapter02}
\input{part/chapter03}
\input{part/chapter04}
\input{part/chapter05}
\input{part/chapter06}
\input{part/chapter07}
\input{part/chapter08}
\input{part/chapter09}
\input{part/chapter10}
\input{part/chapter11}
\input{part/chapter12}
\input{part/chapter13}
\input{part/chapter14}
\input{part/chapter15}
\input{part/chapter16}
\input{part/chapter17}
\input{part/chapter18}
\input{part/chapter19}
\appendix
\input{part/appendix}
\printindex
\end{document}