commit cd2a2767de2c589c87438b657c9eea55ee5b3f3d Author: TuDatTr Date: Wed Jun 9 02:11:45 2021 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..db4f324 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*.aux +*.bbl +*.blg +*.fdb_latexmk +*.fls +*.log +*.nav +*.out +*.snm +*.toc +*.xdv +*.bcf +*.run.xml +*.synctex* diff --git a/README.md b/README.md new file mode 100644 index 0000000..20612fa --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# LaTeX Template based on IEEEtran + +## PDF erzeugen +```bash +latexmk +``` + +## Temporäre Dateien löschen +```bash +latexmk -c +``` diff --git a/bibliography.bib b/bibliography.bib new file mode 100644 index 0000000..51a0857 --- /dev/null +++ b/bibliography.bib @@ -0,0 +1,34 @@ +@Article{exampleArticle, + author = "Max Mustermann", + title = "The title of the work", + journal = "The name of the journal", + year = "2010", + number = "2", + pages = "22--23", + month = "7", + note = "An optional note", + volume = "4", +} + +@MastersThesis{exampleThesis, + author = "Max Mustermann", + title = "The title of the work", + school = "The school where the thesis was written", + year = "2001", + address = "The address of the publisher", + month = "7", + note = "An optional note", +} + +@Book{exampleBook, + author = "Max Mustermann", + title = "The title of the work", + publisher = "The name of the publisher", + year = "1999", + volume = "4", + series = "10", + edition = "1", + month = "7", + note = "An optional note", + ISBN = "12-345-67890-1", +} diff --git a/images/latex.pdf b/images/latex.pdf new file mode 100644 index 0000000..416c821 Binary files /dev/null and b/images/latex.pdf differ diff --git a/latexmkrc b/latexmkrc new file mode 100644 index 0000000..b5882b3 --- /dev/null +++ b/latexmkrc @@ -0,0 +1,6 @@ +@default_files = ('paper.tex'); + +$pdf_mode = 1; +$pdflatex = 'pdflatex -synctex=1'; + +$clean_ext .= "bbl nav out snm bib xdv run.xml synctex.gz"; diff --git a/lstconfig.tex b/lstconfig.tex new file mode 100644 index 0000000..d5db0c7 --- /dev/null +++ b/lstconfig.tex @@ -0,0 +1,56 @@ +%\usepackage{sourcecodepro} +\usepackage{listings} + +\definecolor{lstgreen}{rgb}{0,0.6,0} +%\definecolor{lstgray}{0,0.6,0} +%\definecolor{lstmauve}{rgb}{} + +% set some defaults: +\lstset{% +language=C, +%basicstyle=\scriptsize\sourcecodepro, +%basicstyle=\scriptsize\ttfamily, +basicstyle=\linespread{1.1}\scriptsize\ttfamily, +commentstyle=\color{lstgreen}, +% core lang +keywordstyle=\color{blue}, +% modifier +keywordstyle=[2]\color{SlateBlue}, +% types +keywordstyle=[3]\color{DarkCyan}, +% vars +keywordstyle=[4]\color{violet}, +%ndkeywordstyle=\color{violet}, +emphstyle=\bfseries\color{DarkGray}, +identifierstyle=\color{black}, +commentstyle=\color{purple}\ttfamily, +stringstyle=\color{gray}\ttfamily, +%numbers=left, +numbers=left, +numberstyle=\tiny, +columns=fullflexible, +keepspaces=true, +showstringspaces=false, +captionpos=b, +%xleftmargin=\parindent, +%framexleftmargin=\parindent, +%xleftmargin=2cm, +%linewidth=\textwidth, +%xleftmargin=2cm, +xleftmargin=2em, +%xleftmargin=3pt, +xrightmargin=3pt, +%aboveskip=\bigskipamount, +%belowskip=\bigskipamount, +%fancyvrb=true, +frame=single, +%frame=L, +escapechar=@, +} + +\lstdefinestyle{plain}{% + numbers=none, + frame=none, + xleftmargin=1pt, + xrightmargin=1pt, +} diff --git a/paper.pdf b/paper.pdf new file mode 100644 index 0000000..6e0173e Binary files /dev/null and b/paper.pdf differ diff --git a/paper.tex b/paper.tex new file mode 100644 index 0000000..2e84c14 --- /dev/null +++ b/paper.tex @@ -0,0 +1,115 @@ +\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}