-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tex
51 lines (47 loc) · 1.13 KB
/
template.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
\documentclass[a4paper,twocolumn,oneside]{article}
\setlength{\columnseprule}{0.4pt}
\setlength{\columnsep}{10pt}
\usepackage[a4paper, margin=2cm, lmargin=1cm, rmargin=1cm, bmargin=1cm]{geometry}
\headsep=5pt
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{enumitem}
\usepackage{listings}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\usepackage{url}
\usepackage{color}
\usepackage{graphicx}
\usepackage{tgcursor}
\usepackage[compact]{titlesec}
\titlespacing{\section}{0pt}{*0}{*0}
\titlespacing{\subsection}{0pt}{*0}{*0}
\titleformat{\section}[hang]
{\normalfont\bfseries}
{}
{0em}
{\Large \thesection\hspace{0.6em}}
\titleformat{\subsection}[hang]
{\normalfont\bfseries}
{}
{0em}
{\large \thesubsection\hspace{0.6em}}
\pagestyle{fancy}
\fancyfoot{}
\fancyhead[R]{Page \thepage}
\fancyhead[L]{Team NCTU Oryx}
\definecolor{deeper}{gray}{.8}
\renewcommand*{\ttdefault}{pcr}
\lstset{language=C++,
basicstyle=\footnotesize\ttfamily,
tabsize=2,
breaklines=true,
}
\setlist{leftmargin=\parindent}
\setlength{\parindent}{1em}
\setlength{\parskip}{0.1em}
\begin{document}
\tableofcontents
\newpage
\input{content.tex}
\end{document}