├── README.md
├── Typora_Picture
└── README
│ ├── image-20201001150413270.png
│ ├── image-20201001151818925.png
│ ├── image-20201001151918472.png
│ ├── image-20201001152004526.png
│ ├── image-20201001152208858.png
│ ├── image-20201001152441720.png
│ ├── image-20201001152556619.png
│ ├── image-20201001153724376.png
│ ├── image-20201001153748087.png
│ ├── image-20201001161128142.png
│ ├── image-20201001161913855.png
│ ├── image-20201001162918360.png
│ ├── image-20201001163657343.png
│ └── image-20201001163856974.png
├── papermodel
├── book.bib
├── img
│ ├── Diagram_Cu50.png
│ ├── device_1.png
│ ├── device_2.png
│ └── device_3.png
├── papermodel.pdf
└── papermodel.tex
└── reportmodel
├── img
├── 1.eps
├── 2.eps
├── 2_2.png
├── 3.eps
├── 3_1.png
├── 3_2.png
├── h.png
└── v.png
├── reportmodel.pdf
└── reportmodel.tex
/README.md:
--------------------------------------------------------------------------------
1 | # 中山大学物理学院基础物理实验报告LaTeX模板(非官方)
2 |
3 | papermodel:论文格式报告模板
4 | reportmodel:完整实验报告模板
5 |
6 | ### v1.3(20210723)
7 |
8 | - papermodel&reportmodel 中图片排版的彻底完善: 从较老的subfigure宏包完全迁移到了[subfig宏包](https://www.ctan.org/pkg/subfig), 可以实现图片的并行排版, 竖向排版, $2\times2$ 排版, 等等, 读者可以根据模板中的三个例子举一反三.
9 | - 中文字体部分代码默认注释, 读者理论上可以直接编译使用.
10 | - 模板行文上的小修改
11 |
12 | ### v1.2(20210122)
13 |
14 | - reportmodel:公式模板重写
15 | - papermodel:公式模板重写,页眉到正文距离调整,双栏间距调整,引入脚注。
16 |
17 | ### v1.1.2 (20201014)
18 |
19 | - 改进超大表格的说明
20 | - 图片排版从subfig宏包迁移到subfigure宏包上来,该宏包可以简单实现图片的竖向并行排版。
21 |
22 | ### v1.1 (20200825)
23 | - 将中文字体均设置为了免费字体方正书宋、方正楷体和方正黑体。方正系列的免费字体可以在各个网站上下载,推荐自己设置一通,或者将相关代码注释。
24 | - 公式模板修改
25 | - 微调部分注释
26 |
27 | ---
28 |
29 |
30 |
31 | ## 简单指引
32 |
33 | 关于LaTeX的安装,在非特殊情况下推荐直接安装Tex Live(在macOS上为MacTex)。
34 |
35 | - [TeX Live官网](https://tug.org/texlive/)
36 | - [MacTeX官网](https://tug.org/mactex/)
37 |
38 | > 安装教程:(比如)[TeX Live 下载及安装说明 | 始终](https://liam.page/texlive/)
39 |
40 | 如果你从未用过LaTeX进行文章的排版,网上已经有很多优秀的教程。
41 |
42 | > 推荐入门教程:[一份其实很短的 LaTeX 入门文档 | 始终](https://liam.page/2014/09/08/latex-introduction/)
43 |
44 | 安装完Tex Live或者MacTex之后,会自带一个编辑和编译器TeXworks,可以在入门的时候使用,进行简单的学习,但是在实际使用上很不方便。目前比较时髦的配置环境是用微软的 VS Code + 插件 LaTeX Workshop使用,配置十分方便,比笔者之前用的“Sublime Text+Sumatra PDF+Ghostscript+ImageMagick”方便得多,且具体使用起来更加舒服。
45 |
46 | 
47 |
48 | > 配置教程可以参考近期LaTeX工作室的一个直播教程:
49 | >
50 | > - [金秋八月,LaTeX 直播一:LaTeX 安装与基础概念_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili](https://www.bilibili.com/video/BV1Qi4y1g7BL)
51 | > - [LaTeX 安装指南与基础介绍 - LaTeX 直播附带资料 - LaTeX 工作室 - 中国第一个 LaTeX 专业服务网站,学习,模板,开发一应俱全](https://www.latexstudio.net/index/details/index/mid/746.html)
52 |
53 | ## 中文字体的设置
54 |
55 | > 原文:[Win10环境下LaTeX中文字体的设置 - 知乎](https://zhuanlan.zhihu.com/p/260989874)
56 |
57 | 在这里给出**Windows10**环境下,设置中文字体的一个相对比较完整的流程,以[思源宋体](https://github.com/adobe-fonts/source-han-serif)的安装和使用为例。
58 |
59 | ### 字体的下载
60 |
61 | 字体文件的常见格式主要有TrueType (TTF)和OpenType (OTF)等格式的,在各大网站下载的都是可以用的,不管是GitHub下载的开源字体,某些官方网站的商业字体,还是在一些聚合站点上下载的字体。比如说我们进入思源宋体的[GitHub下载主页](https://github.com/adobe-fonts/source-han-serif/tree/release),在下面这里点击下载链接,
62 |
63 |
64 |
65 | 就会自动下载含有字体文件的压缩包(我点击的是[ExtraLight + Light + Regular + Medium](https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SourceHanSerifSC_EL-M.zip)),
66 |
67 |
68 |
69 | 解压后可以看到一些OTF文件,这就是我们要用的文件,如果你手头上有这样的文件,可以直接拿来用。
70 |
71 | 
72 |
73 | 安装字体的方式很简单,右键安装即可;但是需要注意的是,一定要点击“为所有用户安装”
74 |
75 |
76 |
77 | 如果只点击了“安装”,在Word等软件中可以正常使用这个字体,但是用LaTeX编译的时候会出现无法调用而报错的问题。
78 |
79 | ---
80 |
81 | Windows 10的设置中可以查看自己安装的字体,这个面板可以在设置中进行搜索进入
82 |
83 |
84 |
85 | 安装成功之后,在“字体设置”页面中搜索应该可以看到这个字体。
86 |
87 |
88 |
89 | > 注意,如果通过将字体文件拖放到“字体设置”页面的“添加字体”那个虚线方框中进行字体的安装,并不是为所有用户安装的,不能成功被LaTeX调用。
90 |
91 | 对于思源宋体这种字体,它是含有多种粗细型号的,都可以在这个面板进行预览和查看。
92 |
93 |
94 |
95 | ### 查看安装的字体及其代号
96 |
97 | 上面的在windows设置面板中查看安装的字体,其作用是方便查看字体的预览。并不能给我们在LaTeX调用字体是要用的准确的“代号”。要查看这个代号,我们在命令行(需要用管理员身份运行)中输入
98 |
99 | ```
100 | fc-list -f "%{family}\n" :lang=zh >d:zhfont.txt
101 | ```
102 |
103 | 系统就会输出一个文件`zhfont.txt`,放在D盘中(当然你可以自己修改路径,更多的信息可以搜索了解)。打开这个文件之后,你就会看到系统中安装的所有中文字体及其代号,都可以在LaTeX中随意调用,当然也包括我们刚刚安装的“思源宋体”,
104 |
105 | 
106 |
107 | 所有用逗号`,`隔开的短语,如`Source Han Serif SC`,`思源宋体`,`Source Han Serif SC Medium`,`思源宋体 Medium`,都可以作为后面调用的代号,其中后两者代表“Medium”这个粗细,而前两者实际上代表的是这个字体的默认粗细,即“Regular”,想要调用非默认粗细的话需要注意代号。
108 |
109 | 安装新字体之后,为了给TeX Live调用,我们刷新一下TeX Live中的字体,在命令行中运行,一般3次就可以了
110 |
111 | ```
112 | fc-cache -fsv
113 | ```
114 |
115 | ### 使用`xeCJK`宏包调用系统中已安装的字体
116 |
117 | 我们使用宏包`xeCJK`进行中文字体的设置:
118 |
119 | ```tex
120 | \usepackage{xeCJK}
121 | ```
122 |
123 | 下面介绍几个常用的命令,更多的玩法网上已经有很多教程。
124 |
125 | #### 1. 设置主要文字
126 |
127 | 首先是对整篇文档主要文字的设置,包括默认字体、加粗字体和斜体字体,在导言区中加入:
128 |
129 | ```tex
130 | \setCJKmainfont[ItalicFont=方正楷体简体,BoldFont=FZHei-B01S]{Source Han Serif SC}
131 | ```
132 |
133 | | 字体 | 对应命令 | 示例字体 |
134 | | -------- | ------------ | ------------------- |
135 | | 默认字体 | - | Source Han Serif SC |
136 | | 加粗字体 | \textbf{xxx} | FZHei-B01S |
137 | | 斜体字体 | \textit{XXX} | 方正楷体简体 |
138 |
139 | 正如上面的示例,我们调用一个字体,既可以用英文代号,也可以用中文代号。下面是一个示例:
140 |
141 | ```tex
142 | 我们对\LaTeX 中\textbf{中文字体}的\textit{设置}进行介绍。
143 | ```
144 |
145 |
146 |
147 | #### 2. 临时调用某个字体
148 |
149 | 另外一个常用的命令是临时调用某个字体`\CJKfintspec`,可以在正文中直接使用,
150 |
151 | ```tex
152 | {\CJKfontspec{方正楷体简体} 实验时间:2020年9月21日~星期一~下午}
153 | ```
154 |
155 | > 注意如果是在一大段文字中临时调用字体,一定不能忘记最外面的大括号,否则从这一行起,后面所有的文字都会变成这个字体。
156 |
157 | 如果嫌上面的命令麻烦,可以使用LaTeX的`\newcommand`自己给调用的字体命名,
158 |
159 | ```tex
160 | \renewcommand{\songti}{\CJKfontspec{Source Han Serif SC}}%用命令\songti调用思源宋体
161 | \newcommand{\fzkaiti}{\CJKfontspec{方正楷体简体}}%用命令\fzkaiti调用方正楷体简体
162 | ```
163 |
164 | 然后就可以用下面的命令临时调用文字(注意两种方式,最外面的大括号都不能省略),
165 |
166 | ```tex
167 | 使用{\fzkaiti 方正楷体简体}进行书写
168 | ```
169 |
170 | ```
171 | 使用{\fzkaiti{方正楷体简体}}进行书写
172 | ```
173 |
174 | 可能有的读者注意到,第一行用的是`\renewcommand`而不是`\newcommand`。这是因为,如果我们引用了`ctex`宏包或者文档类型用的是`ctexart`,我们可以直接用`ctex`宏包自带的字体:
175 |
176 |
177 |
178 | 比如说临时调用隶书这个字体,
179 |
180 | ```
181 | {\lishu{下面}}是ctex宏包中自带的字体,可以直接使用
182 | ```
183 |
184 | 相应的,我们在自定义字体的时候,就不能和这些字体的命令重名,否则会报错。实际上,我们想进行的操作是替换掉原来的`\songti`命令,故需要用`\renewcommand`。
185 |
186 | ---
187 |
188 | 最后给出一个样例代码
189 |
190 | ```tex
191 | \documentclass[UTF8]{ctexart}
192 | \usepackage{xeCJK}
193 | \setCJKmainfont[ItalicFont=方正楷体简体,BoldFont=FZHei-B01S]{Source Han Serif SC}
194 | \renewcommand{\songti}{\CJKfontspec{Source Han Serif SC}}%用命令\songti调用思源宋体
195 | \newcommand{\fzkaiti}{\CJKfontspec{方正楷体简体}}%用命令\fzkaiti调用方正楷体简体
196 | \begin{document}
197 | 我们对\LaTeX 中\textbf{中文字体}的\textit{设置}进行介绍。\\
198 | {\lishu 下面}是ctex宏包中自带的字体,可以直接使用;相应得,我们在自定义字体的时候,{\fzkaiti 不能}和这些字体的命令重名。\\
199 | \begin{tabular}{|lll|}
200 | \hline
201 | \songti 宋体 & SimSun &\verb|\songti 宋体| \\
202 | \kaishu 楷体 & KaiTi &\verb|\kaishu 楷体| \\
203 | \heiti 黑体 & SimHei &\verb|\heiti 黑体| \\
204 | \yahei 微软雅黑 & Microsoft YaHei &\verb|\yahei 微软雅黑| \\
205 | \fangsong 仿宋 & FangSong &\verb|\fangsong 仿宋| \\
206 | \youyuan 幼圆 & YouYuan &\verb|\youyuan 幼圆| \\
207 | \lishu 隶书 & LiSu &\verb|\lishu 隶书| \\
208 | \hline
209 | \end{tabular}
210 | \end{document}
211 | ```
212 |
213 | 
214 |
215 | ## 其他常用的工具
216 |
217 | ### 表格的制作
218 |
219 | 在LaTeX中制作表格是一件很麻烦的事情,好在我们有一些拓展宏可以实现将excel中的表格转化为代码。在这里我们推荐加载项`Excel2LaTeX`,其官网为[CTAN: Package Excel2LaTeX](https://www.ctan.org/pkg/excel2latex),下载之后双击就安装到excel里面了
220 |
221 | 
222 |
223 | 选中你想转化为代码的表格之后,点选`Convert Table to LaTeX`即可秒速转换为代码,在里面有一些配置,我一般设置如下,
224 |
225 | 
226 |
227 | 其中`Booktabs package`是制作三线表的选项,一般都使用这个,但是你的边框线要自己画好,使用三线表也需要引用宏包`booktabs`。
228 |
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001150413270.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001150413270.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001151818925.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001151818925.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001151918472.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001151918472.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001152004526.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001152004526.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001152208858.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001152208858.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001152441720.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001152441720.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001152556619.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001152556619.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001153724376.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001153724376.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001153748087.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001153748087.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001161128142.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001161128142.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001161913855.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001161913855.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001162918360.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001162918360.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001163657343.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001163657343.png
--------------------------------------------------------------------------------
/Typora_Picture/README/image-20201001163856974.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/Typora_Picture/README/image-20201001163856974.png
--------------------------------------------------------------------------------
/papermodel/book.bib:
--------------------------------------------------------------------------------
1 |
2 |
3 | @book{shenhan2015,
4 | title = {基础物理实验},
5 | isbn = {978-7-03-043311-4},
6 | address = {北京},
7 | publisher = {{科学出版社}},
8 | date = {2015-02},
9 | editor = {沈韩},
10 | pages = {213-216}
11 | }
12 |
--------------------------------------------------------------------------------
/papermodel/img/Diagram_Cu50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/papermodel/img/Diagram_Cu50.png
--------------------------------------------------------------------------------
/papermodel/img/device_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/papermodel/img/device_1.png
--------------------------------------------------------------------------------
/papermodel/img/device_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/papermodel/img/device_2.png
--------------------------------------------------------------------------------
/papermodel/img/device_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/papermodel/img/device_3.png
--------------------------------------------------------------------------------
/papermodel/papermodel.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/papermodel/papermodel.pdf
--------------------------------------------------------------------------------
/papermodel/papermodel.tex:
--------------------------------------------------------------------------------
1 | %%中山大学物理学院-基础物理实验-论文格式报告模板1.2
2 | %%完成整理日期:2020/2/18
3 | %%更新时间:2021/1/22
4 | %%中山大学物理学院18级 王佛泓
5 | %%平台:win10, Texlive 2019
6 | %%编译方式:xelatex
7 |
8 | %---------------------导言区---------------------------%
9 | \documentclass[10pt,a4paper,twocolumn,twoside,UTF8]{ctexart}
10 | %10pt:正文字体为10pt,可以缺省;各层级字体大小会根据正文字体自动调整
11 | %a4paper:纸张大小a4;
12 | %twocolumn:双栏排版;
13 | %twoside:排版上分奇偶页,一般也就是有双面打印的需求;
14 | %UTF8:中文要求
15 | \usepackage{geometry}%用于设置上下左右页边距
16 | %左右边距一样: 不考虑装订和翻页的需要.实验室网站上的示例论文格式报告就是这样。
17 | \geometry{left=2cm,right=2cm,top=2.5cm,bottom=3cm}
18 | %实际上,一般需要考虑到双面打印、装订和翻页的需要,需要区分奇偶页。奇偶页的页边距需要分开设置。奇数页左边距较宽,偶数页左边距较窄。
19 | \usepackage{xeCJK,amsmath,paralist,enumerate,booktabs,multirow,graphicx,subfig,setspace,listings}
20 | %xeCJK:中文字体(如楷体,作者和机构需要用到)的设置
21 | %amsmath:数学公式
22 | %paralist,enumerate:自定义项目符号
23 | %booktabs:三线图,论文常用的表格风格
24 | %multirow:复杂表格
25 | %graphicx,float: 插入图片
26 | %subfig:并排排版图片
27 | %setspace:设置行间距等功能
28 | \setlength{\parindent}{2em}%正文首行缩进两个汉字
29 | %listings:用于排版各种代码;比如matlab的代码
30 | \lstset{language=tex}
31 |
32 | % \setCJKmainfont{FZShuSong-Z01S}[ItalicFont=FZKai-Z03S, BoldFont=FZHei-B01S]
33 | %中文字体设置:使用开源字体方正书宋,方正楷体和方正黑体
34 |
35 | \usepackage{titlesec}
36 | %改变section、subsection里面字体的样式。中文黑体,英文TNR。
37 | \newfontfamily\sectionef{Times New Roman}
38 | % \setCJKfamilyfont{FZHeiTi}{FZHei-B01S}
39 | \setCJKfamilyfont{FZHeiTi}{黑体}
40 | \newcommand{\sectioncf}{\CJKfamily{FZHeiTi}}
41 | \titleformat*{\section}{\large\bfseries\sectioncf\sectionef}
42 | \titleformat*{\subsection}{\normalsize\bfseries\sectioncf\sectionef}
43 |
44 |
45 | \usepackage{fancyhdr}
46 | %fancyhdr:一个很强大的宏包,用于自定义设计页面风格并命名以供调用。
47 |
48 | \usepackage{layout}
49 | % \setlength{\skip\footins}{1cm}%脚注与正文的距离
50 | % % \renewcommand{\footnotesize}{}%设置脚注字体大小
51 | % \renewcommand{\footrulewidth}{0.5pt}%脚注线的宽度
52 | \setlength\columnsep{0.8cm}%设置双栏的间距
53 |
54 |
55 | %%begin----------设置首页和正文不同的页眉页脚----------------%%
56 |
57 | \usepackage{ifthen}%这个宏包提供逻辑判断命令
58 | \newboolean{first}%引入布尔变量
59 | \setboolean{first}{true}%将布尔变量设置为true
60 | \pagestyle{fancy}
61 |
62 | %%% Step1 定义正文的页面风格
63 | %E表示偶数页,O表示奇数页;R、L、C代表文字居右、居左、居中排版
64 | %页码:保证在外侧, 奇数页分布在右边,偶数页分布在左边
65 | %页眉中间的内容也因奇偶页而不同
66 | %实验名称根据实际情况修改
67 | \fancypagestyle{maincontent}{
68 | \fancyhf{} %清空页眉页脚设置
69 | \fancyhead[EL, OR]{\thepage}
70 | \fancyhead[EC]{实验B12 温度测控仪的设计与组装}
71 | \fancyhead[OC]{基\quad 础\quad 物\quad 理\quad 实\quad 验}
72 | \renewcommand\headrulewidth{0pt}
73 | }
74 |
75 | %%% Step2 定义首页的页面风格
76 | %页眉中间的双行文字,大小和字间距需要微调
77 | %左右的内容是年月,可以自己修改寻找自动获取的方法
78 | \usepackage{datetime}
79 | %\shortmonthname可以获取英文月份缩写
80 | \fancypagestyle{firstpage}{
81 | \setboolean{first}{false}%firstpage出现,则将first重置为false
82 | \fancyhf{} %清空页眉页脚设置
83 | \fancyhead[L]{\the\year 年\the\month 月}
84 | \fancyhead[R]{\shortmonthname[\the\month], \the\year}
85 | \fancyhead[C]{
86 | \large{基\quad 础\quad 物\quad 理\quad 实\quad 验}\\
87 | \normalsize{GENERAL PHYSICS LABORATORY}
88 | }
89 | }
90 |
91 | %%% Step3 页眉线的设置:用布尔变量区分首页和正文
92 | \newcommand{\makefirstpageheadrule}{%定义首页页眉线-双线绘制命令
93 | \makebox[0pt][s]{\rule[0.6\baselineskip]{\headwidth}{0.3pt}}
94 | \makebox[0pt][s]{\protect\hspace{-0.34em}\rule[0.75\baselineskip]{\headwidth}{0.3pt}}
95 | \protect\vspace{-20pt}
96 | %\rule[9pt]{\headwidth}{0.3pt}
97 | % \rule[25pt]{\headwidth}{0.3pt}
98 | %\rule[raise-height]{width}{height}
99 | %其中第一个可选参数为将直线抬多高
100 | }
101 |
102 | \newcommand{\makeheadrule}{%定义正文页页眉线绘制命令,单线
103 | \makebox[0pt][l]{\rule[1\baselineskip]{\headwidth}{0.3pt}}
104 | \protect\vspace{-20pt}%页眉和正文的距离
105 | }
106 |
107 | %根据布尔变量first为true或false分别执行不同的页眉线绘制命令
108 | \renewcommand{\headrule}{%重定义headrule命令
109 | \ifthenelse{\boolean{first}}{\makeheadrule}
110 | {\makefirstpageheadrule}
111 | }
112 |
113 |
114 | %%end--------------设置首页和正文不同的页眉页脚-----------%%
115 |
116 |
117 |
118 | %%begin-----------------参考文献-----------------------%%
119 |
120 | \usepackage[colorlinks,linkcolor=blue,urlcolor=blue]{hyperref}%超链接
121 | \usepackage[hyperref=true,backend=biber,bibstyle=gb7714-2015,citestyle=numeric-comp,sorting=none,backref=true]{biblatex}
122 | %hyperref=true和backref=true表示为各个参考文献的引用处、及定理、定义、例子等的引用处都添加上超链接;
123 | %backend=biber:后端处理的程序为biber.exe
124 | %bibstyle:参考文献风格;每个期刊、组织要求不同
125 | %gb7714-2015是目前国内期刊通用的风格,称为gb标准风格
126 | %citestyle:引用风格;每个期刊、组织要求不同
127 | %sorting=none:按照参考文献在论文中出现的先后顺序排序。
128 | %**编译:biblatex与biber命令配合使用。xelatex-biber-xelatex-xelatex
129 | \addbibresource{book.bib}
130 | %这里写上.bib文件的相对地址
131 | %每次实验引用的页数不同,需要手动改变
132 |
133 | %%end-------------------参考文献-----------------------%%
134 |
135 |
136 |
137 |
138 |
139 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
140 | %%%%%%%%%%%%%%%%%%%%%%%%%正文开始%%%%%%%%%%%%%%%%%%%%%%%%%%
141 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
142 |
143 | \begin{document}
144 |
145 |
146 | %%begin-------------------中文摘要-----------------------%%
147 | \title{\LARGE\textbf{实验B12 温度测控仪的设计与组装}\footnotemark[1]}
148 | \author{\large\textit{鸭大学子}$^{1}$\footnotemark[2]
149 | \\ \normalsize{(1 \textit{中山大学 物理学院,广东 广州 }510275)}}
150 | \date{}%不显示日期
151 |
152 | \twocolumn[
153 | %twocolumn: 双栏article下的单栏摘要
154 | \begin{@twocolumnfalse}
155 | \maketitle %标题和作者
156 | \renewcommand{\abstractname} {} %不显示摘要名字
157 | \begin{abstract}
158 | \vspace{-3em}
159 | %vspace:调整垂直空白,可以自己调整;缩小abstract和center(以及maketitle)的间距
160 | %\noindent %备用:摘要无缩进
161 | {\bf 摘{} 要:}
162 | {\small 温度传感器是利用一些金属、半导体等材料与温度相关的特性制成的。温度传感器的类型很多,包括金属电阻温度传感器、热敏电阻温度传感器、热电偶温度传感器、PN结温度传感器、电压型集成电路温度传感器和电流型集成电路温度传感器等等。本实验通过搭建基于电压型集成电路温度传感器的温度测控电路,学习了温度传感器测量和控制温度的基本原理,并测试了搭建的测控电路的有效性。}
163 | \par%空的新行的高度。
164 | \textbf{关键词}:温度传感器; LM35
165 | \vspace{2em}
166 | \end{abstract}
167 | \end{@twocolumnfalse}
168 | ]
169 | \renewcommand{\thefootnote}{\fnsymbol{footnote}}
170 | \footnotetext[1]{由中山大学物理学院陆佑堂提供器材和指导。}
171 | \footnotetext[2]{通信作者,\url{xxx22@mail2.sysu.edu.cn}}
172 | %%end-------------------中文摘要-----------------------%%
173 |
174 |
175 | \thispagestyle{firstpage}%首页页面风格:firstpage
176 | \pagestyle{maincontent}%第二页之后的页面风格:maincontent
177 |
178 |
179 | %%begin----------------层级结构------------------------%%
180 |
181 | %重点1:知道每一个层级的样式和怎么和后面的正文接上
182 | %重点2:掌握各种换段的方法
183 | %重点3:自定义的项目符号(宏包enumerate的用法)
184 |
185 | \section{引 \quad 言}
186 | %%section:第一级,节 ,1
187 | 在大一的实验 A4(温度传感器温度特性的测量)\cite{shenhan2015}中已经了解了多种温度传感器的特性和工作原理,本实验将在此基础上,利用温度传感器,设计并组装数字式温度计和温度控制仪。
188 | %%section后面的正文:自动换段,正常缩进
189 | %%引用参考文献语法\cite{},标识符shenhan2015被称为citekey,可以在book.bib文件中找到,是@后面的一串文字。论文最后的参考文献只会打印行文过程中cite的文献,而不是book.bib文件中的所有文件。
190 | 自然换段有两种方式, 一种是使用命令\lstinline|\par|, 另一种是常用的直接空一行即可.
191 | %%自然换段:\par;相当于空一行,见下面的193行
192 | 80多年来,显示出该实验在工业应用和科学研究中的广泛应用前景。笔者利用大学实验室常用的密立根油滴实验仪重做了密立根油滴实验,并尝试由实验结果验证电荷分布的不连续性,将在本文中详述。\par
193 | 80多年来,显示出该实验在工业应用和科学研究中的广泛应用前景。笔者利用大学实验室常用的密立根油滴实验仪重做了密立根油滴实验,并尝试由实验结果验证电荷分布的不连续性,将在本文中详述。
194 | 80多年来,显示出该实验在工业应用和科学研究中的广泛应用前景。笔者利用大学实验室常用的密立根油滴实验仪重做了密立根油滴实验,并尝试由实验结果验证电荷分布的不连续性,将在本文中详述。
195 |
196 | 80多年来,显示出该实验在工业应用和科学研究中的广泛应用前景。笔者利用大学实验室常用的密立根油滴实验仪重做了密立根油滴实验,并尝试由实验结果验证电荷分布的不连续性,将在本文中详述。
197 |
198 | 下面将换栏!换栏不同于换页。换栏我们使用命令\lstinline|\newpage|, 而换页我们用命令\lstinline|\clearpage|.
199 | \newpage
200 | %换一栏,而不是换一页。换一页用\clearpage
201 |
202 | \section{\LaTeX 中的层级结构}
203 | 在论文写作中, 我们通常用到的\LaTeX 中的层级结构如下, 包括会进入pdf目录的章节结构\lstinline|\section|, \lstinline|\subsection|, \lstinline|\subsubsection|和不会进入目录的段落结构\lstinline|\paragraph|, \lstinline|\subparagraph|.
204 |
205 | \subsection{温度测控仪电路}
206 | %%subsection:第二级,小节,2.1
207 | 基于以上三种温度测控仪,我们相应得也有三种温度测控仪电路。
208 | %%subsection后面的正文:自动换段,正常缩进
209 | \subsubsection{基于 AD590 电流型温度传感器的数显温度测控仪}
210 | %%subsubsection: 第三级,小小节,2.1.1
211 | 这里本来并不需要文字。
212 | %%subsubsection后面的正文:自动换段,正常缩进
213 | \paragraph{A.温度显示原理}
214 | %%paragraph: 大段落,加粗,不缩进
215 | 如果就需要这样的效果,那很好。
216 | \paragraph{B.温度控制原理}但段落后面如果需要换行,就是个棘手的问题。
217 | %%paragraph后面的正文:无论是紧接着}敲还是换了几行,都会空一到两格后直接跟在后面。
218 | \subparagraph{第一步:调零。}小段落后面的正文也是一样,
219 | %%subparagraph:小段落,加粗,正常缩进
220 | \subparagraph{第二步:确定电压灵敏度}
221 | 紧跟着段落标题。
222 | %%subparagraph后面的正文:无论是紧接着}敲还是换了几行,都会空一到两格后直接跟在后面。
223 |
224 |
225 | \subsection{温度传感器}
226 | 本实验涉及三种温度测控仪的组装,分别采用三种不同的温度传感器,包括
227 | %%paragraph后面的换段方法
228 | \paragraph{(1)金属电阻温度传感器}~
229 | % ~是一个控制符号,不会真的输出~,而是空一格。
230 | \newline %换行,强制换行之后需要手动缩进,用命令\indent
231 | \indent 如 PT100 或 Cu50, PT100 即铂金属电阻,在 0℃时的电阻值为 $R_0=100\Omega$; Cu50 即铜金属电阻, 在 0℃时的电阻值为$R_0=50\Omega$。
232 |
233 |
234 | \subsection{实验内容}
235 | 下面的列表用到了自定义的项目符号之(1)(2)(3), 更多的自定义项目符号样式可以见宏包enumerate的说明文档.
236 | %%自定义项目符号之(1)(2)(3), 更多的样式可以见宏包enumerate的说明.
237 | \begin{enumerate}[(1)]
238 | \item 根据图\ref{fig:Diagram_Cu50}搭建电路。
239 | \item 测量数字电压读数与温度之间的对应关系, 作电压与温度关系曲线。
240 | \item 利用组装的温度测控仪电路,将加热阱的温度控制在 75$^{\circ}C$。
241 | \end{enumerate}
242 |
243 | %%end------------------层级结构------------------------%%
244 |
245 | %%begin------------------插入图表------------------------%%
246 |
247 | \section{图片的插图和交叉引用}
248 |
249 | \subsection{测试用设备}
250 |
251 | %%% 1 不跨栏单幅图
252 | % 图片的大小需要细细得调。需要掌握latex里面的长度单位和限制大小方法。
253 | % 图表的交叉引用:\label{}用于打标签,需要放在\caption之下。\ref{}则用于引用。
254 | \paragraph{A.其他设备}~
255 | \newline
256 | \indent 直流稳压电源(如图\ref{fig:powersource}所示)用于提供测控仪电路的±12V电源,数字万用表的直流电压测量功能可用于替代数字电压表,用于指示温度测控仪的当前温度。各仪器使用方法请查阅教材。
257 | \begin{figure}[htbp]
258 | \centering
259 | \includegraphics[width=0.5\textwidth]{img//device_3.png}
260 | %textwidth:正文宽度。双栏,则将两栏正文宽度相加。
261 | \caption{不跨栏单幅图排版}
262 | \label{fig:powersource}
263 | \end{figure}
264 |
265 | %%% 2 跨栏单幅图
266 | % 在figure之右加上*即可。
267 | \begin{figure*}[htbp]
268 | \centering
269 | \includegraphics[width=1\textwidth]{img//Diagram_Cu50.png}
270 | \caption{跨栏单幅图片排版}
271 | \label{fig:Diagram_Cu50}
272 | \end{figure*}
273 |
274 | %%% 3 两幅图并行/竖向排版,各有图题,还有一个总的图题
275 | % (1)两幅子图可以分别给图题, 分别引用, 注意区分子图的label和总的figure环境的label.
276 | % (2)不仅需要调节大小,还需要细细调节位置。通过{minipage}后面的补充参数来调节位置。图片大小最好用高度来调,并保证两个图高度一样。
277 | \paragraph{B.温度控制设备}~
278 | \newline
279 | \indent 图\ref{fig:twosubfigures_horizontal1}为致冷/加热温度控制仪,从左到右分成三个部分,分别为(1)数字电压表(有20V和2V两个量程);(2)加热和致冷功率控制器;(3)温度设置和测量装置风扇用于加快空气流动。图\ref{fig:twosubfigures_horizontal2}的控温阱分为致冷阱和加热阱两种。制冷阱用于0℃至室温范围的实验,加热阱用于室温-100℃范围。
280 |
281 | \begin{figure*}[htbp]
282 | \centering
283 | \subfloat[并行排版图片1]{\label{fig:twosubfigures_horizontal1}
284 | \includegraphics[height=5cm]{img//device_1.png}
285 | }
286 | \subfloat[并行排版图片2]{\label{fig:twosubfigures_horizontal2}
287 | \includegraphics[height=5cm]{img//device_2.png}
288 | }
289 | \caption{跨栏双图并行排版.我们这里选用了两张宽度不同的图片作为示范, 对齐的时候限制两张图片的高度为一样的即可.}
290 | \label{fig:twosubfigures_horizontal}
291 | \end{figure*}
292 |
293 | \begin{figure*}[htbp]
294 | \centering
295 | \subfloat[竖向排版图片1]{\label{fig:twosubfigures_vertical1}
296 | \includegraphics{img//device_1.png}
297 | }
298 |
299 | %这里是竖向排版的关键, 在两个subfloat之间回车空一行就可以.
300 | \subfloat[竖向排版图片2]{\label{fig:twosubfigures_vertical2}
301 | \includegraphics{img//device_2.png}
302 | }
303 | \caption{跨栏双图竖向排版.这里我们取消了对两张图片高度上的限制, 让\LaTeX 自动进行调整.}
304 | \label{fig:twosubfigures_vertical}
305 | \end{figure*}
306 |
307 | \begin{figure*}[htbp]
308 | \centering
309 | \subfloat[四图排版1]{\includegraphics{img//device_2.png}}
310 | \subfloat[四图排版2]{\includegraphics{img//device_2.png}}
311 |
312 | \subfloat[四图排版3]{\includegraphics{img//device_2.png}}
313 | \subfloat[四图排版4]{\includegraphics{img//device_2.png}}
314 | \caption{四幅图的$2\times 2$排版.这其实就是并行排版和竖向排版的杂交版本, 两个subfloat之间不空一行, 就会并行排版; 如果空一行, 就会竖向排版.}
315 | \end{figure*}
316 |
317 |
318 | \section{表格的插图和交叉引用}
319 |
320 | \subsection{数字电压读数与温度的对应关系}
321 | 将测控电路接入加热阱,记录温度传感器温度为$30^{\circ}C到80^{\circ}C$对应的数字电压表示数。分别记录温度上升时和温度下降时的电压值,取平均以降低误差,如表\ref{tab:addlabel}所示。
322 |
323 | %%% 4 不跨栏表格
324 | %所有表格都可以通过Excel2LaTex加载项,在excel中转换成以下一串代码。需要琢磨的是调节一些细节的方法。
325 |
326 | % Table generated by Excel2LaTeX from sheet 'Sheet1'
327 | \begin{table}[htbp]
328 | \centering
329 | \begin{tabular}{cccc}
330 | \toprule
331 | t/$^{\circ}$C & 上升/mV & 下降/mV & 平均$V_0/mV$ \\
332 | \midrule
333 | 30 & 271 & 280 & 275.5 \\
334 | 32.9 & 299 & 313 & 306 \\
335 | 37.8 & 336 & 363 & 349.5 \\
336 | 40.9 & 364 & 396 & 380 \\
337 | 42.7 & 387 & 414 & 400.5 \\
338 | 45 & 414 & 438 & 426 \\
339 | 50 & 460 & 489 & 474.5 \\
340 | 53 & 475 & 518 & 496.5 \\
341 | 55 & 494 & 538 & 516 \\
342 | 58 & 522 & 568 & 545 \\
343 | 60 & 540 & 588 & 564 \\
344 | 63 & 569 & 617 & 593 \\
345 | 65 & 589 & 636 & 612.5 \\
346 | 70 & 639 & 684 & 661.5 \\
347 | 73 & 669 & 711 & 690 \\
348 | 75 & 690 & 729 & 709.5 \\
349 | 78 & 721 & 753 & 737 \\
350 | 80 & 748 & 768 & 758 \\
351 | \bottomrule
352 | \end{tabular}%
353 | \caption{不跨栏表格的排版}
354 | \label{tab:addlabel}%
355 | \end{table}%
356 |
357 | %%% 5 跨栏表格
358 | %手动在table右边加上*即可
359 |
360 | % Table generated by Excel2LaTeX from sheet '打印'
361 | \begin{table*}[htbp]
362 | \centering
363 |
364 | \begin{tabular}{c|ccccc}
365 | \toprule
366 | \multicolumn{1}{c}{} & 油滴序号 & Q/C & Q/e & n & e/C \\
367 | \midrule
368 | \multicolumn{1}{c}{\multirow{5}[2]{*}{静态法}} & 1 & 1.713E-19 & 1.069 & 1 & 1.713E-19 \\
369 | \multicolumn{1}{c}{} & 2 & 5.681E-19 & 3.546 & 4 & 1.420E-19 \\
370 | \multicolumn{1}{c}{} & 3 & 5.710E-19 & 3.564 & 4 & 1.428E-19 \\
371 | \multicolumn{1}{c}{} & 4 & 1.292E-18 & 8.062 & 8 & 1.615E-19 \\
372 | \multicolumn{1}{c}{} & 5 & 9.490E-19 & 5.923 & 6 & 1.582E-19 \\
373 | \midrule
374 | \multicolumn{1}{c}{} & & 平均值: & 1.551E-19 & 相对误差: & 3.169\% \\
375 | \midrule
376 | \multicolumn{1}{c}{\multirow{5}[2]{*}{动态法}} & 6 & 1.253E-18 & 7.821 & 8 & 1.566E-19 \\
377 | \multicolumn{1}{c}{} & 7 & 3.174E-19 & 1.981 & 2 & 1.587E-19 \\
378 | \multicolumn{1}{c}{} & 8 & 1.234E-18 & 7.701 & 8 & 1.542E-19 \\
379 | \multicolumn{1}{c}{} & 9 & 9.402E-19 & 5.868 & 6 & 1.567E-19 \\
380 | \multicolumn{1}{c}{} & 10 & 6.309E-19 & 3.938 & 4 & 1.577E-19 \\
381 | \midrule
382 | \multicolumn{1}{c}{} & & 平均值: & 1.568E-19 & 相对误差: & 2.133\% \\
383 | \multicolumn{2}{c}{整体情况} & 平均值: & 1.560E-19 & 相对误差: & 2.651\% \\
384 | \bottomrule
385 | \end{tabular}%
386 | \caption{跨栏表格的排版}
387 | \end{table*}%
388 |
389 |
390 | %%end--------------------插入图表------------------------%%
391 |
392 |
393 | %%begin------------------插入公式------------------------%%
394 | \clearpage
395 | \section{公式编辑环境}
396 | 下面给出一些公式编辑的相关环境。
397 | \paragraph*{1. equation环境}默认有标号,用于单个公式。
398 | %一般来说都需要标号,不用标号只需要在环境中加上*,见下。
399 | \begin{equation}
400 | \eta^{\prime}=\eta /[1+b /(p a)]
401 | \end{equation}
402 | 如果不用标号,只需在equation后面加上*,
403 | \begin{equation}
404 | \eta^{\prime}=\eta /[1+b /(p a)]
405 | \end{equation}
406 | 这其实相当于直接使用$\backslash[\backslash]$进行公式编辑。
407 | \[e=(1.60217733 \pm 0.00000049) \times 10^{-19} \mathrm{C}\]
408 |
409 | \paragraph*{2. gather环境}默认有自动标号,用于多行公式排版,没有对齐功能。
410 | \begin{gather}
411 | f_r=6\pi a \eta v_g \\
412 | m=4 \pi a^{3} \rho / 3
413 | \end{gather}
414 | 如果不用标号,只需在gather后面加上*。
415 | \begin{gather*}
416 | f_r=6\pi a \eta v_g \\
417 | m=4 \pi a^{3} \rho / 3
418 | \end{gather*}
419 |
420 | \paragraph*{3. align环境和aligned次环境}
421 | \begin{align}
422 | a &= b+c+d \\
423 | x &= y+z
424 | \end{align}
425 | 等价的用法是equation环境加上aligned次环境,
426 | \begin{equation}
427 | \begin{aligned}
428 | a &= b+c+d \\
429 | x &= y+z
430 | \end{aligned}
431 | \end{equation}
432 | 如果不用标号,只需在align后面加上*,
433 | \begin{align*}
434 | a &= b+c+d \\
435 | x &= y+z
436 | \end{align*}
437 | 等价的用法是equation环境加上aligned次环境,在equation后面加上*。
438 | \begin{equation}
439 | \begin{aligned}
440 | a &= b+c+d \\
441 | x &= y+z
442 | \end{aligned}
443 | \end{equation}
444 |
445 | \paragraph*{4. multiline环境}可用于单条长公式排版,换行但不对齐,默认有自动标号,不标号只需加上*。
446 | %不标号的话加上*
447 | \begin{multline}
448 | x = a+b+c+{} \\
449 | d+e+f+g
450 | \end{multline}
451 |
452 | \paragraph*{5. 带有左边大括号的公式}
453 | \[\left\{%\left和\right配合使用,可以得到大小匹配的各种括号
454 | \begin{aligned}
455 | &C_{1} \cdot \frac{d U_{C_{1}}}{d t}=\frac{1}{R_{1}} \cdot(u_{C_{2}}-u_{C_{1}})-f(u_{R_{N}}) \\
456 | &C_{2} \cdot \frac{d U_{C_{2}}}{d t}=i_{L}-\frac{1}{R_{1}} \cdot(u_{C_{2}}-u_{C_{1}}) \\
457 | &L \cdot \frac{d i_{L}}{d t}=-U_{C_{2}}
458 | \end{aligned}
459 | \right.
460 | \]
461 | %%end--------------------插入公式------------------------%%
462 |
463 | \section{结~~~论}
464 | 结论是论文的最后一部分.
465 | \printbibliography[title=参考文献]%打印参考文献
466 | %title:默认是英文的reference,用这个选参数改成中文
467 |
468 |
469 |
470 | %%begin------------------英文摘要------------------------%%
471 |
472 | \twocolumn[
473 | \begin{@twocolumnfalse}
474 | \renewcommand{\abstractname} {} %不显示摘要名字
475 | \begin{center}%
476 | {\LARGE\bfseries Experiment B12: The Design and Assembling of Temperature Sensor\footnotemark[1] \par}%
477 | \vskip 1.4em%
478 | {\large
479 | \lineskip .75em%
480 | \begin{tabular}[t]{c}%
481 | \large Fohong Wang$^{1}$
482 | \end{tabular}\footnotemark[2] \par
483 | }%
484 | \vskip 0.4em%
485 | {\normalsize 1 School of Physics, Sun Yat-sen University, Guangzhou { \rm 510275}, China}
486 | \end{center}
487 | \begin{abstract}
488 | \vspace{-2em} %缩小abstract和center(以及maketitle)的间距
489 | {\bf Abstract:}
490 | {\small The temperature sensor is made of some metal, semiconductor and other materials with temperature-related characteristics. There are many types of temperature sensors, including metal resistance temperature sentors, thermistor temperature sensors, voltage-type integrated circuit temperature sensors and current-type integrated circuit temperature sensors. In this experiment, by building a temperature measurement and control circuit based on a voltage-type integrated circuit temperature sensor, the basic principles of temperature sensor measurement and control were learned, and the effectiveness of the measurement and control circuit was tested.}
491 | \par%空的新行的高度。
492 | \textbf{Key words}:Temperature sensor, LM35
493 | \end{abstract}
494 | \end{@twocolumnfalse}
495 | ]
496 | \footnotetext[1]{{Supported and taught by Luyoutang, School of Physics, Sun Yat-sen University}}
497 | \footnotetext[2]{{Corresponding author. E-mail:\url{xxx22@mail2.sysu.edu.cn}}}
498 | %%end--------------------英文摘要------------------------%%
499 |
500 | \end{document}
501 |
--------------------------------------------------------------------------------
/reportmodel/img/1.eps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/reportmodel/img/1.eps
--------------------------------------------------------------------------------
/reportmodel/img/2.eps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/reportmodel/img/2.eps
--------------------------------------------------------------------------------
/reportmodel/img/2_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/reportmodel/img/2_2.png
--------------------------------------------------------------------------------
/reportmodel/img/3.eps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/reportmodel/img/3.eps
--------------------------------------------------------------------------------
/reportmodel/img/3_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/reportmodel/img/3_1.png
--------------------------------------------------------------------------------
/reportmodel/img/3_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/reportmodel/img/3_2.png
--------------------------------------------------------------------------------
/reportmodel/img/h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/reportmodel/img/h.png
--------------------------------------------------------------------------------
/reportmodel/img/v.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/reportmodel/img/v.png
--------------------------------------------------------------------------------
/reportmodel/reportmodel.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangfh5/sysu-sop-latexmodel/bbb8d225669e2785030571e327c93397a7f1351d/reportmodel/reportmodel.pdf
--------------------------------------------------------------------------------
/reportmodel/reportmodel.tex:
--------------------------------------------------------------------------------
1 | %%中山大学物理学院-基础物理实验-完整实验报告模板1.2
2 | %%完成整理日期:2020/2/18
3 | %%更新时间:2021/1/22
4 | %%中山大学物理学院18级 王佛泓
5 | %%平台:win10, Texlive 2019
6 | %%编译方式:xelatex
7 |
8 |
9 | %---------------------导言区---------------------------%
10 | \documentclass[12pt,a4paper,UTF8]{ctexart}
11 | %10pt:正文字体为12pt,缺省为10pt;各层级字体大小会根据正文字体自动调整
12 | %a4paper:纸张大小a4;
13 | %UTF8:中文要求
14 | \usepackage{geometry}%用于设置上下左右页边距
15 | \geometry{left=2.5cm,right=2.5cm,top=3.2cm,bottom=2.8cm}
16 | \usepackage{xeCJK,amsmath,paralist,enumerate,booktabs,multirow,graphicx,subfig,setspace,listings,lastpage,hyperref}
17 | %xeCJK:中文字体(如楷体,作者和机构需要用到)的设置
18 | %amsmath:数学公式
19 | %paralist,enumerate:自定义项目符号
20 | %booktabs:三线图,论文常用的表格风格
21 | %multirow:复杂表格
22 | %graphicx,float: 插入图片
23 | %subfig:并排排版图片、竖向排版图片
24 | %setspace:设置行间距等功能
25 | \setlength{\parindent}{2em}%正文首行缩进两个汉字
26 | %listings:用于排版各种代码;比如matlab的代码
27 | \lstset{language=Matlab}%matlab代码
28 | %lastpage:获取总页数;
29 | %hyperref:超链接,和lastpage搭配.
30 | \usepackage{fancyhdr}
31 | %fancyhdr:一个很强大的宏包,用于自定义设计页面风格并命名以供调用。
32 | \pagestyle{fancy}
33 | \rhead{实验B16 基于vLight的光学仿真基础实验}
34 | \lhead{基础物理实验\uppercase\expandafter{\romannumeral2}实验报告}
35 | \cfoot{Page \thepage/\pageref{LastPage}} %当前页\总页数
36 | \rfoot{\today}
37 | %分别是右页眉、左页眉、中页脚、右页脚
38 | \renewcommand{\headrulewidth}{0.4pt}
39 | \renewcommand{\theenumi}{(\arabic{enumi})}
40 |
41 | % \setCJKmainfont{FZShuSong-Z01S}[ItalicFont=FZKai-Z03S, BoldFont=FZHei-B01S]
42 | %中文字体设置:使用开源字体方正书宋,方正楷体和方正黑体
43 |
44 |
45 |
46 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
47 | %%%%%%%%%%%%%%%%%%%%%%%%%正文开始%%%%%%%%%%%%%%%%%%%%%%%%%%
48 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
49 |
50 | \begin{document}
51 |
52 | %%begin-------------------标题与信息-----------------------%%
53 |
54 | %%标题
55 | \begin{center}
56 | \LARGE\textbf{实验B16 基于vLight的光学仿真基础实验}
57 | \end{center}
58 |
59 | %%信息
60 | \begin{doublespacing}
61 | %doublespacing:手动两倍行距
62 | \centering
63 | \begin{tabular}{lr}
64 | & \\
65 | {实验人姓名、学号:鸭大学子~20200202} & {合作者姓名、学号:鸭大学生~20200218}\\
66 | {实验时间:2019年10月17日~星期四~上午} & {室温:26$^{\circ}$C~相对湿度:59\%}
67 | % {\CJKfontspec{方正楷体简体} 实验人姓名、学号:鸭大学子~20200202} & {\CJKfontspec{方正楷体简体}合作者姓名、学号:鸭大学生~20200218}\\
68 | % {\CJKfontspec{方正楷体简体} 实验时间:2019年10月17日~星期四~上午} & {\CJKfontspec{方正楷体简体} 室温:26$^{\circ}$C~相对湿度:59\%}
69 | \end{tabular}
70 | \end{doublespacing}
71 |
72 | %%end-------------------标题与信息-----------------------%%
73 |
74 |
75 | \subsection*{【实验目的】}
76 | %*表示不带上小节本身应有的1.1,下面的subsubsection*也是一样
77 | %%自定义项目符号之(1)(2)(3)
78 | \begin{enumerate}[(1)]
79 | \item 学习光学仿真软件vLight的基本使用方法
80 | \item 仿真夫琅和费衍射和菲涅尔衍射
81 | \item 验证半波带理论对处理菲涅尔衍射的有效性
82 | \item 仿真圆屏衍射
83 | \end{enumerate}
84 |
85 | \subsection*{【仪器用具】}
86 |
87 | %%一般表格
88 | %所有表格都可以通过Excel2LaTex加载项,在excel中转换成以下一串代码。需要琢磨的是调节一些细节的方法。
89 |
90 | % Table generated by Excel2LaTeX from sheet 'Sheet1'
91 | \begin{table}[htbp]
92 | \centering
93 | \begin{tabular}{cccp{20em}}
94 | \toprule
95 | 编号 & 仪器用具名称 & 数量 & 主要参数(型号,测量范围,测量精度等) \\
96 | \midrule
97 | 1 & 实验测控用计算机 & 1 & \\
98 | \bottomrule
99 | \end{tabular}%
100 | \label{tab:device}%
101 | \end{table}%
102 |
103 | \subsection*{【实验原理】}
104 |
105 | \subsubsection*{1.vLight 光学系统虚拟仿真实验平台简介}
106 | %% 自然换段:\par,或者直接空一行,见107行和109行。
107 | vLight 光学系统虚拟仿真实验平台是由中山大学物理学院,中国科学院软件所和国防科技大学光电科学与工程学院共同研发。\par
108 | vLight基于物理原理的数字化仿真方法,通过对光源物理特征、干涉、 衍射、偏振等方面进行虚拟仿真实验的研究,从物理、数学层面进行可视化仿真,为光学系统的建模和仿真提供了极大的准确性和灵活性。
109 |
110 | vLight 提供 7 大类、 72 个成熟的光学模型,涵盖光源、光束传输、器件等多个种类,满足不同教学场景的仿真模拟需要;内置的应用实例库囊括了光学基础教学的大部分内容,包含几何光学、波动光学(衍射)、波动光学(干涉)、光的偏振、信息光学、常用光学仪器等7大类共52个应用实例。
111 |
112 | 依托云计算、并行计算等流行技术,为vLight虚拟仿真实验构建了稳定、高效的云服务平台,用户不需要下载任何插件,打开浏览器即可使用。
113 |
114 |
115 | \subsubsection*{2.夫琅禾费单缝衍射}
116 | %% paragraph后换段
117 | %paragraph后面的正文:无论是紧接着}敲还是换了几行,都会空一到两格后直接跟在后面。
118 | \paragraph{(1)如果不采用下面的方法}
119 | 那么这段文字将会直接接到上面的加粗体之后。
120 | \paragraph{(2)点光源的夫琅禾费衍射}~
121 | % ~是一个控制符号,不会真的输出~,而是空一格。相应的,想要输出这个符号,就需要转义为\~。
122 | \newline %换行,强制换行之后相当于一个段落内的换行,需要用命令\indent手动缩进
123 | \indent 用点光源做夫琅禾费衍射实验时,需要借助两个透镜。
124 |
125 |
126 | \subsection*{【实验内容及步骤】}
127 |
128 | \subsubsection*{1.模拟夫琅禾费单缝衍射}
129 | \begin{enumerate}[(1)]
130 | \item 两人合作实验时仿真工程取名样式“姓名+姓名 单缝衍射”。
131 | \item 按照图6连接好光路,更改相关参数调出衍射条纹,并且保存数据为mat文件。
132 | \item 探究问题:主极大明条纹间距$\Delta x$和狭缝与光屏间距Z是否成线性关系。
133 | \item 分别取狭缝与光屏间距Z为90、95、100、105、110、115、120、125,用鼠标在“图像显示”中选取两个极暗点的坐标,读出此时的主极大条纹间距$\Delta x$并记录。
134 | \item 将导出的mat文件在MATLAB软件中进行图像绘制。
135 | \end{enumerate}
136 |
137 |
138 | \subsection*{【数据处理及分析】}
139 | \subsubsection*{1. 模拟夫琅禾费单缝衍射}
140 | 根据B10中的数据,取狭缝宽度a=0.247mm,所用光波长632.8nm,狭缝与光屏距离Z为90cm。
141 | 将获取的mat文件在MATLAB中作图,源代码附在实验报告最后。
142 |
143 | \paragraph{(1)求有机玻璃的导热系数$\lambda$和比热容c}
144 |
145 | %%超大表格的缩放:在一些实验中会用到这种超大的表格,直接编译会造成表格出了页面,或者挤占了右侧页边距。
146 | %把tabular环境中的表格放在一个可以重新规定尺寸的box之中,再利用resizebox的可选参数进行调整
147 |
148 | \begin{table}[htbp]
149 | \centering
150 | \caption{有机玻璃实验结果}
151 | \vspace{1em}
152 | \resizebox{\textwidth}{60mm}{ %第一个大括号为宽度,第二个大括号为高度(60mm)可随机设置,调整到适合该表格的大小为止
153 | \begin{tabular}{ccccccc}
154 | \toprule
155 | 时间$\tau/s$ & 温差热电势$V_t/mV$ & 中心面热电势$V_c/mV$ & 温度差$\Delta t/^{\circ}$C & 中心面温度$t_c^{\circ}$C & $\Delta V/mV$ & $a\tau/R^2$ \\
156 | \midrule
157 | 60 & 0.051 & 0.018 & 1.275 & 20.45 & & 0.0576 \\
158 | 120 & 0.109 & 0.023 & 2.725 & 20.575 & 0.005 & 0.1152 \\
159 | 180 & 0.142 & 0.036 & 3.55 & 20.9 & 0.013 & 0.1728 \\
160 | 240 & 0.162 & 0.053 & 4.05 & 21.325 & 0.017 & 0.2304 \\
161 | 300 & 0.173 & 0.073 & 4.325 & 21.825 & 0.02 & 0.288 \\
162 | 360 & 0.18 & 0.095 & 4.5 & 22.375 & 0.022 & 0.3456 \\
163 | 420 & 0.185 & 0.118 & 4.625 & 22.95 & 0.023 & 0.4032 \\
164 | 480 & 0.188 & 0.141 & 4.7 & 23.525 & 0.023 & 0.4608 \\
165 | \midrule
166 | 540 & 0.191 & 0.165 & 4.775 & 24.125 & 0.024 & 0.5184 \\
167 | 600 & 0.193 & 0.188 & 4.825 & 24.7 & 0.023 & 0.576 \\
168 | 660 & 0.195 & 0.211 & 4.875 & 25.275 & 0.023 & 0.6336 \\
169 | 720 & 0.196 & 0.235 & 4.9 & 25.875 & 0.024 & 0.6912 \\
170 | 780 & 0.197 & 0.258 & 4.925 & 26.45 & 0.023 & 0.7488 \\
171 | 840 & 0.198 & 0.282 & 4.95 & 27.05 & 0.024 & 0.8064 \\
172 | 900 & 0.199 & 0.305 & 4.975 & 27.625 & 0.023 & 0.864 \\
173 | 960 & 0.2 & 0.329 & 5 & 28.225 & 0.024 & 0.9216 \\
174 | 1020 & 0.2 & 0.352 & 5 & 28.8 & 0.023 & 0.9792 \\
175 | 1080 & 0.201 & 0.375 & 5.025 & 29.375 & 0.023 & 1.0368 \\
176 | 1140 & 0.201 & 0.398 & 5.025 & 29.95 & 0.023 & 1.0944 \\
177 | 1200 & 0.202 & 0.42 & 5.05 & 30.5 & 0.022 & 1.152 \\
178 | 1260 & 0.203 & 0.443 & 5.075 & 31.075 & 0.023 & 1.2096 \\
179 | 1320 & 0.203 & 0.466 & 5.075 & 31.65 & 0.023 & 1.2672 \\
180 | 1380 & 0.203 & 0.488 & 5.075 & 32.2 & 0.022 & 1.3248 \\
181 | 1440 & 0.204 & 0.51 & 5.1 & 32.75 & 0.022 & 1.3824 \\
182 | 1500 & 0.204 & 0.532 & 5.1 & 33.3 & 0.022 & 1.44 \\
183 | \bottomrule
184 | \end{tabular}}%注意这里还有一个半括号
185 | \label{tab:data}%
186 | \end{table}
187 |
188 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
189 | %%%%%%%%%%%%%%%%%图片的插入%%%%%%%%%%%%%%%%%%%%
190 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
191 |
192 | %% 单幅图插入
193 | % 图片的大小需要细细得调。需要掌握latex里面的长度单位和限制大小方法。
194 | \begin{figure}[htbp]
195 | \centering
196 | \includegraphics{img//2_2.png}
197 | \caption{激光的菲涅尔衍射实验}
198 | \end{figure}
199 |
200 | %% 两幅图并行排版,各有图题,还有一个总的图题
201 | % (1)注意正文中引用图片的方法,label可以打在minipage前面,也可以打在总图题的后面。
202 | % (2)需要调节图片大小,也可以调节位置。通过{minipage}后面的补充参数来调节位置。图片大小可以用高度来调以保证两个图高度一样。
203 | \begin{figure}[htbp]
204 | \centering
205 | \subfloat[不加$\lambda/4$波片]{\label{fig:nogamma4}
206 | \includegraphics[width=0.4\textwidth]{img/3_1.png}%调节这里的图片宽度
207 | }%
208 | \subfloat[加$\lambda/4$波片]{\label{fig:withgamma4}
209 | \includegraphics[width=0.4\textwidth]{img/3_2.png}%调节这里的图片宽度
210 | }%
211 | \caption{两幅图并行排版,各有图题,还有一个总的图题}
212 | \label{fig:tcvi}
213 | \end{figure}
214 |
215 | %% 两幅图竖向排版,各有图题,还有一个总的图题
216 | % 和横向并行排版相比,关键是在两个subfigure之间空了一行!
217 | \begin{figure}
218 | \centering
219 | \subfloat[纵向调制]{
220 | \includegraphics[width=0.6\textwidth]{img/v.png}%调节这里的图片宽度
221 | }
222 |
223 | \subfloat[横向调制]{
224 | \includegraphics[width=0.6\textwidth]{img/h.png}%调节这里的图片宽度
225 | }
226 | \caption{两幅图竖向排版,各有图题,还有一个总的图题} \label{fig:pkkeorsihe}
227 | \end{figure}
228 | %% 四幅图的2×2排版
229 | \begin{figure*}[htbp]
230 | \centering
231 | \subfloat[四图排版1]{\includegraphics[width=0.4\textwidth]{img//3_1.png}}
232 | \subfloat[四图排版2]{\includegraphics[width=0.4\textwidth]{img//3_1.png}}
233 |
234 | \subfloat[四图排版3]{\includegraphics[width=0.4\textwidth]{img//3_1.png}}
235 | \subfloat[四图排版4]{\includegraphics[width=0.4\textwidth]{img//3_1.png}}
236 | \caption{四幅图的$2\times 2$排版.这其实就是并行排版和竖向排版的杂交版本, 两个subfloat之间不空一行, 就会并行排版; 如果空一行, 就会竖向排版.}
237 | \end{figure*}
238 | %% 三幅图并行排版, 各有图题, 没有总图题
239 | %重点:关键是给三幅图设定宽度,比如说如果希望三幅图占据等量的宽度,就可以调整每个minipage的宽度为0.3的\textwidth
240 | \begin{figure}[htbp]
241 | \centering
242 | \begin{minipage}{0.3\textwidth}
243 | \centering
244 | \includegraphics[height=5cm]{img//1.eps}
245 | \caption{交流电桥平衡条件}
246 | \end{minipage}
247 | \hfill
248 | \begin{minipage}{0.3\textwidth}
249 | \centering
250 | \includegraphics[height=5cm]{img//2.eps}
251 | \caption{电容电桥}
252 | \end{minipage}
253 | \hfill
254 | \begin{minipage}{0.3\textwidth}
255 | \centering
256 | \includegraphics[height=5cm]{img//3.eps}
257 | \caption{麦克斯威尔-维恩电桥}
258 | \end{minipage}
259 | \end{figure}
260 |
261 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
262 | %%%%%%%%%%%%%%%插入公式%%%%%%%%%%%%%%%%%
263 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
264 | \newpage
265 | \paragraph*{公式的插入}
266 | \paragraph*{1. equation环境}默认有标号,用于单个公式。
267 | %一般来说都需要标号,不用标号只需要在环境中加上*,见下。
268 | \begin{equation}
269 | \eta^{\prime}=\eta /[1+b /(p a)]
270 | \end{equation}
271 | 如果不用标号,只需在equation后面加上*,
272 | \begin{equation}
273 | \eta^{\prime}=\eta /[1+b /(p a)]
274 | \end{equation}
275 | 这其实相当于直接使用$\backslash[\backslash]$进行公式编辑。
276 | \[e=(1.60217733 \pm 0.00000049) \times 10^{-19} \mathrm{C}\]
277 |
278 | \paragraph*{2. gather环境}默认有自动标号,用于多行公式排版,没有对齐功能。
279 | \begin{gather}
280 | f_r=6\pi a \eta v_g \\
281 | m=4 \pi a^{3} \rho / 3
282 | \end{gather}
283 | 如果不用标号,只需在gather后面加上*。
284 | \begin{gather*}
285 | f_r=6\pi a \eta v_g \\
286 | m=4 \pi a^{3} \rho / 3
287 | \end{gather*}
288 |
289 | \paragraph*{3. align环境和aligned次环境}
290 | \begin{align}
291 | a &= b+c+d \\
292 | x &= y+z
293 | \end{align}
294 | 等价的用法是equation环境加上aligned次环境,
295 | \begin{equation}
296 | \begin{aligned}
297 | a &= b+c+d \\
298 | x &= y+z
299 | \end{aligned}
300 | \end{equation}
301 | 如果不用标号,只需在align后面加上*,
302 | \begin{align*}
303 | a &= b+c+d \\
304 | x &= y+z
305 | \end{align*}
306 | 等价的用法是equation环境加上aligned次环境,在equation后面加上*。
307 | \begin{equation}
308 | \begin{aligned}
309 | a &= b+c+d \\
310 | x &= y+z
311 | \end{aligned}
312 | \end{equation}
313 |
314 | \paragraph*{4. multiline环境}可用于单条长公式排版,换行但不对齐,默认有自动标号,不标号只需加上*。
315 | %不标号的话加上*
316 | \begin{multline}
317 | x = a+b+c+{} \\
318 | d+e+f+g
319 | \end{multline}
320 |
321 | \paragraph*{5. 带有左边大括号的公式}
322 | \[\left\{%\left和\right配合使用,可以得到大小匹配的各种括号
323 | \begin{aligned}
324 | &C_{1} \cdot \frac{d U_{C_{1}}}{d t}=\frac{1}{R_{1}} \cdot(u_{C_{2}}-u_{C_{1}})-f(u_{R_{N}}) \\
325 | &C_{2} \cdot \frac{d U_{C_{2}}}{d t}=i_{L}-\frac{1}{R_{1}} \cdot(u_{C_{2}}-u_{C_{1}}) \\
326 | &L \cdot \frac{d i_{L}}{d t}=-U_{C_{2}}
327 | \end{aligned}
328 | \right.
329 | \]
330 |
331 |
332 |
333 | \subsection*{【思考题】}
334 |
335 | \subsubsection*{1.样品导热系数的大小和温度有什么关系?}
336 | 答:关系如下:
337 | \begin{enumerate}[(1)]
338 | \item 一般固体样品导热系数与温度成线性变化,关系式为$\lambda=\lambda_0(1+\alpha t)$。$\lambda_0$是0$^{\circ}$C时固体样品的导热系数,也就是说,温度升高,导热系数变大。
339 | \item 少数固体和气体液体也遵循温度越高,系数越大,但呈非线性关系。
340 | \end{enumerate}
341 |
342 | \subsubsection*{2. 样品导热系数的大小与导热性能有什么关系?}
343 | 答:导热系数的定义————在稳定传热条件下,单位温度梯度下单位时间内由单位面积传递单位厚度的热量。从以上定义可以看出,导热系数越大,反映了在材料内部传热越快,即材料本身的导热性能越好。
344 |
345 |
346 | \newpage %换页
347 | \subsection*{附:MATLAB中导入mat文件数据和绘制彩色强度图像和相对光强分布曲线的完整代码:}
348 |
349 | %% 代码环境使用
350 | \begin{lstlisting}
351 | load('C:\Users\Administrator\Desktop\第1次迭代.mat')
352 | Intensity = Mod.^2;
353 | imagesc(Intensity);axis equal;
354 | [M,~] = size(Intensity);
355 | I_X = Intensity(M/2,:);
356 | X =-M/2:1:M/2-1;
357 | X = X.*ScaleATM;
358 | plot(X,I_X);
359 | \end{lstlisting}
360 |
361 |
362 | \end{document}
363 |
--------------------------------------------------------------------------------