pyafm/stack.tex: Use a little thermometer in the caption :)
authorW. Trevor King <wking@tremily.us>
Thu, 16 May 2013 01:50:33 +0000 (21:50 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 16 May 2013 01:50:33 +0000 (21:50 -0400)
Rename the old '\thermometer' -> '\thermometerx' to make room for the
new user-facing '\thermometer' command.

src/local_cmmds.tex
src/pyafm/stack.tex

index b1cbac38ecf3e248ec7388c0eac06b384806e007..ad01d3de1c1b0fc4eae16c50a36a1070652f775d 100644 (file)
 }
 
 % draw a thermometer in TikZ
-% usage: \thermometer{bulb-location}
-\newcommand{\thermometer}[1]{
+% usage: \thermometerx{bulb-location}
+\newcommand{\thermometerx}[1]{
   \draw[blue!20, line width=4pt, cap=round] #1 -- +(0, 12pt);
   \fill[blue!20] #1 circle (5pt);
   \draw[red, line width=2pt, cap=butt] #1 -- +(0, 8pt);
   \fill[red] #1 circle (4pt);
 }
 
+\DeclareRobustCommand{\thermometer}{%
+  \raisebox{-2pt}{%
+    \resizebox{!}{10pt}{%
+      \begin{tikzpicture}%
+        \thermometerx{(0,2.5pt)};%
+      \end{tikzpicture}%
+    }%
+  }%
+}
+
 % shared figure between pyafm and calibcant
 % usage: \tikzstack{unfold-protein-color}{calibcant-color}
 \newcommand{\tikzstack}[2]{%
     \node[shape=rectangle,draw=black, semithick]
       (motor) at ($(image.south) + (0, -1)$) {motor};
     \coordinate (thermocouple) at ($(image.west) + (1.4, -4pt)$);
-    \thermometer{(thermocouple)}
+    \thermometerx{(thermocouple)}
     \coordinate (photodiode) at ($(image.west) + (1, 26pt)$);
     \coordinate (piezo) at ($(image.south) + (-6pt, 0)$);
     \draw[black!20,dashed] ($(daq.south west) + (-10pt, 0)$) -- +(0, 4);
index 68eea4b02603ab918aeae404846a3578d80d0846..c7a6ffb3c363ebb551ed4b25a3268ddf21cc39a5 100644 (file)
@@ -28,7 +28,8 @@ spectroscopy (\cref{fig:pyafm:stack}).
     \pypid\ package measures the buffer temperature using a
     thermocouple inserted in the fluid cell (\tikzline{purple,<-},
     \cref{sec:pyafm:pypid}).  I represent the thermocouple with a
-    thermometer icon, because I expect it is more recognizable than
+    thermometer icon (\thermometer), because I expect it is more
+    recognizable than a more realistic
     \thermocouple.\label{fig:pyafm:stack}}
 \end{figure}