From: W. Trevor King Date: Thu, 16 May 2013 01:50:33 +0000 (-0400) Subject: pyafm/stack.tex: Use a little thermometer in the caption :) X-Git-Tag: v1.0~188 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ea838963e49708420a009904cf4f204756ccf2cd;p=thesis.git pyafm/stack.tex: Use a little thermometer in the caption :) Rename the old '\thermometer' -> '\thermometerx' to make room for the new user-facing '\thermometer' command. --- diff --git a/src/local_cmmds.tex b/src/local_cmmds.tex index b1cbac3..ad01d3d 100644 --- a/src/local_cmmds.tex +++ b/src/local_cmmds.tex @@ -209,14 +209,24 @@ } % 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]{% @@ -242,7 +252,7 @@ \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); diff --git a/src/pyafm/stack.tex b/src/pyafm/stack.tex index 68eea4b..c7a6ffb 100644 --- a/src/pyafm/stack.tex +++ b/src/pyafm/stack.tex @@ -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}