-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tex
More file actions
397 lines (332 loc) · 12.4 KB
/
Copy pathmain.tex
File metadata and controls
397 lines (332 loc) · 12.4 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
\RequirePackage[l2tabu, orthodox]{nag} %编译时,给出过时命令和不规范使用警告。
\documentclass[UTF8, fontset = ubuntu, a4paper, twoside, openany, zihao =
-4, scheme=chinese, no-math]{ctexbook}
\XeTeXgenerateactualtext=1
\usepackage[backend=biber,style=gb7714-2015,backref=true]{biblatex}
\addbibresource[location=local]{ref/refs.bib}
\usepackage{verse}
\ctexset{%
abstractname = {摘\quad 要}, % book类没有摘要
today = {small},
subsection/format += \centering,
part/pagestyle = empty,
chapter = {
pagestyle = empty, beforeskip = {-30pt}, afterskip = {20pt plus 5pt}},
section =
{beforeskip = {3ex plus 1ex minus 0.2ex}, afterskip = {2.3ex plus 0.2ex}},
subsection =
{beforeskip = {3ex plus 1ex minus 0.2ex}, afterskip = {1.5ex plus 0.2ex}},
subsubsection =
{beforeskip = {3ex plus 1ex minus 0.2ex}, afterskip = {1.5ex plus 0.2ex}}
}
\xeCJKsetup{CJKmath=true}
% 插图所需的宏包
\usepackage{graphicx}
\graphicspath{{figures/}}
\usepackage{caption}
\captionsetup{font=small, labelfont=bf}
\usepackage{subcaption}
\usepackage{amsmath, amssymb, xfrac}
\usepackage[math-style=ISO, bold-style=ISO]{unicode-math} %注意,unicode-math与被其认为过时的bm包不兼容,不要\usepackage{bm}
% \makeatletter
% \renewcommand{\normalsize}{
% \zihao{4}
% \abovedisplayskip 14\p@ \@plus5\p@ \@minus7\p@
% \abovedisplayshortskip \z@ \@plus3\p@
% \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
% \belowdisplayskip \abovedisplayskip
% \let\@listi\@listI
% }
% \renewcommand{\small}{
% \zihao{-4}
% \abovedisplayskip 12\p@ \@plus4\p@ \@minus7\p@
% \abovedisplayshortskip \z@ \@plus3\p@
% \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
% \belowdisplayskip \abovedisplayskip
% \let\@listi\@listI
% }
% \renewcommand{\footnotesize}{
% \zihao{5}
% \abovedisplayskip 11\p@ \@plus3\p@ \@minus7\p@
% \abovedisplayshortskip \z@ \@plus3\p@
% \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
% \def\@listi{\leftmargin\leftmargini
% \topsep 9\p@ \@plus3\p@ \@minus5\p@
% \parsep 4.5\p@ \@plus2\p@ \@minus\p@
% \itemsep \parsep}
% \belowdisplayskip \abovedisplayskip
% \let\@listi\@listI
% }
% \renewcommand{\scriptsize}{\zihao{-5}}
% \renewcommand{\tiny}{\zihao{6}}
% \makeatother
\setmainfont[Scale=1.1]{Libertinus Serif}
% \setsansfont{Libertinus Sans}
\setmathfont[Scale = 1.1]{Libertinus Math} % 因Libertinus目前的数学字体暂还没
% 有粗体,这里设置为允许伪粗体渲染。
\setsansfont{TeX Gyre Heros}
\defaultfontfeatures{Scale=MatchLowercase}
\usepackage[bodytextleadingratio = 1.6, restoremathleading = true,
footnoteleadingratio = 1.56]{zhlineskip}
%
% \setmainfont{Source Han Serif CN}
% \setsansfont[BoldFont=Source Han Sans CN Medium]{Source Han Sans CN Normal}
\usepackage{etoolbox}
\usepackage{zref-perpage}
\zmakeperpage{footnote}
% % for number of footnote
% 作者:刘海洋
% 链接:https://www.zhihu.com/question/53030087/answer/136097745
% 来源:知乎
% 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
\makeatletter
% 无上标的 \@makefnmark
\def\nosuper@makefnmark{\hbox{\normalfont\@thefnmark\space}}
% 补丁
\patchcmd\@makefntext{\@makefnmark}{\nosuper@makefnmark}{}{}
%% 不用 etoolbox 的另一种打临时热补丁的写法
% \let\save@makefntext\@makefntext
% \long\def\@makefntext#1{{%
% \let\@makefnmark\nosuper@makefnmark
% \save@makefntext{#1}}}
% XeTeX 或 LuaTeX 下带圈数字 \thefootnote 的一种定义
\usepackage{xunicode-addon}
\newfontfamily\fnmarkfont{ipam.ttf}
\renewcommand\thefootnote{{\fnmarkfont\textcircled{\arabic{footnote}}}}
\makeatother
\AtBeginEnvironment{quotation}{\itshape}
\usepackage{fancyhdr, geometry}
\geometry{%
a4paper,
heightrounded,
includemp = false, % includes the margin notes, \marginparwidth and \marginparsep, into body when calculating horizontal calculation.
inner = 3.5cm,
outer = 3cm,
% marginparwidth = 80pt,
top = 3cm,
bottom = 3cm,
headheight = 9mm,
headsep = 10mm,
footskip = 10mm,
}
% \makeatletter
% \def\@textbottom{\vskip \z@ \@plus 1pt}
% \let\@texttop\relax
% \makeatother
% \pagestyle{headings}
% \fancyhf{} % clear all header and footer fields
% \lhead{}
% \rhead{}
% \chead{\slshape \zihao{5} \leftmark}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyhead[LE,RO]{\slshape \small \thepage}
\fancyhead[RE]{\slshape \small \leftmark}
\fancyhead[LO]{\slshape \small \rightmark}
\renewcommand{\headrulewidth}{0.75pt}
\renewcommand{\footrulewidth}{0pt}
\fancyheadoffset{0cm}
\renewcommand{\bibfont}{\zihao{5}}
\setlength\parskip{0em plus 3pt minus 1pt}
% \usepackage{footnotebackref} %bug
\usepackage{hyperref}
% from package hyperref
\hypersetup{%
colorlinks,
citecolor=magenta,
linkcolor=blue,
bookmarksnumbered = true,
pdftitle = {读书笔记},
pdfcreator = {[email protected]},
pdfauthor = {蛋疼的蛋蛋},
% pdfsubject = {},
% pdfkeywords = {}
}
% for format of contents
\usepackage{pdfpages}
\usepackage{bookmark}
\usepackage{booktabs}
\usepackage{pdflscape}
\usepackage[usestackEOL]{stackengine}
\usepackage{tabularx, diagbox}
\usepackage{float} %允许浮动体强制在下方
% 双栏排版
\usepackage{multicol}
\setlength\columnsep{20pt} % This is the default columnsep for all pages
% 有时候, 浮动的边注在双面模式下会出现在错误的一侧, mparhack 可以修正该问题
% \usepackage{mparhack}
% for format of contents
\usepackage{tocloft}
\usepackage{tocbibind}
\renewcommand\cftdot{…}
\renewcommand{\cftdotsep}{0}
% \renewcommand\cftsecleader{\cftdotfill{\cftdotsep}} % ctexart的目录中,section也加点。
% \renewcommand*{\cftchapleader}{\cftdotfill{\cftdotsep}} % ctexbook中,chapter也加点。
\renewcommand{\cfttoctitlefont}{\hfill\Large\bfseries}
\renewcommand{\cftaftertoctitle}{\hfill} %使“目录”居中显示,将其中的toc改为lof
%和lot,则会使浮动体列表和表格列表也居中显示
% \renewcommand{\contentsname}{\hspace*{\fill}\bfseries\Large
% 目录 \hspace*{\fill}} % 不使用tocloft宏包时也适用的命令。
% 设置目录中各级缩进
\setlength{\cftsecindent}{2em}
\setlength{\cftsubsecindent}{4em}
% 设置目录中 chapter 章节编号的宽度 (ctex 章节编号为中文, 需要特别注意).
% 参考 <<LaTeX 入门>>, 刘海洋 编著, 电子工业出版社, 2013.6
% \settowidth\cftchapnumwidth{第十章} % 最宽的可能编号
% \renewcommand\cftchapaftersnumb{\hspace{0.5em}} % 额外间距
% 定义所有的图片文件在 figures 子目录下
\graphicspath{{figures/}}
%
% dedication environment
\newenvironment{dedication}
{\clearpage % we want a new page
\large
\thispagestyle{empty}% no header and footer
\vspace*{\stretch{1}}% some space at the top
\slshape % the text is in slshape
% \raggedleft % flush to the right margin
}
{\par % end the paragraph
\vspace{\stretch{3}} % space at bottom is three times that at the top
\clearpage % finish off the page
}
% 使用unicode字体中的单个罗马数字实现
\makeatletter
% \def\rnum#1{\symbol{\numexpr"216F+#1\relax}}
% \def\Rnum#1{\symbol{\numexpr"215F+#1\relax}}
% \def\uroman#1{\rnum{\the\value{#1}}}
% \def\uRoman#1{\Rnum{\the\value{#1}}}
\newcommand{\Rnum}[1]{\uppercase\expandafter{\romannumeral #1\relax}}
\makeatother
% \title {新型城镇化规划进行中的\\丁家庄城中村社会调查报告}
% \author{孙滨 \and \url{http://sd44.github.com}}
% \date{\today}
\usepackage[shortlabels]{enumitem}
\setlist{leftmargin= \parindent, itemindent = \parindent, listparindent =
\parindent, %labelindent = \parindent,
parsep = 0ex, partopsep = 0ex, itemsep = 0.5em }
\setlist[description]{style=standard, font=\large\sffamily\bfseries}
\usepackage{multirow,tikz}
\tikzset{every picture/.style={/utils/exec={\footnotesize}}}
\usetikzlibrary{calc,patterns,decorations.pathreplacing, intersections}
\usetikzlibrary{arrows,arrows.meta, datavisualization}
\newdimen\XCoord
\newdimen\YCoord
\newcommand*{\ExtractCoordinate}[1]{\path (#1); \pgfgetlastxy{\XCoord}{\YCoord};}%
% \newcommand*{\LabelCurrentCoordinate}[2]{\fill [#1] ($(\XCoord,\YCoord)$) circle (2pt) node [right] {#2}}%
\usepackage{tcolorbox}
\tcbuselibrary{most}
\newtcolorbox{mybox}[2][]{enhanced jigsaw,fonttitle = \large\sffamily\bfseries, fontupper =
\small\itshape, fontlower = \small\itshape, before upper={\parindent=2\ccwd},
left=20pt, title=#2,#1}
\RequirePackage{cleveref}
\crefname{equation}{公式}{公式}
\crefname{table}{表}{表}
\crefname{figure}{图}{图}
\crefformat{equation}{#2式~\textnormal{(}#1\textnormal{)}~#3}
\crefformat{figure}{#2图~#1~#3}
\crefformat{table}{#2表~#1~#3}
\crefformat{listing}{#2清单~#1~#3}
\crefformat{page}{#2第~#1~页#3}
\crefformat{line}{#2第~#1~行#3}
\crefformat{part}{#2第~#1~部#3}
\crefformat{chapter}{#2第~#1~章#3}
\crefformat{section}{#2~#1~节#3}
\crefformat{subsection}{#2~#1~节#3}
\crefformat{appendix}{#2附录~#1~#3}
\crefformat{enumi}{#2第~#1~点#3}
\crefformat{footnote}{#2脚注~#1~#3}
\crefformat{definition}{#2定义~#1~#3}
\crefformat{notation}{#2记号~#1~#3}
\crefformat{theorem}{#2定理~#1~#3}
\crefformat{lemma}{#2引理~#1~#3}
\crefformat{corollary}{#2推论~#1~#3}
\crefformat{proposition}{#2命题~#1~#3}
\crefformat{fact}{#2事实~#1~#3}
\crefformat{assumption}{#2假设~#1~#3}
\crefformat{conjecture}{#2猜想~#1~#3}
\crefformat{hypothesis}{#2假说~#1~#3}
\crefformat{axiom}{#2公理~#1~#3}
\crefformat{postulate}{#2公设~#1~#3}
\crefformat{principle}{#2定律~#1~#3}
\crefformat{problem}{#2问题~#1~#3}
\crefformat{exercise}{#2习题~#1~#3}
\crefformat{example}{#2例~#1~#3}
\crefformat{remark}{#2评注~#1~#3}
\crefformat{proof}{#2证明~#1~#3}
\crefformat{solution}{#2解~#1~#3}
\crefformat{algorithm}{#2算法~#1~#3}
\crefformat{result}{#2结果~#1~#3}
\crefname{appendix}{附录}{附录}
\crefname{enumi}{Point}{Points}
\crefname{footnote}{脚注}{脚注}
\crefname{theorem}{定理}{定理}
\crefname{lemma}{引理}{引理}
\crefname{corollary}{推论}{推论}
\crefname{proposition}{命题}{命题}
\crefname{definition}{定义}{定义}
\crefname{result}{R\'esultat}{R\'esultats}
\crefname{example}{例}{例}
\crefname{remark}{Remarque}{Remarques}
\crefname{note}{Commentaire}{Commentaires}
\crefname{algorithm}{算法}{算法}
\crefname{line}{行}{行}
\begin{document}
\frontmatter
% \include{data/titlepage}
%\include{data/dedication}
%% 目录
\tableofcontents
%%% 其它部分
% 插图索引
\clearpage
\listoffigures
% 表格索引
\clearpage
\listoftables
% 公式索引
% \listofequations
%\pagenumbering{Alph}
% \include{dta/preface}
%% 符号对照表
%\input{data/denotation}
%%% 正文部分
\input{data/经济思想史/frontmatter}
\mainmatter
\input{data/经济思想史/main1}
\input{data/经济思想史/main2}
\input{data/经济思想史/main3}
\input{data/经济思想史/main4}
\input{data/经济思想史/main5}
\input{data/经济思想史/main6}
\input{data/经济思想史/main7}
\input{data/经济思想史/main8}
\input{data/经济思想史/main9}
\input{data/经济思想史/main10}
\input{data/经济思想史/main11}
\input{data/经济思想史/main12}
\input{data/经济思想史/main13}
% \input{data/经济思想史/mindmap}
% \include{data/跟大卫哈维读资本论/1}
% \include{data/跟大卫哈维读资本论/2-1}
% \include{data/跟大卫哈维读资本论/2-2}
% \include{data/跟大卫哈维读资本论/2-3}
% \include{data/跟大卫哈维读资本论/2-4}
% \include{data/跟大卫哈维读资本论/2-5}
% \include{data/marx1883-1929/1}
% \include{data/marx1883-1929/2}
% \include{data/marx1929-1990/1}
% \include{data/marx1929-1990/2}
% \include{data/marx1929-1990/3}
%% 参考文献
\clearpage
\appendix
\phantomsection
\addcontentsline{toc}{part}{附录}
\printbibliography[heading=bibnumbered,title=参考文献]
\includepdf[pages=-]{figures/MindMap1.pdf}
\includepdf[pages=-]{figures/MindMap2.pdf}
% \chapter{test Append1}
% \chapter{test Append2}
\backmatter
\end{document}