[gnome-university] c101: make figures stay in place.



commit 531de1ce37341a65398660b06a2efbf2c3f3bc9c
Author: Christian Hergert <christian hergert me>
Date:   Sun Nov 11 20:27:31 2012 -0800

    c101: make figures stay in place.

 c101/tex/chapter2.tex |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/c101/tex/chapter2.tex b/c101/tex/chapter2.tex
index ddcd78f..9563e9d 100644
--- a/c101/tex/chapter2.tex
+++ b/c101/tex/chapter2.tex
@@ -84,7 +84,7 @@ The type \verb|short| is used to hold integers just like \verb|int|.
 However, it can only hold a subset of them (from -32767 to 32768).
 That might seem not very worth while, until you learn that it only takes half the space of an \verb|integer|!
 
-\begin{figure}
+\begin{figure}[h!]
 \centering
 \begin{tabular}{r c l}
 Type & Size & Description \\
@@ -151,13 +151,19 @@ The value is \verb|200| which we calculated and assigned to \verb|x| on the firs
 Then we multiply that by \verb|5| for a result of \verb|1000|.
 Finally, the value \verb|1000| is assigned to \verb|x|.
 
+\begin{figure}[h!]
+\centering
 \begin{tabular}{c l l}
-\verb|+| & addition of two values & \verb|100 + 20| $\Rightarrow$ \verb|120| \\
+& & \\
+\verb|+| & Addition of two values & \verb|100 + 20| $\Rightarrow$ \verb|120| \\
 \verb|-| & subtraction of two values & \verb|100 - 20| $\Rightarrow$ \verb|80| \\
-\verb|*| & multiplication of two values & \verb|100 * 20| $\Rightarrow$ \verb|2000| \\
-\verb|/| & division of two values & \verb|100 / 20| $\Rightarrow$ 5 \\
-\verb|%| & remainder of division of two values & \verb|100 % 9| $\Rightarrow$ 1 \\
+\verb|*| & Multiplication of two values & \verb|100 * 20| $\Rightarrow$ \verb|2000| \\
+\verb|/| & Division of two values & \verb|100 / 20| $\Rightarrow$ 5 \\
+\verb|%| & Remainder of division of two values & \verb|100 % 9| $\Rightarrow$ 1 \\
+& & \\
 \end{tabular}
+\caption{Arithmetic Operators}
+\end{figure}
 
 TODO
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]