Created
February 5, 2014 22:35
-
-
Save RolandR/8834722 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%---------------------------------------------------------------------------------------- | |
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS | |
%---------------------------------------------------------------------------------------- | |
\documentclass[a4paper]{article} | |
\usepackage{lipsum} | |
\usepackage[sc]{mathpazo} % Use the Palatino font | |
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs | |
\linespread{1.05} % Line spacing - Palatino needs more space between lines | |
\usepackage{microtype} % Slightly tweak font spacing for aesthetics | |
\usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} % Document margins | |
\usepackage{hyperref} % For hyperlinks in the PDF | |
\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats in tables or figures | |
\usepackage{booktabs} % Horizontal rules in tables | |
\usepackage{float} % Required for tables and figures in the multi-column environment - they need to be placed in specific locations with the [H] (e.g. \begin{table}[H]) | |
\usepackage{lettrine} % The lettrine is the first enlarged letter at the beginning of the text | |
\usepackage{paralist} % Used for the compactitem environment which makes bullet points with less space between them | |
%\usepackage{ngerman} | |
\usepackage[utf8]{inputenc} | |
\usepackage{url} | |
\usepackage{abstract} | |
\renewcommand{\abstractnamefont}{\normalfont\bfseries} | |
\renewcommand{\abstracttextfont}{\normalfont\itshape} | |
\usepackage{titlesec} | |
\titleformat{\section}[block]{\large\scshape{\Roman{section}.}}{}{1em}{} % Change the look of the section titles | |
\titleformat{\subsection}[block]{\vspace{-2mm}{\Roman{section}.\scshape\roman{subsection}}}{}{1em}{} % Change the look of the subsection titles | |
\usepackage{lastpage} | |
\usepackage{fancyhdr} | |
\pagestyle{fancy} | |
\fancyhead[R]{ | |
\author{ | |
Roland \textsc{Rytz} | |
} | |
} | |
\fancyhead[L]{Java Project - BTI7051p} | |
\fancyfoot[C]{ \thepage{} of \pageref{LastPage} } | |
\hypersetup{ | |
colorlinks, | |
citecolor=black, | |
filecolor=black, | |
linkcolor=black, | |
urlcolor=black | |
} | |
\newcommand{\superscript}[1]{\ensuremath{^{\textrm{#1}}}} | |
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}} | |
%---------------------------------------------------------------------------------------- | |
% TITLE SECTION | |
%---------------------------------------------------------------------------------------- | |
\title{ | |
\vspace{-10mm} | |
\fontsize{18pt}{10pt} | |
\selectfont\textbf{ | |
A transport simulator in Java | |
}\\[-10mm] | |
} | |
\date{Compiled on \today} | |
%---------------------------------------------------------------------------------------- | |
\begin{document} | |
\maketitle | |
%\newpage | |
\thispagestyle{fancy} % All pages have headers and footers | |
%---------------------------------------------------------------------------------------- | |
% ARTICLE CONTENTS | |
%---------------------------------------------------------------------------------------- | |
%\begin{multicols}{2} % Two-column layout throughout the main article text | |
\section{SECTION TITLE} | |
\lettrine[findent=0.25em,nindent=-0em,slope=0mm,lines=2]{C} ONTENT CONTENT CONTENT CONTENT\\ | |
\(A \in B\)\\ | |
\(A \notin B\)\\ | |
\(\emptyset\) | |
\subsection{SUBSECTION TITLE} | |
\begin{table}[H] | |
\caption{Bestimmung der Masse bei Red Bull\superscript{\textregistered}} | |
\centering | |
\begin{tabular}{lrr} | |
\toprule | |
Messung & Volumen \([ml]\) & Masse \([g]\)\\ | |
\midrule | |
Messung 1 & \(5ml\) & \(5.210g\) \\ | |
Messung 2 & \(5ml\) & \(5.243g\) \\ | |
Messung 3 & \(5ml\) & \(5.225g\) \\ | |
Messung 4 & \(5ml\) & \(5.233g\) \\ | |
\midrule | |
$\bar{x}_{Messungen}$ & \(5ml\) & \(5.228g \pm 0.32\%\) \\ | |
\bottomrule | |
\end{tabular} | |
\end{table} | |
%---------------------------------------------------------------------------------------- | |
\section{Sources} | |
{\def\section*#1{} | |
\bibliographystyle{pccp} | |
\bibliography{zuckergehalt} | |
\nocite{*} | |
} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment