New ibox and important environment.
Fixed listofs. New \titlecaption.
This commit is contained in:
@@ -10,7 +10,7 @@ all : pdf
|
||||
# script:
|
||||
pdf : $(BASENAME)-chapter.pdf
|
||||
|
||||
$(BASENAME)-chapter.pdf : $(BASENAME)-chapter.tex $(BASENAME).tex $(PYPDFFILES)
|
||||
$(BASENAME)-chapter.pdf : $(BASENAME)-chapter.tex $(BASENAME).tex $(PYPDFFILES) ../../header.tex
|
||||
pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true
|
||||
|
||||
$(PYPDFFILES) : %.pdf : %.py
|
||||
|
||||
@@ -28,7 +28,7 @@ befassen.
|
||||
\includegraphics[width=.8\textwidth]{variableB}
|
||||
\label{variable:b}
|
||||
\end{subfigure}
|
||||
\caption{\textbf{Variablen.} Variablen sind Zeiger auf eine Adresse
|
||||
\titlecaption{Variablen.}{Variablen sind Zeiger auf eine Adresse
|
||||
im Speicher, die einen Namen und einen Datentypen beinhalten. Im
|
||||
Speicher ist der Wert der Variable bin\"ar gespeichert. Abh\"angig
|
||||
vom Datentyp wird dieses Bitmuster unterschiedlich
|
||||
@@ -134,7 +134,7 @@ unterschiedlichem Speicherbedarf und Wertebreich.
|
||||
|
||||
\begin{table}[]
|
||||
\centering
|
||||
\caption{Grundlegende Datentypen und ihr Wertebereich.}
|
||||
\titlecaption{Grundlegende Datentypen und ihr Wertebereich.}
|
||||
\label{dtypestab}
|
||||
\begin{tabular}{llcl}\hline
|
||||
Datentyp & Speicherbedarf & Wertebereich & Beispiel \rule{0pt}{2.5ex} \\ \hline
|
||||
@@ -187,7 +187,7 @@ enth\"alt in diesem Beispiel vier ganzzahlige Werte.
|
||||
|
||||
\begin{figure}
|
||||
\includegraphics[width=0.8\columnwidth]{scalarArray}
|
||||
\caption{\textbf{Skalare und Vektoren. A)} Eine skalare Variable kann
|
||||
\titlecaption{Skalare und Vektoren.}{\textbf{A)} Eine skalare Variable kann
|
||||
genau einen Wert tragen. \textbf{B)} Ein Vektor kann mehrer
|
||||
Werte des gleichen Datentyps (z.B. ganzzahlige Integer Werte)
|
||||
beinhalten. \matlab{} kennt den Zeilen- (row-) und Spaltenvektor
|
||||
@@ -255,7 +255,7 @@ Zeilenvektor.
|
||||
\subsubsection{Zugriff auf Inhalte von Vektoren}
|
||||
\begin{figure}
|
||||
\includegraphics[width=0.4\columnwidth]{arrayIndexing}
|
||||
\caption{\textbf{Indices von Vektoren.} Jedes Feld eines Vektors hat
|
||||
\titlecaption{Indices von Vektoren.}{Jedes Feld eines Vektors hat
|
||||
einen Index mit dem auf den jeweiligen Inhalt zugegriffen werden
|
||||
kann.}\label{vectorindexingfig}
|
||||
\end{figure}
|
||||
@@ -411,7 +411,7 @@ bis 3-d Matrizen (Abbildung \ref{matrixfig} A,B).
|
||||
|
||||
\begin{figure}
|
||||
\includegraphics[width=0.5\columnwidth]{matrices}
|
||||
\caption{\textbf{Matrizen. A)} Eine Variable (``test'') die eine
|
||||
\titlecaption{Matrizen.}{\textbf{A)} Eine Variable (``test'') die eine
|
||||
2-dimensionale Matrize ist. \textbf{B)} Illustration einer
|
||||
3-dimensionalen Matrize. Die Pfeile zeigen den Rang der
|
||||
Dimensionen an.}\label{matrixfig}
|
||||
@@ -457,7 +457,7 @@ Matrizen geht, wird \code{size} benutzt.
|
||||
|
||||
\begin{figure}
|
||||
\includegraphics[width=0.9\columnwidth]{matrixIndexing}
|
||||
\caption{\textbf{Indices von Matrizen.} Jedes Feld einer Matrize
|
||||
\titlecaption{Indices von Matrizen.}{Jedes Feld einer Matrize
|
||||
wird durch einen Index individuell angesprochen. Der Index setzt
|
||||
sich aus so vielen Zahlen zusammen wie es Dimensionen gibt (links
|
||||
2, rechts 3). Dabei steht die 1. Stelle immer f\"ur die Zeile, die
|
||||
@@ -508,7 +508,7 @@ den Minimalwert aller Elemente einer Matrize ermitteln m\"ochte..
|
||||
|
||||
\begin{figure}
|
||||
\includegraphics[width=0.9\columnwidth]{matrixLinearIndexing}
|
||||
\caption{\textbf{Lineares Indexieren von Matrizen.} Der Index steigt
|
||||
\titlecaption{Lineares Indexieren von Matrizen.}{Der Index steigt
|
||||
linear von 1 bis zur Anzahl Elemente in der Matrize an. Dabei
|
||||
steigt der Index zuerst entlang der ersten, zweiten, dritten und
|
||||
weiterer Dimensionen an.}\label{matrixlinearindexingfig}
|
||||
@@ -589,7 +589,7 @@ der gesamte Ausdruck nur dann wahr, wenn beide Ausdr\"ucke sich zu
|
||||
wahr auswerten lassen.
|
||||
|
||||
\begin{table}[tp]
|
||||
\caption{Wahrheitstabellen logisches UND (links) und logisches ODER (rechts).}\label{logicalandor}
|
||||
\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}} \\
|
||||
@@ -623,8 +623,8 @@ ODER (XOR) ist in \matlab{} nur als Funktion \code{xor(A, B)}
|
||||
verf\"ugbar.
|
||||
|
||||
\begin{table}[th]
|
||||
\caption{\label{logicaloperators}
|
||||
\textbf{Logische Operatoren in \matlab.}}
|
||||
\titlecaption{\label{logicaloperators}
|
||||
Logische Operatoren in \matlab.}{}
|
||||
\begin{center}
|
||||
\begin{tabular}{c|c}
|
||||
\hline
|
||||
@@ -645,8 +645,8 @@ auf Dinge wie Gleicheit (\code{==}) gr\"o{\ss}er oder kleiner als
|
||||
(\code{>}, \code{<}) testen.
|
||||
|
||||
\begin{table}[th]
|
||||
\caption{\label{relationaloperators}
|
||||
\textbf{Relationale Operatoren in \matlab.}}
|
||||
\titlecaption{\label{relationaloperators}
|
||||
Relationale Operatoren in \matlab.}{}
|
||||
\begin{center}
|
||||
\begin{tabular}{c|c}
|
||||
\hline
|
||||
@@ -764,8 +764,8 @@ bestimmten Zeitraums ausw\"ahlen m\"ochte (Abbildung
|
||||
|
||||
\begin{figure}[h]
|
||||
\includegraphics[width= 0.9\columnwidth]{logicalIndexingTime}
|
||||
\caption{\textbf{Beispiel f\"ur ``indirektes'' logisches Indizieren.}
|
||||
Der rot markierte Abschnitt aus den Daten wurde ``indirekt''
|
||||
\titlecaption{Beispiel f\"ur ``indirektes'' logisches Indizieren.}
|
||||
{Der rot markierte Abschnitt aus den Daten wurde ``indirekt''
|
||||
anhand logischen Indizierens auf dem Zeitvektor
|
||||
ausgew\"ahlt.}\label{logicalindexingfig}
|
||||
\end{figure}
|
||||
@@ -957,14 +957,14 @@ end
|
||||
\end{lstlisting}
|
||||
|
||||
\begin{exercise}{ifelse.m}{}
|
||||
Ziehe eine Zufallszahl und \"uberpr\"ufe mit einer geegnet \ciode{if} Anweisung, ob sie:
|
||||
Ziehe eine Zufallszahl und \"uberpr\"ufe mit einer geegnet \code{if} Anweisung, ob sie:
|
||||
\begin{enumerate}
|
||||
\item ... kleiner als 0.5 ist.
|
||||
\item ... kleiner oder gr\"o{\ss}er-gleich 0.5 ist.
|
||||
\item ... kleiner als 0.5, gr\"o{\ss}er oder gleich 0.5 aber kleiner
|
||||
als 0.75 ist oder gr\"o{\ss}er oder gleich 0.75 ist.
|
||||
\end{enumerate}
|
||||
\end{execise}
|
||||
\end{exercise}
|
||||
|
||||
\subsubsection{Die \code{switch} -- Verzweigung}
|
||||
|
||||
@@ -1300,8 +1300,17 @@ gemacht den Rahmen zu bilden und den Ablauf zu koordinieren (Abbildung
|
||||
|
||||
\begin{figure}
|
||||
\includegraphics[width=0.5\columnwidth]{./images/simple_program.pdf}
|
||||
\caption{\textbf{Ein typisches Programmlayout.} Das Kontrollskript
|
||||
\titlecaption{Ein typisches Programmlayout.}{Das Kontrollskript
|
||||
koordiniert den Aufruf der Funktionen, \"ubergibt Argumente und
|
||||
nimmt R\"uckgabewerte entgegen.}\label{programlayoutfig}
|
||||
\end{figure}
|
||||
|
||||
|
||||
|
||||
\begin{ibox}[tp]{Python}
|
||||
The cooler programming language.
|
||||
\end{ibox}
|
||||
|
||||
|
||||
\begin{important}
|
||||
Something you should really remember.
|
||||
\end{important}
|
||||
|
||||
Reference in New Issue
Block a user