Praktische Aspekte der Informatik
Moritz Mühlhausen
- Prof. Marcus Magnor
https://graphics.tu-bs.de/teaching/ss19/padi/
Praktische Aspekte der Informatik Moritz Mhlhausen Prof. Marcus - - PowerPoint PPT Presentation
Praktische Aspekte der Informatik Moritz Mhlhausen Prof. Marcus Magnor https://graphics.tu-bs.de/teaching/ss19/padi/ LaTeX Documents https://graphics.tu-bs.de/teaching/ss19/padi/ Further Reading Warning! The following slides are meant to
Moritz Mühlhausen
https://graphics.tu-bs.de/teaching/ss19/padi/
Documents
https://graphics.tu-bs.de/teaching/ss19/padi/
Further Reading
http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/ http://www.cs.cornell.edu/info/misc/latex-tutorial/LaTeX- Home.html
https://graphics.tu-bs.de/teaching/ss19/padi/
Outline
https://graphics.tu-bs.de/teaching/ss19/padi/
Why LaTeX? Benefits
typesetting are separated.
versioning
Drawbacks
(at least not for free)
https://graphics.tu-bs.de/teaching/ss19/padi/
Workflow
https://graphics.tu-bs.de/teaching/ss19/padi/
Example
\documentclass[11pt,a4paper]{article} % Variables \title{PADI Latex Example} \author{Thomas L\"owe} \date{\today} \begin{document} \maketitle \section{Introduction} What this thesis is about. \section{Related Work} What others have done before. \section{My Approach} What my idea is. \section{My Implementation} How I implemented my idea. \section{My Results} How I evaluated my approach. \subsection{Performance} How fast my approach is. \subsection{User Study} How much more usable my approach is. \section{Conclusion and Future Work} I am awesome. \end{document}
https://graphics.tu-bs.de/teaching/ss19/padi/
Example
\documentclass[11pt,a4paper]{article} % Variables \title{PADI Latex Example} \author{Thomas L\"owe} \date{\today} \begin{document} \maketitle \section{Introduction} What this thesis is about. \section{Related Work} What others have done before. \section{My Approach} What my idea is. \section{My Implementation} How I implemented my idea. \section{My Results} How I evaluated my approach. \subsection{Performance} How fast my approach is. \subsection{User Study} How much more usable my approach is. \section{Conclusion and Future Work} I am awesome. \end{document}
https://graphics.tu-bs.de/teaching/ss19/padi/
Example
\documentclass[11pt,a4paper]{article} % Variables \title{PADI Latex Example} \author{Thomas L\"owe} \date{\today} \begin{document} \maketitle \section{Introduction} What this thesis is about. \section{Related Work} What others have done before. \section{My Approach} What my idea is. \section{My Implementation} How I implemented my idea. \section{My Results} How I evaluated my approach. \subsection{Performance} How fast my approach is. \subsection{User Study} How much more usable my approach is. \section{Conclusion and Future Work} I am awesome. \end{document}
https://graphics.tu-bs.de/teaching/ss19/padi/
Outline
https://graphics.tu-bs.de/teaching/ss19/padi/
Outsourcing
\documentclass[11pt,a4paper]{article} % Variables \title{PADI Latex Example} \author{Thomas L\"owe} \date{\today} \begin{document} \maketitle \input{sections/introduction} % sections/introduction.tex \input{sections/related_work} % sections/related_work.tex \input{sections/approach} % sections/approach.tex \input{sections/implementation} % sections/implementation.tex \input{sections/results} % sections/results.tex \input{sections/conclusion} % sections/conclusion.tex \end{document}
https://graphics.tu-bs.de/teaching/ss19/padi/
Outsourcing (Subsections)
sections/results.tex \section{My Results} How I evaluated my approach. \input{sections/results_performance} \input{sections/results_study}
https://graphics.tu-bs.de/teaching/ss19/padi/
Best Practices
sections/introduction.tex \section{Introduction} % % %%% What is lorem ipsum? % \textbf{Lorem Ipsum} is simply dummy text of the printing and typesetting industry. % Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. % It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. % % %%% Where does it come from? % Contrary to popular belief, Lorem Ipsum is not simply random text. % It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years
% Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, \emph{consectetur}, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. %
https://graphics.tu-bs.de/teaching/ss19/padi/
Outline
https://graphics.tu-bs.de/teaching/ss19/padi/
Text References
sections/introduction.tex \section{Introduction}\label{sec:introduction} … % %%% Structure of this thesis % This work is organized as follows: % Section~\ref{sec:related_work} discusses related work. % Section~\ref{sec:approach} describes our proposed approach. % In Section~\ref{sec:implementation} we outline our implementation. % Section~\ref{sec:results} evaluates our proposed approach. % Section~\ref{sec:conclusion} concludes this paper and outlines future work. %
https://graphics.tu-bs.de/teaching/ss19/padi/
Citations
sections/related_work.tex \section{Related Work}\label{sec:related_work} % Among the most common representations for eye tracking data in video are attention maps~\cite{duchowski2012aggregate,mackworth1958eye} and scan paths~\cite{noton1971scanpaths}. %
https://graphics.tu-bs.de/teaching/ss19/padi/
Bibliography using Bibtex
\documentclass[11pt,a4paper]{article} % Variables \title{PADI Latex Example} \author{Thomas L\"owe} \date{\today} \begin{document} \maketitle \input{sections/introduction} % sections/introduction.tex \input{sections/related_work} % sections/related_work.tex \input{sections/approach} % sections/approach.tex \input{sections/implementation} % sections/implementation.tex \input{sections/results} % sections/results.tex \input{sections/conclusion} % sections/conclusion.tex \bibliographystyle{abbrv} \bibliography{sections/references} % sections/references.bib \end{document}
https://graphics.tu-bs.de/teaching/ss19/padi/
Bibtex
Sections/references.bib @inproceedings{duchowski2012aggregate, title = {Aggregate gaze visualization with real-time heatmaps}, author = {Duchowski, Andrew T and Price, Margaux M and Meyer, Miriah and Orero, Pilar}, booktitle = {Proceedings of the Symposium on Eye Tracking Research and Applications}, pages = {13--20}, year = {2012},
} @Article{mackworth1958eye, title = {Eye fixations recorded on changing visual scenes by the television eye-marker}, author = {MACKWORTH, JANE F and Mackworth, NH}, journal = {JOSA}, year = 1958, number = 7, pages = {439--444}, volume = 48, publisher = {Optical Society of America} } @Article{noton1971scanpaths, title = {Scanpaths in eye movements during pattern perception}, author = {Noton, David and Stark, Lawrence}, journal = {Science}, year = 1971, number = 3968, pages = {308--311}, volume = 171, publisher = {American Association for the Advancement of Science} }
https://graphics.tu-bs.de/teaching/ss19/padi/
Bibliography Tools
https://graphics.tu-bs.de/teaching/ss19/padi/
Detour: Google Scholar
https://graphics.tu-bs.de/teaching/ss19/padi/
Detour: Google Scholar
https://graphics.tu-bs.de/teaching/ss19/padi/
Outline
https://graphics.tu-bs.de/teaching/ss19/padi/
Tables
sections/results_performance.tex \subsection{Performance}\label{sec:results_performance} % % %%% Evaluation % As shown in Table~\ref{tab:performance} our approach is awesome. % % \begin{table}[h] \centering \caption{Performance comparison with Brute et al.}\label{tab:performance} \begin{tabular}{ r || c | c } Approaches & Time (s) & Memory (gb) \\ \hline Brute Force~\cite{brute1916} & 5.2 & 6.6 \\ More Force~\cite{brute1918} & 3.5 & 7.11 \\ \textbf{Our} & \textbf{2} & \textbf{3.1}\\ \end{tabular} \end{table}
https://graphics.tu-bs.de/teaching/ss19/padi/
Tables
https://graphics.tu-bs.de/teaching/ss19/padi/
Figures
sections/results_study.tex \subsection{User Study}\label{sec:results_study} How much more usable my approach is, when using the Lenna images, Fig.~\ref{fig:lenna}. \begin{figure}[h] \centering \includegraphics[width=0.3\textwidth]{figures/lenna.png} \includegraphics[width=0.3\textwidth]{figures/lenna.png} \caption{We used two Lenna images in our study.}\label{fig:lenna} \end{figure}
https://graphics.tu-bs.de/teaching/ss19/padi/
Figures
https://graphics.tu-bs.de/teaching/ss19/padi/
Outline
https://graphics.tu-bs.de/teaching/ss19/padi/
Packages
Sometimes you need more features than standard Latex has to offer \documentclass[11pt,a4paper]{article} % German language support \usepackage[german]{babel} % Math support \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} … More Examples: https://en.wikibooks.org/wiki/LaTeX/Package_Reference
https://graphics.tu-bs.de/teaching/ss19/padi/
Math Environments
sections/approach.tex … % My idea in different math environments, such that % \begin{equation}\label{eq:math} \int_{a=1}^b \theta = 0, \end{equation} % where $a,b \in\mathbb{C}^{12}$ are variables. % …
https://graphics.tu-bs.de/teaching/ss19/padi/
Math Environments
sections/approach.tex … % We can also express Equation~(\ref{eq:math}) as % \begin{equation*} % unnumbered equation \sum_{\mu = 7}^{n} \frac{23}{5} \neq 23/5 \end{equation*} % …
https://graphics.tu-bs.de/teaching/ss19/padi/
Math Environments
sections/approach.tex … % However, we prefer using this aligned optimization problem: % \[ % shorthand for unnumbered equation \begin{aligned} % aligned environment & \underset{x}{\text{minimize}} & & f_0(x) \\ & \text{subject to} & & f_i(x) \leq b_i, \; i = 1, \ldots, m. \end{aligned} \] % …
https://graphics.tu-bs.de/teaching/ss19/padi/
Outline
https://graphics.tu-bs.de/teaching/ss19/padi/
Custom Commands
You can also define your own commands: \documentclass[11pt,a4paper]{article} \newcommand{\etal}{~et~al.~} % usage: Bob\etal\cite{brute1916} \newcommand{\keyword}[2]{\emph{#1}~(dt. #2)} % usage: \keyword{directed tree}{gerichteter Baum}
https://graphics.tu-bs.de/teaching/ss19/padi/