LaTeX

Figures

\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.5\textwidth]{picture.jpg}
  \caption[Short]{Long text}
  \label{fig:label}
\end{figure}

Beamer

Columns

Block

Bibliography

URL Referenz

@misc{bworld,
author = {Ingo Lütkebohle},
title = {{BWorld Robot Control Software}},
howpublished = "\url{http://aiweb.techfak.uni-bielefeld.de/content/bworld-robot-control-software/}",
year = {2008},
note = "[Online; accessed 19-July-2008]"
}

Quotation

  ``You \emph{were} a little grave,'' said Alice.

Makefile

Deploy

Zum Beispiel ein deploy hook:

deploy:
      rsync -av ./document.pdf user@server:websites/static/

Glossaries Package

- <http://get-software.net/macros/latex/contrib/glossaries/glossariesbegin.pdf>
- <https://en.wikibooks.org/wiki/LaTeX/Glossary>
  
  ```html
    \newacronym{key}{key}{}
    \newacronym[\glslongpluralkey={},\glsshortpluralkey={}]{}{}{}
    \gls{key}
    \glspl{key}
    \glsreset{key}
  ```

SIUnitx Package

- <http://mirror.physik-pool.tu-berlin.de/tex-archive/macros/latex/contrib/siunitx/siunitx.pdf>
  
  Bit und Byte aktivieren: `binary-units = true`
  
  Beispiele:
  
  `78 \si{\pico\second}`

Tables

  \begin{table}[h]
      \centering
      \caption{Comparison of the \gls{FPGA} boards, the information is gathered from the user manuals, see \cite{marsmx2} and \cite{marszx3}.}
      \label{tab:fpgacomparison}
      \begin{tabular}{@{}lcccc@{}}
          \toprule
      Boot Mode Pins/Boot Device& MIO[5]& MIO[4]& MIO[3]& MIO[2]\\
          \midrule
      Cascaded JTAG&          0&  0&  0&  0\\
      Independent JTAG&       0&  0&  0&  1\\
      NOR Flash&          0&  0&  \multicolumn{2}{c}{\cellcolor{blue!25}}\\
      NAND Flash&         0&  0&  \multicolumn{2}{c}{\cellcolor{blue!25}}\\
      QSPI Flash&         0&  0&  \multicolumn{2}{c}{\cellcolor{blue!25}}\\
      SD Card&            0&  0&  \multicolumn{2}{c}{\multirow{-4}{*}{\cellcolor{blue!25}NA}}\\
          \bottomrule
      \end{tabular}
  \end{table}

Listings

Lebenslauf/CV

Rechnungen

Latexmk

  TEX = $(wildcard *.tex)
  PDF = $(TEX:.tex=.pdf)
  TEMPFILES = *.fls *.aux *.log *.fdb_latexmk

  LATEXMK = latexmk
  LATEXMKFLAGS = -pdf -interaction=batchmode --shell-escape

  all: $(PDF)
  .PHONY: all

  test:
      echo $(TEX)
      echo $(PDF)

  %.pdf: %.tex
      $(LATEXMK) $(LATEXMKFLAGS) $<

  show:
      zathura $(PDF) > /dev/null 2>&1 &

  clean:
      rm -f $(TEMPFILES) $(PDF)

Clean

latexmk -C

XeLatex

latexmk -xelatex -interaction=batchmode —shell-escape demo

Listen

Koma

Macros

\newcommand{name}[num]{definition}
\newcommand{\texthex}[1]{\texttt{#1}}