Skip to content

Commit 22a60fc

Browse files
committed
Add sample & logo
1 parent 9dee4ca commit 22a60fc

31 files changed

+148
-0
lines changed

figures/JimMorhard.jpeg

1.54 MB
Loading

figures/Nimbus2001.jpg

173 KB
Loading

logo/bupt-logo.pdf

26.7 KB
Binary file not shown.

logo/bupt-text-logo.pdf

15.6 KB
Binary file not shown.

logo/cqu-logo.pdf

67.3 KB
Binary file not shown.

logo/hogwarts-logo.png

556 KB
Loading

logo/nju-logo.pdf

353 KB
Binary file not shown.

logo/nju-text-logo.pdf

200 KB
Binary file not shown.

logo/nuaa-logo.pdf

6.35 KB
Binary file not shown.

logo/nuaa-text-logo.pdf

7.79 KB
Binary file not shown.

logo/pku-logo.pdf

4.92 KB
Binary file not shown.

logo/pku-text-logo.pdf

9.67 KB
Binary file not shown.

logo/seu-color-logo.jpg

169 KB
Loading

logo/seu-logo.jpg

148 KB
Loading

logo/seu-text-logo.pdf

9.35 KB
Binary file not shown.

logo/sjtu-logo.pdf

83 KB
Binary file not shown.

logo/sjtu-text-logo.pdf

82.4 KB
Binary file not shown.

logo/sjtu-whole-logo.pdf

98.2 KB
Binary file not shown.

logo/thu-logo.pdf

109 KB
Binary file not shown.

logo/thu-text-logo.pdf

21.5 KB
Binary file not shown.

logo/thu-whole-logo.pdf

118 KB
Binary file not shown.

logo/ucas-logo.pdf

40.2 KB
Binary file not shown.

logo/uestc-logo.pdf

371 KB
Binary file not shown.

logo/ustc-logo.pdf

66.9 KB
Binary file not shown.

logo/ustc-text-logo.pdf

29 KB
Binary file not shown.

logo/whu-logo.png

323 KB
Loading

logo/zju-logo.pdf

95.1 KB
Binary file not shown.

logo/zju-text-logo.pdf

104 KB
Binary file not shown.

random.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include<iostream>
2+
#include<cstdlib>
3+
#include<ctime>
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.pdf

2.35 MB
Binary file not shown.

sample.tex

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
%!TEX program=xelatex
2+
3+
\documentclass[12pt,a4paper,UTF8]{article}
4+
\usepackage{ctex} % Chinese support
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+
11+
% Hypertext links support for cross-referencing
12+
% Special display format is disabled here, you can change it in the optional parameter
13+
\usepackage[pdfborder={0 0 0}]{hyperref}
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}

0 commit comments

Comments
 (0)