From 5b2aaad235f889d25e89dd24f4613e5466855bdd Mon Sep 17 00:00:00 2001
From: Jan Benda <jan.benda@uni-tuebingen.de>
Date: Tue, 24 Nov 2015 23:08:43 +0100
Subject: [PATCH] Fixed table rows.

---
 header.tex                                    |   5 +
 plotting/lecture/plotting-chapter.tex         |   2 +-
 plotting/lecture/plotting.tex                 | 100 ++++++++----------
 .../lecture/pointprocesses-chapter.tex        |   2 +-
 programming/lecture/programming-chapter.tex   |   2 +-
 programming/lecture/programming.tex           |  51 +++++----
 .../lecture/programmingstyle-chapter.tex      |   2 +-
 statistics/lecture/statistics-chapter.tex     |   2 +-
 8 files changed, 79 insertions(+), 87 deletions(-)

diff --git a/header.tex b/header.tex
index 201f295..aede0ad 100644
--- a/header.tex
+++ b/header.tex
@@ -140,6 +140,11 @@
 \newcommand{\tabrefb}[1]{\tabb~\tref{#1}}
 \newcommand{\tabsrefb}[1]{\tabsb~\tref{#1}}
 
+% invisible rule for expanding the height of a row in a table header:
+\newcommand{\erh}{\rule[-1.2ex]{0pt}{3.5ex}}
+% invisible rule for expanding the height of a row in a table body:
+\newcommand{\erb}{\rule{0pt}{2.5ex}}
+
 %%%%% equation references %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %\newcommand{\eqref}[1]{(\ref{#1})}
 \newcommand{\eqn}{\tr{Eq}{Gl}.}
diff --git a/plotting/lecture/plotting-chapter.tex b/plotting/lecture/plotting-chapter.tex
index faab54e..9dab40d 100644
--- a/plotting/lecture/plotting-chapter.tex
+++ b/plotting/lecture/plotting-chapter.tex
@@ -5,7 +5,7 @@
 \lstset{inputpath=../code}
 \graphicspath{{images/}}
 
-\setcounter{page}{45}
+\setcounter{page}{33}
 \setcounter{chapter}{1}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/plotting/lecture/plotting.tex b/plotting/lecture/plotting.tex
index ac917f1..86164b3 100644
--- a/plotting/lecture/plotting.tex
+++ b/plotting/lecture/plotting.tex
@@ -241,51 +241,41 @@ Farben ist vordefiniert kann aber durch das Setzen einer
 die Farbe und die verschiedenen Marker.
 
 \begin{table}[tp]
-   \titlecaption{Vordefinierte Linienstile (links), Farben (Mitte) und Markersymbole (rechts).}{}\label{plotlinestyles}
-   \begin{minipage}[t]{0.3\textwidth}
-     \vspace{0pt}
-     \begin{tabular}{lc} \hline
-       \textbf{Linienstil} & \textbf{K\"urzel} \\\hline
-       durchgezogen  & '\verb|-|' \\
-       gestrichelt   & '\verb|--|' \\
-       gepunktet  & '\verb|:|' \\
-       Strichpunkte & '\verb|.-|' \\\hline
-     \end{tabular}
-   \end{minipage}
-   \vspace{0pt}
-   \begin{minipage}[t]{.3\textwidth}
-     \vspace{0pt}
-     \hspace{0.05\textwidth}
-     \begin{tabular}{lc} \hline
-       \textbf{Farbe} & \textbf{K\"urzel} \\ \hline
-       Rot & 'r'\\
-       Gr\"un  & 'g' \\
-       Blau & 'b' \\
-       Cyan  & 'c' \\
-       Magenta  & 'm' \\
-       Gelb  & 'y' \\
-       Schwarz  & 'k' \\ \hline
-     \end{tabular}
-   \end{minipage}
-   \vspace{0pt}
-   \begin{minipage}[t]{0.3\textwidth}
-     \vspace{0pt}
-     \begin{tabular}{lc} \hline
-       \textbf{Markersymbol} & \textbf{K\"urzel} \\ \hline
-       Kreis & 'o'\\
-       Stern  & '*' \\
-       Plus & '+' \\
-       Kreuz & 'x' \\
-       Diamant  & 'd' \\
-       Pentagramm  & 'p' \\
-       Hexagramm  & 'h' \\
-       Quadrat  & 's' \\
-       Dreieck  & '\^{}' \\
-       Umgekehrtes Dreieck  & 'v' \\
-       Dreieck links & '$<$'\\
-       Dreieck rechts & '$>$'\\\hline
-     \end{tabular}
-   \end{minipage}
+  \titlecaption{Vordefinierte Linienstile (links), Farben (Mitte) und Markersymbole (rechts).}{}\label{plotlinestyles}
+  \begin{tabular}[t]{lc} \hline
+    \textbf{Linienstil} & \textbf{K\"urzel} \erh \\\hline
+    durchgezogen  & '\verb|-|' \erb \\
+    gestrichelt   & '\verb|--|' \\
+    gepunktet  & '\verb|:|' \\
+    Strichpunkte & '\verb|.-|' \\\hline
+  \end{tabular}
+  \hfill
+  \begin{tabular}[t]{lc} \hline
+    \textbf{Farbe} & \textbf{K\"urzel} \erh \\ \hline
+    Rot & 'r' \erb \\
+    Gr\"un  & 'g' \\
+    Blau & 'b' \\
+    Cyan  & 'c' \\
+    Magenta  & 'm' \\
+    Gelb  & 'y' \\
+    Schwarz  & 'k' \\ \hline
+  \end{tabular}
+  \hfill
+  \begin{tabular}[t]{lc} \hline
+    \textbf{Markersymbol} & \textbf{K\"urzel} \erh \\ \hline
+    Kreis & 'o' \erb \\
+    Stern  & '*' \\
+    Plus & '+' \\
+    Kreuz & 'x' \\
+    Diamant  & 'd' \\
+    Pentagramm  & 'p' \\
+    Hexagramm  & 'h' \\
+    Quadrat  & 's' \\
+    Dreieck  & '\^{}' \\
+    Umgekehrtes Dreieck  & 'v' \\
+    Dreieck links & '$<$'\\
+    Dreieck rechts & '$>$'\\\hline
+  \end{tabular}
 \end{table}
 
 \subsection{Ver\"andern von Linieneigenschaften}
@@ -332,10 +322,10 @@ der gerade aktiven Achse.
 
 \begin{table}[tp] 
   \titlecaption{Ausgew\"ahlte Eigenschaften der Achse.}{ Alle Eigenschaften der Achse findet man in der Hilfe oder im \codeterm{Property Editor} (\figref{ploteditorfig}). Wenn es eine definierte Auswahl von Einstellungen gibt, z.B. bei der Eigenschaft \code{Box}, dann ist die Standardeinstellungen als erstes gelistet.}\label{plotaxisprops}
-  \begin{tabular*}{1\textwidth}{lp{6.3cm}p{6cm}} \hline
-    \textbf{Eigenschaft} & \textbf{Beschreibung} & \textbf{Optionen} \\ \hline
-    \code{Box} & Definiert, ob der Rahmen der Achse vollst\"andig gezeichnet wird. & $\{'on'|'off'\}$ \\
-    \code{Color}  & Hintergrundfarbe des Koordinatensystems. & Beliebige RGB, CMYK ... Werte. \\
+  \begin{tabular*}{1\textwidth}{lp{5.8cm}p{5.5cm}} \hline
+    \textbf{Eigenschaft} & \textbf{Beschreibung} & \textbf{Optionen} \erh \\ \hline
+    \code{Box} & Definiert, ob der Rahmen der Achse vollst\"andig gezeichnet wird. & $\{'on'|'off'\}$ \erb \\
+    \code{Color}  & Hintergrundfarbe des Koordinatensystems. & Beliebige RGB, CMYK Werte. \\
     \code{Fontname} & Der Name der Schriftart. & Im System installierte Schriften. \\
     \code{FontSize} & Gr\"o{\ss}e der Schrift. & Skalarer Wert.\\
     \code{FontUnit} & Einheit, in der die Schriftgr\"o{\ss}e bestimmt wird. &  $\{'points' | 'centimeters' | 'inches', ...\}$\\
@@ -355,10 +345,10 @@ der gerade aktiven Achse.
 \subsection{Ver\"andern von Figure-Einstellungen}
 
 \begin{table}[tp] 
-  \titlecaption{Ausgew\"ahlte Eigenschaften der \enterm[figure]{Figure}.}{Alle Eigenschaften der Figure findet man in der Hilfe von \matlab{} oder im \codeterm{Property Editor} wenn die Abbildung ausgew\"ahlt wurde (\figref{ploteditorfig}).}\label{plotfigureprops}
-  \begin{tabular*}{1\textwidth}{lp{6.3cm}p{6cm}} \hline
-    \textbf{Eigenschaft} & \textbf{Beschreibung} & \textbf{Optionen} \\ \hline
-    \code{Color}  & Hintergrundfarbe der Zeichenfl\"ache. & Beliebige RGB, CMYK ... Werte. \\
+  \titlecaption{Ausgew\"ahlte Eigenschaften der Figure.}{Alle Eigenschaften der \enterm[figure]{Figure} findet man in der Hilfe von \matlab{} oder im \codeterm{Property Editor} wenn die Abbildung ausgew\"ahlt wurde (\figref{ploteditorfig}).}\label{plotfigureprops}
+  \begin{tabular*}{1\textwidth}{lp{6.6cm}p{5.7cm}} \hline
+    \textbf{Eigenschaft} & \textbf{Beschreibung} & \textbf{Optionen} \erh \\ \hline
+    \code{Color}  & Hintergrundfarbe der Zeichenfl\"ache. & Beliebige RGB, CMYK Werte. \erb \\
     \code{PaperPosition} & Position der Abbildung auf dem Papier & 4-elementiger Vektor mit den Positionen der linken-unteren, und rechten-oberen Ecke. \\
     \code{PaperSize} & Gr\"o{\ss}e der des Papiers. & 2-elementiger Vektor mit der Papiergr\"o{\ss}e.\\
     \code{PaperUnits} & Einheit, in der die Papiergr\"o{\ss}e bestimmt wird. &  $\{'inches' | 'centimeters' | 'normalized' | 'points'\}$\\
@@ -427,8 +417,8 @@ Homepage viele Beispiele mit zugeh\"origem Code
     Von \matlab{} unterst\"utzte Formate\footnote{Auswahl, mehr Information in der Hilfe zu \code{saveas()}}:\\[2ex]
     \begin{tabular}{|l|c|l|}
       \hline
-      \textbf{Format} & \textbf{Typ} & \code{saveas()} Argument \rule[-1.2ex]{0pt}{3.5ex} \\ \hline
-      pdf & Vektor & \varcode{'pdf'} \rule{0pt}{2.5ex} \\
+      \textbf{Format} & \textbf{Typ} & \code{saveas()} Argument \erh \\ \hline
+      pdf & Vektor & \varcode{'pdf'} \erb \\
       eps & Vektor & \varcode{'eps'}, \varcode{'epsc'} \\
       SVG & Vektor & \varcode{'svg'} \\
       PS  & Vektor & \varcode{'ps'}, \varcode{'psc'} \\
diff --git a/pointprocesses/lecture/pointprocesses-chapter.tex b/pointprocesses/lecture/pointprocesses-chapter.tex
index 70de527..3dfc545 100644
--- a/pointprocesses/lecture/pointprocesses-chapter.tex
+++ b/pointprocesses/lecture/pointprocesses-chapter.tex
@@ -5,7 +5,7 @@
 \lstset{inputpath=../code}
 \graphicspath{{figures/}}
 
-\setcounter{page}{111}
+\setcounter{page}{99}
 \setcounter{chapter}{7}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/programming/lecture/programming-chapter.tex b/programming/lecture/programming-chapter.tex
index 8eb19a1..3c02596 100644
--- a/programming/lecture/programming-chapter.tex
+++ b/programming/lecture/programming-chapter.tex
@@ -5,7 +5,7 @@
 \lstset{inputpath=../code}
 \graphicspath{{images/}}
 
-\setcounter{page}{15}
+\setcounter{page}{3}
 \setcounter{chapter}{0}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/programming/lecture/programming.tex b/programming/lecture/programming.tex
index 065c078..b94ab30 100644
--- a/programming/lecture/programming.tex
+++ b/programming/lecture/programming.tex
@@ -142,8 +142,8 @@ unterschiedlichem Speicherbedarf und Wertebreich.
   \titlecaption{Grundlegende numerische Datentypen und ihr Wertebereich.}{}
   \label{dtypestab}
   \begin{tabular}{llcl}\hline
-    Datentyp & Speicherbedarf & Wertebereich & Beispiel \rule{0pt}{2.5ex} \\ \hline
-    double & 64 bit & $\approx -10^{308}$ bis $\approx 10^{308} $&  Flie{\ss}kommazahlen.\rule{0pt}{2.5ex}\\
+    Datentyp & Speicherbedarf & Wertebereich & Beispiel \erh \\ \hline
+    double & 64 bit & $\approx -10^{308}$ bis $\approx 10^{308} $&  Flie{\ss}kommazahlen.\erb\\
     int & 64 bit & $-2^{31}$ bis $2^{31}-1$ &  Ganzzahlige Werte  \\
     int16 & 16 bit & $-2^{15}$ bis $2^{15}-1$ & Digitalisierte Spannungen. \\
     uint8 & 8 bit & $0$ bis $255$ & Digitalisierte Imaging Daten. \\ \hline  
@@ -667,22 +667,19 @@ Ausdr\"ucke sich zu wahr auswerten lassen.
 
 \begin{table}[tp]
   \titlecaption{Wahrheitstabellen logisches UND (links) und logisches ODER (rechts).}{}\label{logicalandor}
-  \begin{minipage}[t]{0.4\textwidth}
-    \begin{tabular}{llll}
-      \multicolumn{2}{l}{\multirow{2}{*}{}}  & \multicolumn{2}{c}{\textbf{B}} \\
-      \multicolumn{2}{l}{} & \multicolumn{1}{|c|}{wahr} & falsch \\ \cline{2-4} 
-      \multirow{2}{*}{\textbf{A}} & \multicolumn{1}{l|}{wahr}   & \multicolumn{1}{c|}{\textcolor{mygreen}{wahr}} &  \textcolor{red}{falsch}      \\ \cline{2-4} 
-      & \multicolumn{1}{l|}{falsch} & \multicolumn{1}{l|}{\textcolor{red}{falsch}} & \textcolor{red}{falsch}      
-    \end{tabular}
-  \end{minipage}
-  \begin{minipage}[t]{0.4\textwidth}
-    \begin{tabular}{llll}
-      \multicolumn{2}{l}{\multirow{2}{*}{}}            & \multicolumn{2}{c}{\textbf{B}}      \\
-      \multicolumn{2}{l}{}                             & \multicolumn{1}{|c|}{wahr} & falsch \\ \cline{2-4} 
-      \multirow{2}{*}{\textbf{A}} & \multicolumn{1}{l|}{wahr}   & \multicolumn{1}{c|}{\textcolor{mygreen}{wahr}}     &  \textcolor{mygreen}{wahr}      \\ \cline{2-4} 
-      & \multicolumn{1}{l|}{falsch} & \multicolumn{1}{l|}{\textcolor{mygreen}{wahr}}     & \textcolor{red}{falsch}      
-    \end{tabular}
-  \end{minipage}
+  \begin{tabular}{llll}
+    \multicolumn{2}{l}{\multirow{2}{*}{}}  & \multicolumn{2}{c}{\textbf{B}} \\
+    \multicolumn{2}{l}{} & \multicolumn{1}{|c}{wahr} & falsch \\ \cline{2-4} 
+    \multirow{2}{*}{\textbf{A}} & \multicolumn{1}{l|}{wahr}   & \multicolumn{1}{c}{\textcolor{mygreen}{wahr}} &  \textcolor{red}{falsch} \erb \\ 
+    & \multicolumn{1}{l|}{falsch} & \multicolumn{1}{l}{\textcolor{red}{falsch}} & \textcolor{red}{falsch}      
+  \end{tabular}
+  \hspace{0.1\textwidth}
+  \begin{tabular}{llll}
+    \multicolumn{2}{l}{\multirow{2}{*}{}}            & \multicolumn{2}{c}{\textbf{B}}      \\
+    \multicolumn{2}{l}{}                             & \multicolumn{1}{|c}{wahr} & falsch \\ \cline{2-4} 
+    \multirow{2}{*}{\textbf{A}} & \multicolumn{1}{l|}{wahr}   & \multicolumn{1}{c}{\textcolor{mygreen}{wahr}}     &  \textcolor{mygreen}{wahr}  \erb    \\
+    & \multicolumn{1}{l|}{falsch} & \multicolumn{1}{l}{\textcolor{mygreen}{wahr}}     & \textcolor{red}{falsch}      
+  \end{tabular}
 \end{table}
 
 Anders ist das beim logischen ODER. Hier ist der gesamte Ausdruck
@@ -704,10 +701,10 @@ verf\"ugbar.
   \titlecaption{\label{logicaloperators}
     Logische  Operatoren in \matlab.}{}
   \begin{center}
-    \begin{tabular}{c|c}
+    \begin{tabular}{cc}
       \hline
-      \textbf{Operator} & \textbf{Beschreibung} \\ \hline
-      $\sim$ & logisches NOT\\
+      \textbf{Operator} & \textbf{Beschreibung} \erh \\ \hline
+      $\sim$ & logisches NICHT \erb \\
       $\&$ &  logisches UND\\
       $|$ & logisches ODER\\
       $\&\&$ & short-circuit logisches UND\\
@@ -727,10 +724,10 @@ Gleichheit (\varcode{==}) gr\"o{\ss}er oder kleiner als (\varcode{>},
   \titlecaption{\label{relationaloperators}
     Relationale Operatoren in \matlab.}{}
   \begin{center}
-    \begin{tabular}{c|c}
+    \begin{tabular}{cc}
       \hline
-      \textbf{Operator} & \textbf{Beschreibung} \\ \hline
-      $<$ & kleiner als\\
+      \textbf{Operator} & \textbf{Beschreibung} \erh \\ \hline
+      $<$ & kleiner als \erb \\
       $>$ &  gr\"o{\ss}er als \\
       $==$ & gleich \\
       $>=$ & gr\"o{\ss}er oder gleich \\
@@ -845,7 +842,7 @@ bestimmten Zeitraums ausw\"ahlen m\"ochte (Abbildung
 \ref{logicalindexingfig}).
 
 
-\begin{figure}[h]
+\begin{figure}[t]
   \includegraphics[width= 0.9\columnwidth]{logicalIndexingTime}
   \titlecaption{Beispiel f\"ur logisches Indizieren.}
     {Der rot markierte Abschnitt aus den Daten wurde indirekt
@@ -1108,8 +1105,8 @@ switch-Anweisung und der case-Anweisung getestet wird.
 
 Soll die Ausf\"uhrung einer Schleife abgebrochen oder \"ubersprungen
 werden, werden die Schl\"usselworte \code{break} und
-\code{continue} eingesetzt (Listing \ref{breakcontinuelisting}
-zeigt, wie sie eingesetzt werden k\"onnen).
+\code{continue} eingesetzt (Listings \ref{continuelisting}
+und \ref{continuelisting} zeigen, wie sie eingesetzt werden k\"onnen).
 
 \begin{lstlisting}[caption={Abbrechen von Schleifen mit \varcode{break}.}, label=breaklisting]
 >> x = 1;
diff --git a/programmingstyle/lecture/programmingstyle-chapter.tex b/programmingstyle/lecture/programmingstyle-chapter.tex
index d82204d..df8f625 100644
--- a/programmingstyle/lecture/programmingstyle-chapter.tex
+++ b/programmingstyle/lecture/programmingstyle-chapter.tex
@@ -5,7 +5,7 @@
 \lstset{inputpath=../code}
 \graphicspath{{figures/}}
 
-\setcounter{page}{57}
+\setcounter{page}{45}
 \setcounter{chapter}{2}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/statistics/lecture/statistics-chapter.tex b/statistics/lecture/statistics-chapter.tex
index ad93f38..fee3bac 100644
--- a/statistics/lecture/statistics-chapter.tex
+++ b/statistics/lecture/statistics-chapter.tex
@@ -5,7 +5,7 @@
 \lstset{inputpath=../code}
 \graphicspath{{figures/}}
 
-\setcounter{page}{69}
+\setcounter{page}{57}
 \setcounter{chapter}{3}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%