-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tex
executable file
·478 lines (400 loc) · 12.3 KB
/
main.tex
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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
\documentclass[twoside, openright]{report}
% Fakesection 基础
% Fakesubsection 文字
% Fakesubsubsection 颜色
\usepackage[x11names]{xcolor}
% XXX: conflict with microtype <02-11-19> %
% Fakesubsubsection 长度
\usepackage{printlen}
\uselengthunit{mm}
% Fakesubsubsection 效果
\usepackage{ulem}
% Fakesubsubsection 字体
\usepackage[no-math]{fontspec}
% XXX: use no-math to avoid conflict with mtxlatex <02-11-19> %
\setmainfont{Times New Roman}
% XXX: load ctex before siunitx to avoid \ohm ineffective <04-10-19> %
\usepackage[
UTF8,
fontset = windows,
heading = true,
zihao = -4,
sub4section,
]{ctex}
\setCJKfamilyfont{zhsong}[
AutoFakeBold = 2.17,
AutoFakeSlant = 0.5,
]{SimSun}
\renewcommand*{\songti}{\CJKfamily{zhsong}}
% XXX: load newtxtext before textcomp to avoid option clash <04-10-19> %
\usepackage{newtxtext}
% Fakesubsubsection 字符边框
\usepackage{varwidth}
% Fakesubsection 断行
\usepackage{fvextra}
% Fakesubsection 标点
% XXX: load csquotes after fvextra to avoid warning <04-10-19> %
\usepackage{csquotes}
% Fakesubsubsection 中文引号
\DeclareQuoteStyle{zh}
{\symbol{"201C}}%“
{\symbol{"201D}}%”
{\symbol{"2018}}%‘
{\symbol{"2019}}%’
\setquotestyle{zh}
% Fakesubsubsection 日文引号
\DeclareQuoteStyle{ja}
{\symbol{"300E}}%『
{\symbol{"300F}}%』
{\symbol{"300C}}%「
{\symbol{"300D}}%」
% Fakesubsubsection 书名号
\DeclareQuoteStyle{book}
{\symbol{"300A}}%《
{\symbol{"300B}}%》
{\symbol{"3008}}%〈
{\symbol{"3009}}%〉
% Fakesubsection 样式
% Fakesubsubsection 目录
\usepackage{titletoc}
\titlecontents{chapter}[0pt]{\filright}{\contentspush{\thecontentslabel}}{}{\titlerule*{.}\contentspage}
% Fakesubsubsection 章节
\ctexset{
chapter = {
name = ,
number = \arabic{chapter},
aftername = \hspace{1\ccwd},
format = \ifthenelse{\value{chapter}=0}{\centering}{}\zihao{3}\heiti\bfseries,
beforeskip = 0.5\ccwd,
afterskip = 0.5\ccwd,
},
section = {
aftername = \hspace{1\ccwd},
format = \ifthenelse{\value{chapter}=0}{\centering}{}\zihao{-3}\heiti\bfseries,
beforeskip = 0.5\ccwd,
afterskip = 0.5\ccwd,
},
subsection = {
format = \zihao{4}\heiti\bfseries,
}
}
% Fakesubsubsection 图表
\usepackage{caption}
\captionsetup[figure]{labelsep=space}
\captionsetup[table]{labelsep=space}
\captionsetup{font=small}
\DeclareCaptionFont{blue}{\color{LightSteelBlue3}}
\setlength{\abovecaptionskip}{0.5\ccwd}
\setlength{\belowcaptionskip}{0.5\ccwd}
% Fakesubsubsection 子图表
\usepackage{subcaption}
% Fakesubsubsection 公式
\setlength{\abovedisplayskip}{0.5em}
\setlength{\belowdisplayskip}{0.5em}
% Fakesubsubsection 列表
\usepackage{enumitem}
\setlist[enumerate, 1]{
fullwidth,
label = (\arabic*),
font = \textup,
itemindent=2em
}
\setlist[enumerate, 2]{
fullwidth,
label = (\alph*),
font = \textup,
itemindent=4em
}
% Fakesubsubsection 代码
% XXX: need -shell-escape & pygmentize <04-10-19> %
\usepackage{minted}
\usepackage{boxie}
% XXX: conflict with fancybox <02-11-19> %
% Fakesubsubsection 问答
\usepackage{exercise}
\usepackage{tasks}
\renewcommand{\ExerciseName}{思考题}
\renewcommand{\AnswerName}{回答}
\renewcommand{\listexercisename}{思考题}
% Fakesubsubsection 改动
% Fakesection 插入
% Fakesubsection 表格
% Fakesubsubsection 三线
\usepackage{booktabs}
% Fakesubsubsection 对角线
\usepackage{diagbox}
% Fakesubsubsection 合并列
\usepackage{multicol}
% Fakesubsubsection 合并行
\usepackage{multirow}
% Fakesubsubsection 分割单元格
\usepackage{makecell}
% Fakesubsubsection 短表
\usepackage{tabu}
% Fakesubsubsection 长表
\usepackage{longtable}
% Fakesubsubsection 彩色表
\usepackage{colortbl}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
\tcbuselibrary{breakable}
\tcbuselibrary{theorems}
\tcbuselibrary{listings}
\tcbuselibrary{xparse}
% XXX: need -shell-escape & pygmentize <04-10-19> %
\tcbuselibrary{minted}
% Fakesubsubsection 导入数据
\usepackage{csvsimple}
% Fakesubsection 图形
% Fakesubsubsection 插图
\usepackage{graphicx}
\graphicspath{{fig/}{etc/}{../fig/}{../etc/}}
% XXX: use '../' to make subfiles can find path <03-11-19> %
% Fakesubsubsection 环绕
\usepackage{wrapfig}
% Fakesubsubsection 图片重叠
\usepackage{overpic}
% Fakesubsubsection 徽标
\usepackage{hologo}
\usepackage[njust]{cnlogo}
% Fakesubsubsection 条形码
\usepackage{ean13isbn}
% Fakesubsubsection 二维码
\usepackage{qrcode}
% Fakesubsection 符号
% Fakesubsubsection 数学符号
\usepackage{newtxmath}
\usepackage{bm}
% Fakesubsubsection 幻灯片符号
\usepackage{pifont}
% Fakesubsubsection 大数学符号
\usepackage{exscale}
% Fakesubsubsection 数学符号放缩
\usepackage{relsize}
% Fakesubsubsection 公式
\usepackage{cases}
\usepackage{physics}
% Fakesubsubsection 单位
\usepackage{siunitx}
\sisetup{mode=text}
% Fakesubsubsection 计算机
% Fakesubsection 媒体
\usepackage{media9}
% Fakesubsection 链接
\usepackage[
colorlinks = true,
linkcolor = gray,
citecolor = gray,
backref = page
]{hyperref}
% Fakesubsection 批注
\usepackage{todonotes}
\usepackage{cooltooltips}
\usepackage{pdfcomment}
% Fakesubsection 文本框
\usepackage{boxedminipage2e}
% Fakesubsection 页眉页脚
\usepackage{fancyhdr}
\fancypagestyle{plain}{
\pagestyle{fancy}
}
% Fakesection 设计
% Fakesubsection 水印
\usepackage{wallpaper}
% Fakesubsection 音乐
\usepackage{mtxlatex}
\mtxlatex
% Fakesubsection 主题
% Fakesection 布局
% Fakesubsection 页面
\usepackage{geometry}
% Fakesubsection 缩进
\usepackage{indentfirst}
% Fakesubsection 间距
\usepackage{setspace}
\usepackage[
restoremathleading=false,
UseMSWordMultipleLineSpacing,
MSWordLineSpacingMultiple=1.5
]{zhlineskip}
% Fakesection 引用
% Fakesubsection 脚注
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\renewcommand{\thempfootnote}{\fnsymbol{mpfootnote}}
% Fakesubsection 引文
\usepackage{morewrites}
\usepackage[square, comma, numbers, super, sort&compress, longnamesfirst, sectionbib, nonamebreak]{natbib}
% Fakesubsection 题注
\usepackage{epigraph}
% Fakesubsection 索引
\usepackage{makeidx}
\makeindex
% Fakesubsection 关联
% XXX: need amsmath <04-10-19> %
\numberwithin{Exercise}{chapter}
\numberwithin{Answer}{chapter}
% Fakesection 特殊功能
% Fakesubsection 页数统计
\usepackage{lastpage}
% Fakesubsection 数学表达式
\usepackage{calc}
% Fakesubsection 条件编译
\usepackage{subfiles}
% XXX: use subfiles at last to make all packages effecitive <03-11-19> %
\begin{document}
% Fakesection 扉页
\newcommand{\Title}{电磁场与电磁波}
\begin{titlepage}
\centering
\begin{spacing}{1}
\zihao{4}
\vspace{0.5\ccwd}
\vspace{1\ccwd}
\njustwhole[njust][0.5]
\vspace{0.2\ccwd}
\fontsize{45pt}{45pt}\selectfont\heiti
\Title
\zihao{-1}
\vspace{2\ccwd}
\end{spacing}
\begin{spacing}{1.5}
\zihao{3}
\begin{tabu} to 12.59cm{@{}X[c, 3.2cm]@{}X[c, 4cm]@{}X[c, 2.22cm]@{}X[c, 3.89cm]@{}}
\textbf{作 者:} & \underline{\makebox[4cm][c]{\kaishu 吴振宇}} & \textbf{学 号:} & \underline{\makebox[3.89cm][c]{\kaishu 916101630117}} \\
\textbf{学 院:} & \multicolumn{3}{c}{\underline{\makebox[10.11cm][c]{\kaishu 电子工程与光电技术学院}}} \\
\textbf{专业(方向):} & \multicolumn{3}{c}{\underline{\makebox[10.11cm][c]{\kaishu 电子信息工程}}} \\
\textbf{班 级:} & \multicolumn{3}{c}{\underline{\makebox[10.11cm][c]{\kaishu 电信4班}}} \\
\textbf{题 目:} & \multicolumn{3}{c}{\underline{\makebox[10.11cm][c]{\kaishu 电磁场与电磁波
课内实验}}} \\
\textbf{} & \multicolumn{3}{c}{\underline{\makebox[10.11cm][c]{\kaishu}}}
\end{tabu}
\vspace{0em}
\end{spacing}
\begin{spacing}{1}
\zihao{3}
\vspace{3\ccwd}
\zihao{-3}
\textbf{指导者:}\underline{\makebox[15.5\ccwd][c]{}}
\zihao{5}
\hspace{5em}(姓名)\hspace{11em}(专业技术职务)
\zihao{-3}
\underline{\makebox[15.5\ccwd][c]{}}
\zihao{5}
\hspace{5em}(姓名)\hspace{11em}(专业技术职务)
\zihao{-3}
\textbf{评阅者:}\underline{\makebox[15.5\ccwd][c]{}}
\zihao{5}
\hspace{5em}(姓名)\hspace{11em}(专业技术职务)
\zihao{3}
\vspace{2\ccwd}
\zihao{-2}
\number\year 年\number\month 月
\end{spacing}
\vspace{0em}
\end{titlepage}
% Fakesection 声明
\renewcommand{\abstractname}{\zihao{3}\heiti 声\hspace{2\ccwd}明}
\begin{abstract}
\zihao{4}
我声明,本\Title 及其研究工作和所取得的成果是本人在导师的指导下独立完成
的。研究过程中利用的所有资料均已在参考文献中列出,其他人员或机构对
本\Title 工作做出的贡献也已在致谢部分说明。
本\Title 不涉及任何秘密,南京理工大学有权保存其电子和纸质文档,可以借阅
或网上公布其部分或全部内容,可以向有关部门或机构送交并授权保存、借阅或网
上公布其部分或全部内容。
\vspace{2\ccwd}
\begin{flushright}
学生签名:\hspace{8em}
\vspace{1\ccwd}
年\hspace{3em}月\hspace{3em}日
\vspace{2\ccwd}
指导教师签名:\hspace{8em}
\vspace{1\ccwd}
年\hspace{3em}月\hspace{3em}日
\end{flushright}
\end{abstract}
% Fakesection 摘要页眉页脚
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[LC, RC]{}
\fancyhead[LE, RO]{}
\fancyhead[RE, LO]{}
\fancyfoot[LC, RC]{}
\fancyfoot[LE, RO]{}
\fancyfoot[RE, LO]{}
% Fakesection 摘要
\newpage
\begin{center}
\zihao{3}\renewcommand{\CJKglue}{\hskip 2pt}\heiti \Title 中文摘要
\vspace{0.3em}
\begin{boxedminipage}[][18cm]{\linewidth}
\begin{spacing}{1.5}
\zihao{-4}
\vspace{1\ccwd}
本文根据实验要求,利用电磁波综合测试仪测定了相关电磁波参
量,包括波长$ \lambda $和常数$ k $、速度$ v $,了解了线
极化、圆极化和椭圆极化电磁波的特点。并对实验结果进行了
误差分析。
\cite{李兆龙电磁场与微波技术课程群的国际化探索,罗霞2015电磁场与电磁波实验教学建设与探讨,马凤英2013“电磁场与电磁波”教学改革探索和实践}
\vspace{2\ccwd}
\noindent\textbf{关键词}\hspace{1\ccwd}电磁波
\end{spacing}
\end{boxedminipage}
\end{center}
% Fakesection 英文摘要
\newpage
\begin{center}
\zihao{3}\renewcommand{\CJKglue}{\hskip 2pt}\heiti \Title 英文摘要
\vspace{0.3em}
\begin{boxedminipage}[][18cm]{\linewidth}
\begin{spacing}{1.5}
\zihao{3}
\vspace{1em}
\begin{tabu} to \linewidth{@{}X[l]@{}X[l, 8]@{}}
\textbf{Title} & \hspace{2em}\underline{\makebox[15em][c]{\zihao{4}\songti Electromagnetic Field and Electromagnetic}} \\
\phantom{Title} & \hspace{2em}\underline{\makebox[15em][c]{\zihao{4}\songti Wave in Class Experiment}} \\
\end{tabu}
\textbf{Abstract}
\zihao{-4} In this paper, according to the requirements
of the experiment, the parameters of electromagnetic
wave, including wavelength $ \lambda $, constant $ k $,
velocity $ v $, are measured by the electromagnetic wave
comprehensive tester, and the characteristics of linear
polarization, circular polarization and elliptical
polarization electromagnetic wave are understood. The
experimental results are analyzed.
\vspace{2em}
\noindent\textbf{Keywords}\hspace{1em}Electromagnetic Wave
\end{spacing}
\end{boxedminipage}
\end{center}
% Fakesection 目录页眉页脚
\newpage
\renewcommand{\headrulewidth}{0.4pt}
\fancyhead[LC, RC]{\zihao{-2}\Title}
\fancyhead[LE, RO]{\zihao{5}第\thepage 页}
\fancyhead[RE, LO]{}
% Fakesection 目录
\pagenumbering{roman}
\setcounter{tocdepth}{2}
\renewcommand{\contentsname}{\zihao{3}\heiti 目次}
\tableofcontents
\listoffigures
\listoftables
\newpage
\mbox{}
\newpage
\listofexercises
\newpage
\mbox{}
\newpage
\pagenumbering{arabic}
% Fakesection 正文
\subfile{subfile/1}
\subfile{subfile/2}
% Fakesection 参考文献
\setcounter{chapter}{0}
\addcontentsline{toc}{chapter}{参考文献}
\bibliographystyle{gbt7714-plain}
\bibliography{bib/main}
\end{document}