Praktische Aspekte der Informatik Moritz Mhlhausen Prof. Marcus - - PowerPoint PPT Presentation

praktische aspekte
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Praktische Aspekte der Informatik

Moritz Mühlhausen

  • Prof. Marcus Magnor

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-2
SLIDE 2

LaTeX

Documents

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-3
SLIDE 3

Further Reading

Warning!

The following slides are meant to give you a very superficial introduction. If you want to learn more, have a look at:

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/

slide-4
SLIDE 4

Outline

Introduction Code Structure References, Cites and Bibliography Tables and Figures Math Custom Commands

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-5
SLIDE 5

Why LaTeX? Benefits

  • Content creation and

typesetting are separated.

  • ASCII format – ideal for

versioning

  • Formulae editing
  • Multi-Platform

Drawbacks

  • Not WYSIWYG

(at least not for free)

  • Cryptic Error Messages
  • Other technical difficulties

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-6
SLIDE 6

Workflow

  • Write text
  • Compile text
  • run pdflatex
  • or run latex, dvips, ps2pdf
  • or use a makefile
  • Check the output .pdf

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-7
SLIDE 7

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/

slide-8
SLIDE 8

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/

slide-9
SLIDE 9

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/

slide-10
SLIDE 10

Outline

Introduction Code Structure References, Cites and Bibliography Tables and Figures Math Custom Commands

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-11
SLIDE 11

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/

slide-12
SLIDE 12

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/

slide-13
SLIDE 13

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

  • ld.

% 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/

slide-14
SLIDE 14

Outline

Introduction Code Structure References, Cites and Bibliography Tables and Figures Math Custom Commands

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-15
SLIDE 15

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/

slide-16
SLIDE 16

Citations

You will have to reference other publications.

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/

slide-17
SLIDE 17

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/

slide-18
SLIDE 18

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},

  • rganization = {ACM}

} @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/

slide-19
SLIDE 19

Bibliography Tools

  • There are several tools to help you manage cites
  • JabRef
  • http://www.jabref.org/
  • Citavi
  • http://www.biblio.tu-bs.de/citavi.html
  • Mendeley
  • https://www.mendeley.com/

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-20
SLIDE 20

Detour: Google Scholar

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-21
SLIDE 21

Detour: Google Scholar

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-22
SLIDE 22

Outline

Introduction Code Structure References, Cites and Bibliography Tables and Figures Math Custom Commands

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-23
SLIDE 23

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/

slide-24
SLIDE 24

Tables

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-25
SLIDE 25

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/

slide-26
SLIDE 26

Figures

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-27
SLIDE 27

Outline

Introduction Code Structure References, Cites and Bibliography Tables and Figures Math Custom Commands

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-28
SLIDE 28

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/

slide-29
SLIDE 29

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/

slide-30
SLIDE 30

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/

slide-31
SLIDE 31

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/

slide-32
SLIDE 32

Outline

Introduction Code Structure References, Cites and Bibliography Tables and Figures Math Custom Commands

https://graphics.tu-bs.de/teaching/ss19/padi/

slide-33
SLIDE 33

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/