%!TEX encoding = UTF-8 Unicode
%!TEX TS-program = xelatex
%% This template licensed under CC-BY-NC-SA by Koenraad De Smedt
\documentclass[a4paper,12pt]{article}
\usepackage[margin=24mm]{geometry}
\usepackage{fontspec,xltxtra,polyglossia,titling,graphicx}
\usepackage{verbatim,gb4e,synttree,multicol} % choose or add what you need
\usepackage[colorlinks,urlcolor=blue,citecolor=blue,linkcolor=blue]{hyperref}
\setmainfont[Mapping=tex-text]{Times New Roman} % or another similar font
\setdefaultlanguage{english}
\setotherlanguages{norsk}
\usepackage{natbib}
\bibliographystyle{chicago}
\frenchspacing
\title{Linguistics term paper at University of Bergen} % replace with title of your term paper
\author{Koenraad De Smedt} % replace with your candidate number, not your name
\date{\today}
\hyphenation{lem-mat-iz-at-ion uni-code}
\begin{document}
\begin{center} \vfill
\textbf{\Large UNIVERSITETET I BERGEN}
{\large DET HUMANISTISKE FAKULTET
Institutt for lingvistiske, litterære og estetiske studier \vfill
Emnekode: DASP307 % replace with course code
Emne: Språkvitskapleg skriving for master- og Phd-studenter % replace with course title
Semester: Høst 2014 % replace with term and year of the exam
Kandidatnummer: \theauthor \vfill
Semesteroppgave
\emph{\thetitle}} \vfill
{\small \href{https://creativecommons.org/licenses/by/4.0/}{\includegraphics[height=1.2em]{cc-by}} by \theauthor}
\end{center} \clearpage
\maketitle
\begin{abstract} \noindent
Write your summary here.
This template is provided for term papers in the Linguistics and Computational Linguistics programs at the University of Bergen, Norway.
Term papers must be handed in as PDF files.
\end{abstract}
\section{Problem and hypothesis} \label{sec:intro}
Start your main text here.
Add more sections as needed.
In the first section of a paper it is appropriate to describe the area of research, the research problem to be solved and why it is important, the hypothesis and the expected outcome.
Provide examples when appropriate.
Examples (\ref{ex:dutch}) and (\ref{ex:norwegian}) illustrate the inclusion of lines with glosses.
Figure \ref{fig:tree} illustrates how a tree structure can be drawn.
\begin{exe}
\ex \label{ex:dutch}
\gll Dit is een Nederlands voorbeeld-je.\\
This is a Dutch example-DIM\\
\trans `This is a small example in Dutch.'
\ex \label{ex:norwegian}
\gll Dette er det norske eksemplet.\\
This is the Norwegian example.DEF\\
\trans ‘This is the Norwegian example.’
\end{exe}
\begin{figure}[htbp] \begin{center}
\synttree [S [NP [Pro [He]]] [VP [V [died]] [PP [P [for]] [NP [Pro [her]]]]]]
\caption{An example tree drawn from labeled bracketing using the \emph{synttree} package.} \label{fig:tree}
\end{center} \end{figure}
\section{Data and Method}
It is often appropriate to devote a section to the description of the data and the method used.
This section could, for instance, describe corpus materials, lexical data, questionnaires, machine learning programs, or other data sources, methods and tools which you have used for your paper.
Be specific.
If you search in a corpus, for instance, specify which corpus was consulted on which site, and give your exact search expressions.
Provide datasets, questionnaires or other materials in the appendices if they are larger than about a page.
Materials spanning more than five pages or encoded in other ways than plain text should preferably not be included in the PDF, but can be put in a ZIP or RAR archive together with the main file.
Include relevant references to related work \citep{Van-Dongen12}.
References to web resources\footnote{Wikibooks: \url{http://en.wikibooks.org/wiki/LaTeX}} can also be put in footnotes.
\section{Results}
This section could describe the results obtained from the research.
Present quantitative results in tables and/or graphs, as illustrated in Table \ref{tab:freq} and Figure \ref{fig:proportion}.
\input{boysgirlsnormtable}
\begin{figure}[htb] \begin{center}
\includegraphics[width=0.7\textwidth]{boysgirls}
\caption{Normalized frequencies, pairwise} \label{fig:proportion}
\end{center} \end{figure}
\section{Discussion and conclusion}
The last section normally attempts to interpret the results and investigates if the results confirm or reject the initial hypothesis formulated in section \ref{sec:intro}.
The conclusion summarizes which new knowledge is obtained, and possibly what it can be used for.
It also discusses to what extent the outcomes are uncertain or of a limited scope.
\bibliography{sample}
\appendix
\section{Frequency list exclusive of hapax legomena} \label{app:freq}
This is an example appendix showing how raw data can be included from a separate file.
\begin{multicols}{3}
{\footnotesize\verbatiminput{askefreqnohapax}}
\end{multicols}
\section{Reflection notes} \label{app:reflection}
\emph{This section is obligatory for DASP307 only.}
Write some notes about your intended audience, the role of the paper in your study program, strategies for communicating with the reader and for citing other work, rhetorical strategies to convince the reader, motivation for your use of examples, figures, tables, etc.
\end{document}