seminar/paper.tex

116 lines
3.4 KiB
TeX
Raw Normal View History

2021-06-09 02:11:45 +02:00
\documentclass[12pt,a4paper,conference,final,twoside]{IEEEtran}
%\usepackage[left=2cm,right=2cm,top=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
%% SELECT LANGUAGE
\usepackage[english]{babel}
%\usepackage[ngerman]{babel}
\usepackage[backend=biber,doi=true,url=true,block=ragged,maxnames=6]{biblatex}
\renewcommand*{\bibfont}{\footnotesize}
\pagestyle{plain}
\usepackage{siunitx}
\RequirePackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{cleveref}
\usepackage{graphicx}
\graphicspath{{./images/}}
\usepackage{csquotes}
\MakeOuterQuote{"}
\usepackage{balance}
\clubpenalty10000
\widowpenalty10000
\usepackage{listings}
\input{lstconfig}
\crefname{lstlisting}{listing}{listing}
\Crefname{lstlisting}{Listing}{Listings}
%\usepackage[parfill]{parskip}
\addbibresource{bibliography.bib}
\usepackage{blindtext}
\newcommand\blindsection{{\color{gray}\subsection{Some bind text}\blindtext}}
\begin{document}
\title{IEEEtran Template}
\author{\IEEEauthorblockN{Vorname Nachname\\\small(3012345)}\\\IEEEauthorblockA{University of Duisburg-Essen\\vorname.nachname@stud.uni-due.de}}
\maketitle
\begin{abstract}
This paper is a short example for the IEEEtran template. It introduces the most basic principles of latex and the paper format.
\end{abstract}
\section{Introduction}%
\label{sec:intro}
For scientific writing it is important to know how to cite related work~\cite{exampleThesis,exampleArticle,exampleBook}.
The bibliography at the end will be auto-generated.
\section{Example Code Listing}
As can be seen in \Cref{lst:example}, we have an example here. It will print \verb+"Hello"+ several times.
However, this example is not usable with ROP. For an example with figures, we refer the interested reader to \Cref{sec:figstabs}. We can also use the lame way of referencing another section, as can be evidenced in sections \ref{sec:figstabs} and \ref{sec:intro}.
\blindsection
\begin{figure}[b]
% make figure go to bottom, others are: htbp (here, top, bottom, page). Most of time the default (top) fits best.
\begin{lstlisting}[language=C,firstnumber=17]
int main(int argc, char* argv[],
char* env[])
{
for (size_t i = 0; i < 10; i++) {
// prints Hello some times
printf("Hello %d\n", i);
}
}
\end{lstlisting}
\caption{Example C Code}
\label{lst:example}
\end{figure}
\blindsection
\section{Examples for figures and tables}%
\label{sec:figstabs}
\begin{figure}
\begin{center}
\includegraphics[width=\linewidth]{latex}
\end{center}
\caption{The word latex in its custom typeface.}
\label{fig:latex}
\end{figure}
You can define the figure anywhere in the section and \LaTeX~(see \Cref{fig:latex}) will make it float to a place nearby.
You also can use the starred-version (\lstinline[language={[latex]tex}]+\begin{figure*}...\end{figure*}+) to define a figure that spans multiple columns. This was used for \Cref{tab:large-table}
\begin{table*}
\begin{center}
\begin{tabular}{r|lclllllll}
Data&222222&333333&444444&555555&666666&777777&888888&999999&000000\\
\hline
111&222222&33333&4444&555555&666666&777777&888888&999999&000000\\
1111&22222&333&444444&555555&666666&777777&888888&999999&000000\\
11111&2222&3333&44444&555555&666666&777777&888888&999999&000000\\
111111&222&33333&4444&555555&666666&777777&888888&999999&000000\\
\end{tabular}
\end{center}
\caption{A table that spans multiple columns.}
\label{tab:large-table}
\end{table*}
\blindsection
\blindsection
\balance
\printbibliography
\end{document}