-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
147 lines (114 loc) · 5.38 KB
/
main.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Jefferson Ding's IB LaTeX Template
% Modified from OIST Doctoral Thesis
% LaTeX Template
% Version 0.1 (2021/11)
%
% Author:
% Jefferson Ding
% Original author:
% Jeremie Gillet
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%-------------------------------------------------------------------------------
% REQUIRED PACKAGES AND CONFIGURATIONS
%-------------------------------------------------------------------------------
\documentclass[temporary]{ib_template} % Temporary version for paper revision and examination
%\documentclass[final]{ib_template} % Final version for paper submission
% The documentclass ib_template includes the following packages: geometry, caption, xkeyval
\usepackage[english]{babel} % The document is in English
\usepackage[utf8]{inputenc} % UTF8 encoding
\usepackage[T1]{fontenc} % Font encoding
\usepackage{graphicx} % For including images
\graphicspath{{./img/}} % Specifies the directory where pictures are stored
\usepackage{setspace} % For using single or double spacing
\usepackage{longtable} % tables that can span several pages
\usepackage{pdfpages} % To include a pdf files of your published papers as an appendix
\usepackage{fancyhdr} % For the headers
\usepackage{hyperref} % Adds clickable links at references
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
%----------------------------------------------------------------------------------------
% ADD YOUR PACKAGES (be careful of package interaction)
%----------------------------------------------------------------------------------------
\usepackage{amsthm,amsmath,amssymb,amsfonts,bbm}% Math symbols
%----------------------------------------------------------------------------------------
% ADD YOUR DEFINITIONS AND COMMANDS
%----------------------------------------------------------------------------------------
% Example of New Commands
\newcommand{\quickwordcount}[1]{%
\immediate\write18{texcount -1 -sum -merge -q #1.tex output.bbl > #1-words.sum }%
\input{#1-words.sum}%
}
%----------------------------------------------------------------------------------------
% PICK YOUR BIBLIOGRAPHY STYLE
%----------------------------------------------------------------------------------------
\usepackage[round]{natbib}
\bibliographystyle{bib/apa} % You may use a different style adapted to your field
% \bibliographystyle{apa} % You may use a different style adapted to your field
%-------------------------------------------------------------------------------
% TITLE PAGE
%-------------------------------------------------------------------------------
\begin{document}
\pagestyle{empty} % No page numbers
\puttitle{
ibtitle=\LaTeX\ IB IA Template,% Title of the paper
school=Upper Canada College, % Name of School (REMOVE FOR EE)
rq= {Example Subtitle}, % Subtitle of the paper
subject = Subject, % Subject
name = John Doe, % Name (REMOVE FOR EE)
supervisor = {Jane Doe}, % Supervisor Name (REMOVE FOR EE)
submissiondate={May 2020}, % Exam session "Month Year"
wordcount=\quickwordcount{main}, % Wordcount
ibnum={000000} % IB Student Number (REMOVE FOR EE)
}
%-------------------------------------------------------------------------------
% PREAMBLE PAGES (comment unnecessary pages)
%-------------------------------------------------------------------------------
\startpreamble
% \input{pre/declaration}
% \input{pre/abstract}
% \input{pre/acknowledgments}
% \input{pre/abbreviations}
% \input{pre/glossary}
% \input{pre/nomenclature}
% \input{pre/dedication}
%-------------------------------------------------------------------------------
% LIST OF CONTENTS/FIGURES/TABLES
%-------------------------------------------------------------------------------
\unnumberedsection{Contents}
\singlespacing
\tableofcontents % Write out the Table of Contents
\doublespacing
% \unnumberedsection{List of Figures}
% \listoffigures % Write out the List of Figures
% \unnumberedsection{List of Tables}
% \listoftables % Write out the List of Tables
%-------------------------------------------------------------------------------
% PAPER MAIN TEXT
%-------------------------------------------------------------------------------
\addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics
\unnumberedsection{Introduction} % Title of the unnumbered section
\input{src/introduction} % Introduction (unnumbered)
\numberedsection % Regular sections following
\input{src/section1} % Input your sections here
\input{src/section2}
\input{src/section3}
\unnumberedsection{Conclusion} % Title of the unnumbered section
\input{src/conclusion} % Conclusion (unnumbered)
%-------------------------------------------------------------------------------
% BIBLIOGRAPHY
%-------------------------------------------------------------------------------
\addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics
\unnumberedsection{Bibliography} % Title of the unnumbered section
\bibliography{bib/bibliography} % The references information are stored in the file named "bibliography.bib"
%-------------------------------------------------------------------------------
% APPENDICES (optional)
%-------------------------------------------------------------------------------
% \addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics
% \appendix
% \numberedsection % Regular sections following
% \input{src/appendixA}
%\input{src/appendixB}
%\input{src/appendixC}
\end{document}