-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_en.tex
116 lines (99 loc) · 2.51 KB
/
main_en.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
\documentclass{article}
\usepackage{geometry}
\geometry{margin=3cm, vmargin={3cm}}
% useful packages.
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
\usepackage{appendix}
\usepackage{bm}
\usepackage{colortbl}
\usepackage{diagbox}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{indentfirst}
\usepackage{listings}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{fancyhdr}
\usepackage{layout}
\usepackage{xcolor}
\usepackage{subfigure}
\usepackage{mathpazo}
\usepackage{sysulab}
\setlength{\parindent}{1em}
\renewcommand{\baselinestretch}{1.5}
\newcommand{\ie}{\textit{i.e.}}
% define used colors
\definecolor{GRay}{RGB}{200, 200, 200}
% set experiment report title, used in next.
\newcommand{\rtitle}{Experiment Name}
\newcommand{\lecturename}{Course Name}
\newcommand{\instructorname}{Instructor}
\newcommand{\sgrade}{2018}
\newcommand{\smajor}{Computer Science}
\newcommand{\sname}{Your Name}
\newcommand{\sid}{ID}
\newcommand{\semail}{president@mail.sysu.edu.cn}
% cancel date demonstration
\date{}
\begin{document}
\pagestyle{fancy}
\fancyhead{}
\lhead{\sname}
\chead{\rtitle}
\rhead{\today}
% \maketitle
\centerline{\LARGE \rtitle}
\begin{figure}[h]
\centering
\includegraphics[scale=0.7]{sysu_logo.png}
\end{figure}
% set lecture information
\centerline{Lecture: \textbf{\lecturename} \qquad Instructor: \textbf{\instructorname}}
% set head table
\begin{table}[h]
\centering
\begin{tabular}{|c|c|c|c|}
% \toprule
\hline
\cellcolor{GRay} Grade & \sgrade & \cellcolor{GRay} Major & \smajor \\
\hline
\cellcolor{GRay} ID & \sid &\cellcolor{GRay} Name & \sname \\
\hline
\cellcolor{GRay} Email & \href{mailto:\semail}{\semail} &\cellcolor{GRay} Date & \today \\
\hline
% \bottomrule
\end{tabular}
\end{table}
\section{Introduction}
To refer paper, use \cite{silver2017mastering}.
Insert code:
\begin{lstlisting}[style=sysupython]
def main():
print("hello world")
\end{lstlisting}
The coding style could be modified in \texttt{sysulab.sty}.
\begin{lstlisting}[style=sysucpp]
#include <iostream>
using namespace std;
int main() {
printf(123);
return 0;
}
\end{lstlisting}
%
% References will then be sorted and formatted in the correct style
%
\clearpage
\bibliographystyle{unsrt}
\bibliography{ref}
\end{document}