├── .gitignore ├── LICENSE ├── README.md ├── figures ├── JimMorhard.jpeg └── Nimbus2001.jpg ├── logo ├── bupt-logo.pdf ├── bupt-text-logo.pdf ├── cqu-logo.pdf ├── hogwarts-logo.png ├── nju-logo.pdf ├── nju-text-logo.pdf ├── nuaa-logo.pdf ├── nuaa-text-logo.pdf ├── pku-logo.pdf ├── pku-text-logo.pdf ├── seu-color-logo.jpg ├── seu-logo.jpg ├── seu-text-logo.pdf ├── sjtu-logo.pdf ├── sjtu-text-logo.pdf ├── sjtu-whole-logo.pdf ├── thu-logo.pdf ├── thu-text-logo.pdf ├── thu-whole-logo.pdf ├── ucas-logo.pdf ├── uestc-logo.pdf ├── ustc-logo.pdf ├── ustc-text-logo.pdf ├── whu-logo.png ├── zju-logo.pdf └── zju-text-logo.pdf ├── random.cpp └── sample.tex /.gitignore: -------------------------------------------------------------------------------- 1 | *.aux 2 | *.lof 3 | *.log 4 | *.lot 5 | *.fls 6 | *.out 7 | *.toc 8 | *.fmt 9 | *.fot 10 | *.cb 11 | *.cb2 12 | .*.lb 13 | 14 | *.dvi 15 | *.xdv 16 | *-converted-to.* 17 | 18 | *.pdf 19 | 20 | *.bbl 21 | *.bcf 22 | *.blg 23 | *-blx.aux 24 | *-blx.bib 25 | *.run.xml 26 | 27 | *.fdb_latexmk 28 | *.synctex 29 | *.synctex(busy) 30 | *.synctex.gz 31 | *.synctex.gz(busy) 32 | *.pdfsync -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 NN708 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 简单实验报告模版 Simple Lab Report 2 | 3 | 一个最简单的 LaTeX 实验报告模版。 4 | 5 | A LaTeX template to create simple lab reports. 6 | 7 | ## 示例 8 | 9 | ![sample.pdf](https://user-images.githubusercontent.com/20534082/77845396-393b7680-71e1-11ea-8b9b-62d19a10021f.png) 10 | 11 | 完整的示例输出请见 [sample.pdf](https://github.com/NN708/SimpleLabReport/releases/download/v1.0/sample.pdf)。 12 | 13 | ## 快速上手 14 | 15 | ### 配置环境 16 | 17 | 推荐使用以下配置: 18 | 19 | 1. 安装一个 TeX 发行版,如 [TeX Live](http://tug.org/texlive/); 20 | 21 | > 如果你使用 macOS,你也可以选择安装 [MacTeX](http://tug.org/mactex/)。 22 | 23 | 2. 安装 [Visual Studio Code](https://code.visualstudio.com) 作为编辑器; 24 | 25 | 3. 在 Visual Studio Code 中安装 [LaTeX Workshop](https://github.com/James-Yu/LaTeX-Workshop) 扩展程序。 26 | 27 | ### 下载并编译 28 | 29 | 1. 下载[最新版本](https://github.com/NN708/SimpleLabReport/releases/latest)的源代码,或者使用 [Git](https://git-scm.com) 克隆本仓库: 30 | 31 | ``` 32 | git clone https://github.com/NN708/SimpleLabReport.git 33 | ``` 34 | 35 | 2. 使用 `xelatex` 编译 `sample.tex`; 36 | 37 | > 如果你使用 LaTeX Workshop,在 Visual Studio Code 中打开 `sample.tex`,按 `Ctrl` + `Alt` + `B`(macOS 请使用 `Command` + `Option` + `B`)即可编译。 38 | 39 | 3. 随意修改 `sample.tex`,完成你自己的实验报告(你可以参考 `sample.tex` 中的相关注释)。 40 | 41 | ## 许可证 42 | 43 | 使用 [MIT](https://opensource.org/licenses/MIT) 许可证。 44 | 45 | --- 46 | 47 | 特别感谢 [@Sciroccogti](https://github.com/Sciroccogti) 和 [@ZhaosidedidiZhaoliu](https://github.com/ZhaosidedidiZhaoliu) 在编写过程中给予的帮助。 -------------------------------------------------------------------------------- /figures/JimMorhard.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/figures/JimMorhard.jpeg -------------------------------------------------------------------------------- /figures/Nimbus2001.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/figures/Nimbus2001.jpg -------------------------------------------------------------------------------- /logo/bupt-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/bupt-logo.pdf -------------------------------------------------------------------------------- /logo/bupt-text-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/bupt-text-logo.pdf -------------------------------------------------------------------------------- /logo/cqu-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/cqu-logo.pdf -------------------------------------------------------------------------------- /logo/hogwarts-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/hogwarts-logo.png -------------------------------------------------------------------------------- /logo/nju-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/nju-logo.pdf -------------------------------------------------------------------------------- /logo/nju-text-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/nju-text-logo.pdf -------------------------------------------------------------------------------- /logo/nuaa-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/nuaa-logo.pdf -------------------------------------------------------------------------------- /logo/nuaa-text-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/nuaa-text-logo.pdf -------------------------------------------------------------------------------- /logo/pku-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/pku-logo.pdf -------------------------------------------------------------------------------- /logo/pku-text-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/pku-text-logo.pdf -------------------------------------------------------------------------------- /logo/seu-color-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/seu-color-logo.jpg -------------------------------------------------------------------------------- /logo/seu-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/seu-logo.jpg -------------------------------------------------------------------------------- /logo/seu-text-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/seu-text-logo.pdf -------------------------------------------------------------------------------- /logo/sjtu-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/sjtu-logo.pdf -------------------------------------------------------------------------------- /logo/sjtu-text-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/sjtu-text-logo.pdf -------------------------------------------------------------------------------- /logo/sjtu-whole-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/sjtu-whole-logo.pdf -------------------------------------------------------------------------------- /logo/thu-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/thu-logo.pdf -------------------------------------------------------------------------------- /logo/thu-text-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/thu-text-logo.pdf -------------------------------------------------------------------------------- /logo/thu-whole-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/thu-whole-logo.pdf -------------------------------------------------------------------------------- /logo/ucas-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/ucas-logo.pdf -------------------------------------------------------------------------------- /logo/uestc-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/uestc-logo.pdf -------------------------------------------------------------------------------- /logo/ustc-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/ustc-logo.pdf -------------------------------------------------------------------------------- /logo/ustc-text-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/ustc-text-logo.pdf -------------------------------------------------------------------------------- /logo/whu-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/whu-logo.png -------------------------------------------------------------------------------- /logo/zju-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/zju-logo.pdf -------------------------------------------------------------------------------- /logo/zju-text-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NN708/SimpleLabReport/9143b9c3e1f220232d07d6d8eebfb4b6a7a1eee6/logo/zju-text-logo.pdf -------------------------------------------------------------------------------- /random.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | using namespace std; 5 | int main() 6 | { 7 | srand((unsigned)time(NULL)); // use current time as seed 8 | cout << "Result: " << rand() % 4 + 1 << endl; 9 | return 0; 10 | } -------------------------------------------------------------------------------- /sample.tex: -------------------------------------------------------------------------------- 1 | %!TEX program=xelatex 2 | 3 | \documentclass[12pt,a4paper,UTF8]{article} 4 | \usepackage[fontset=fandol]{ctex} % Chinese support, using Fandol fonts 5 | \usepackage{graphicx} % Insert images 6 | \usepackage{listings} % Print source code 7 | \usepackage{color} % Color support 8 | \usepackage{booktabs} % Professional table support 9 | \usepackage{pdflscape} % Landscape pages support in PDF 10 | \usepackage{hyperref} % Hypertext links support for cross-referencing 11 | 12 | % Customize hyperref format (it's set to no special format here) 13 | \hypersetup{hidelinks} 14 | 15 | % Declare directories to search for graphics files for graphicx 16 | \graphicspath{{figures/}{logo/}} 17 | 18 | % Define source code style for listings 19 | \lstdefinestyle{cpp-style}{ 20 | language=C++, 21 | basicstyle=\ttfamily\footnotesize, 22 | keywordstyle=\bfseries\color[rgb]{0, 0, 1}, 23 | identifierstyle=\color[rgb]{0.5, 0.3, 0.1}, 24 | stringstyle=\color[rgb]{0.6, 0.1, 0.1}, 25 | commentstyle=\itshape\color[rgb]{0.05, 0.5, 0.05}, 26 | backgroundcolor=\color[gray]{0.95}, 27 | numbers=left, 28 | numbersep=5pt, 29 | numberstyle=\color[gray]{0.6}, 30 | breaklines=true 31 | } 32 | 33 | % Define new command for title page 34 | \newcommand{\reporttitle}[2]{ 35 | \LARGE\textsf{#1}\quad\underline{\makebox[12em]{#2}} 36 | } 37 | \newcommand{\reportinfo}[2]{ 38 | \large\makebox[4em]{\textsf{#1}}\quad\underline{\makebox[18em]{#2}} 39 | } 40 | 41 | % The document begins here 42 | \begin{document} 43 | \begin{titlepage} 44 | \centering 45 | \vspace*{\fill} 46 | \includegraphics[height=144pt]{hogwarts-logo}\\[48pt] % Change the school logo here (See the logo/ directory) and adjust the height 47 | {\huge\textsf{课\ 程\ 实\ 验\ 报\ 告}}\\[48pt] 48 | \reporttitle{实验名称}{立扫帚实验}\\[72pt] 49 | 50 | \reportinfo{课程名称}{麻瓜研究}\\[8pt] 51 | \reportinfo{院\hspace{\fill}系}{格兰芬多学院}\\[10pt] 52 | \reportinfo{学\hspace{\fill}号}{20171005}\\[8pt] 53 | \reportinfo{学生姓名}{詹姆·小天狼星·波特}\\[8pt] 54 | \reportinfo{指导教师}{赫敏·格兰杰}\\[8pt] 55 | \reportinfo{实验日期}{2020年3月}\\ 56 | \vspace*{\fill} 57 | \end{titlepage} 58 | 59 | \tableofcontents 60 | \newpage 61 | 62 | \section{实验目的} 63 | \begin{enumerate} 64 | \item 学会寻找扫帚的重心,培养学生的耐心; 65 | \item 验证基本物理定律在霍格沃茨的有效性。 66 | \end{enumerate} 67 | 68 | \section{实验内容} 69 | 一些麻瓜称,根据 NASA 的测算,由于天体运行导致地球的磁场和重力场发生变化,只有在2月10日当天扫帚才可以立起来。 70 | 次日,NASA 副局长 Jim Morhard 回应称上述说法不实,基本物理定律每天都有效,并演示了这个实验,如图 \ref{JimMorhard} 所示。 71 | 72 | % Insert an image, with placement specifier htbp 73 | \begin{figure}[htbp] 74 | \centering 75 | \includegraphics[width=0.5\textwidth]{JimMorhard} 76 | \caption{Jim Morhard 演示立扫帚实验} 77 | \label{JimMorhard} 78 | \end{figure} 79 | 80 | 实验具体要求如下: 81 | \begin{enumerate} 82 | \item 扫帚必须能够单独站立,不可以借助其它外力; 83 | \item 实验过程中不得使用咒语,尤其是不得使用永久粘贴咒将扫帚粘在地上。 84 | \end{enumerate} 85 | 86 | \section{实验过程} 87 | \subsection{扫帚的选择} 88 | 不同的扫帚参数各异,这里列出了部分扫帚的参数,请见表 \ref{broomsticks}。 89 | 90 | % Insert a three-line table 91 | \begin{table}[htbp] 92 | \centering 93 | \begin{tabular}{cccc} 94 | \toprule 95 | 序号 & 名称 & 上市时间 & 最高时速 \\ 96 | \midrule 97 | 1 & 彗星290 & 1995年 & 60\,mph \\ 98 | 2 & 光轮1000 & 1967年 & 100\,mph \\ 99 | 3 & 光轮2001 & 1992年 & >\,100\,mph \\ 100 | 4 & 火弩箭 & 1993年 & 150\,mph \\ 101 | \bottomrule 102 | \end{tabular} 103 | \caption{部分扫帚的参数对比} 104 | \label{broomsticks} 105 | \end{table} 106 | 107 | 但是,本次实验不是魁地奇比赛,扫帚的最高时速对实验的进行没有太大的影响。 108 | 为了选出合适的扫帚,这里采用随机抽签的办法,编写了一个 C++ 程序进行抽取: 109 | 110 | % Insert source code 111 | \lstinputlisting[style=cpp-style]{random.cpp} 112 | 113 | % Insert an image in a separate landscape page 114 | \begin{landscape} 115 | \begin{figure} 116 | \centering 117 | \includegraphics[width=\linewidth]{Nimbus2001} 118 | \caption{光轮2001扫帚} 119 | \label{Nimbus2001} 120 | \end{figure} 121 | \end{landscape} 122 | 123 | 编译并运行上述程序,得到结果为 3,因此这里选择光轮 2001 扫帚进行实验。 124 | 125 | \subsection{扫帚起竖} 126 | 光轮 2001 扫帚如图 \ref{Nimbus2001} 所示,与麻瓜使用的扫帚相比,有以下区别: 127 | \begin{enumerate} 128 | \item 扫帚末端较尖,同时在各个方向上都不是平面; 129 | \item 扫帚柄有一定弯曲,重心不易估计。 130 | \end{enumerate} 131 | 132 | 为了解决上述问题,我在实验中采用了先将扫帚毛从中间稍稍分开,用手扶着竖直立在地上后,再进行调整的方式。 133 | 调整的过程中,先将扫帚向扫帚柄弯曲的反方向旋转一定角度以抵消弯曲的扫帚柄产生的影响,之后再不断尝试进行微调。 134 | 经过近 10 分钟的不懈努力,扫帚被成功立起。 135 | 136 | \section{实验总结} 137 | 本次实验中,扫帚被成功立起,证实了在不使用魔法的情况下,基本物理定律在霍格沃茨仍然适用。 138 | \end{document} --------------------------------------------------------------------------------