Transition from \asyfig to the stock \asyinclude.
authorW. Trevor King <wking@drexel.edu>
Sat, 14 May 2011 17:41:27 +0000 (13:41 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 14 May 2011 17:41:27 +0000 (13:41 -0400)
12 files changed:
tex/site_cons/site_tools/asymptote.py
tex/src/apparatus/afm.tex
tex/src/apparatus/procedure.tex
tex/src/blurb/acknowledgments.tex
tex/src/cantilever-calib/contour_integration.tex
tex/src/cantilever/methods.tex
tex/src/cantilever/simulations.tex
tex/src/cantilever/theory.tex
tex/src/packages.tex
tex/src/root.tex
tex/src/sawsim/discussion.tex
tex/src/sawsim/methods.tex

index 1ad546637bd7b7a50c85325f1138de12f63b71ad..f954bd16983d1c38451e8ab02d63f41cec3e054d 100644 (file)
@@ -9,8 +9,8 @@ import doctest
 
 double_quoted_string_re = re.compile(r'"([^"]*)"', re.M)
 
-# SCons' LaTeX scanner doesn't understand \asyfig{}, so keep track of
-# all Asymptote graphics for phony target creation.
+# SCons' LaTeX scanner doesn't understand \asyinclude{}, so keep track
+# of all Asymptote graphics for phony target creation.
 asyfigs = []
 
 def asymptote_scan(node, env, path, arg=None):
@@ -58,10 +58,8 @@ def asymptote_scan(node, env, path, arg=None):
 def asymptote_emitter(target, source, env):
     assert str(source[0]).endswith('.asy'), str(source[0])
     filebase = str(source[0])[:-len('.asy')]
-    target.extend(['%s_%s' % (filebase, ext)
-                   for ext in ['.tex', '.pre', '0.pdf']])
-    target.extend(['%s-comp.%s' % (filebase, ext)
-                   for ext in ['idx', 'log', 'nlo', 'pdf']])
+    target.extend(['%s%s' % (filebase, ext)
+                   for ext in ['.tex', '.pre', '_0.pdf']])
     source.append(SCons.Script.Alias('asytools'))
     # side effect, keep track of all asymptote graphics.
     asyfigs.append(target[0])
@@ -79,13 +77,12 @@ def generate(env):
     #pdf.generate(env)
 
     env['BUILDERS']['Asymptote'] = SCons.Script.Builder(
-        action=AsymptoteAction, suffix='_.tex', src_suffix = '.asy',
+        action=AsymptoteAction, suffix='.tex', src_suffix = '.asy',
         emitter=asymptote_emitter)
-    env['ASYMPTOTE'] = '../asy/asyprocess'
+
+    env['ASYMPTOTE'] = 'asy'
     env['ASYMPTOTEFLAGS'] = SCons.Util.CLVar(
-        "--texinputs=../..: "
-        "--pretex='\documentclass{drexel-thesis} \input{packages}' "
-        "--")
+        '-tex pdflatex -inlineimage -inlinetex')
     env['ASYMPTOTECOM']  = 'cd ${TARGET.dir} && $ASYMPTOTE $ASYMPTOTEFLAGS ${SOURCE.filebase}'
     env.Append(SCANNERS=SCons.Scanner.Base(
             function=asymptote_scan,
index 1fb8b56403d15d1c9e128901b52ba553e761ad5f..65b358e3b9834a634702cff6dfb4a9240992a661 100644 (file)
@@ -16,7 +16,7 @@ bending force constant of the cantilever is known\citep{levy02}, the
 force applied to the sample can be calculated.
 
 \begin{figure}
-  \asyfig{figures/schematic/afm}%
+  \asyinclude{figures/schematic/afm}%
   \caption{Operating principle for an Atomic Force
     Microscope\index{AFM}.  A sharp tip integrated at the end of a
     cantilever interacts with the sample.  Cantilever bending is
index 1c3e186682d8c1ca758a329bbb9a176bbf88919e..e1927f36d9927c8322a65a23cc18285544bb1e03 100644 (file)
@@ -33,10 +33,10 @@ multi-domain test proteins.
 
 \begin{figure}
   \begin{center}
-  \subfloat[][]{\asyfig{figures/schematic/unfolding}%
+  \subfloat[][]{\asyinclude{figures/schematic/unfolding}%
     \label{fig:unfolding-schematic}}
   % \hspace{.25in}%
-  \subfloat[][]{\asyfig{figures/expt-sawtooth/expt-sawtooth}%
+  \subfloat[][]{\asyinclude{figures/expt-sawtooth/expt-sawtooth}%
     \label{fig:expt-sawtooth}}
   \caption{(a) Schematic of the experimental setup for mechanical
     unfolding of proteins using an AFM (not to scale).  An experiment
index ea72b9654e4f17c1c3043f347ad61b3da7217795..fd02ef2f4230f183cf29893a5ec8b24c33c2890e 100644 (file)
@@ -5,8 +5,7 @@ This work was produced using the following open source software projects:
       \href{http://www.ctan.org/}{CTAN}]
   Typesetting.
 \item[\href{http://sourceforge.net/projects/pgf/}{PGF}/%
-      \href{http://asymptote.sourceforge.net/}{Asymptote}/%
-      \href{http://github.com/wspr/asyfig/}{Asyfig}]
+      \href{http://asymptote.sourceforge.net/}{Asymptote}]
   Graphical programming.
 \item[\href{http://www.python.org/}{Python}]
   General purpose scripting.
index 0f05d258f09abe3ca0146391b20efce844b68132..6bae7e674ef6e975352338133bf323de619aaece 100644 (file)
@@ -5,7 +5,7 @@ As a brief review, some definite integrals from $-\infty$ to $\infty$%
 along the contour \C\ shown in \cref{fig:UHP-contour}.
 
 \begin{figure}
-  \asyfig{figures/contour/contour}
+  \asyinclude{figures/contour/contour}
   \caption{Integral contour \C\ enclosing the upper half of the
     complex plane.  If the integrand $f(z)$ goes to zero ``quickly
     enough'' as the radius of \C\ approaches infinity, then the only
index 373f0450691b200e996b378537685c8e0e214392..83f100b340693e83892bb86fa87386d79483c286 100644 (file)
@@ -36,7 +36,7 @@ averaged across each cantilever-stiffness/pulling-speed group to
 produce \cref{fig:cant:v-dep}.
 
 \begin{figure}
-  \asyfig{figures/cantilever-data/v-dep}
+  \asyinclude{figures/cantilever-data/v-dep}
   \caption{Pulling speed dependence of I27 for different cantilever
     stiffnesses.  The listed stiffnesses are averages across several
     individual cantilevers and calibrations.  Each box is the average
@@ -55,6 +55,6 @@ loading rates were extracted from the data by taking the slope of the
 fit WLC\index{WLC} at unfolding.
 
 \begin{figure}
-  \asyfig{figures/cantilever-data/loading-rate}
+  \asyinclude{figures/cantilever-data/loading-rate}
   \caption{Loading rate.\label{fig:cant:load-dep}}
 \end{figure}
index fd9ff150e377e1eaef2a622e4028732f0bb77140..db4744c849c7ad61dd34b247f90c93d36795f5f8 100644 (file)
@@ -9,19 +9,19 @@ following results
 (\cref{fig:cant:sim:v-dep,fig:cant:sim:load-dep,fig:cant:sim:i-dep}).
 
 \begin{figure}
-  \asyfig{figures/cantilever-sim/v-dep}
+  \asyinclude{figures/cantilever-sim/v-dep}
   \caption{Unfolding force velocity dependence for different
     cantilevers.\label{fig:cant:sim:v-dep}}
 \end{figure}
 
 \begin{figure}
-  \asyfig{figures/cantilever-sim/loading-rate}
+  \asyinclude{figures/cantilever-sim/loading-rate}
   \caption{Unfolding force loading rate dependence simulations for
     different cantilevers.\label{fig:cant:sim:load-dep}}
 \end{figure}
 
 \begin{figure}
-  \asyfig{figures/cantilever-sim/i-dep}
+  \asyinclude{figures/cantilever-sim/i-dep}
   \caption{Unfolding force peak index dependence simulations for
     different cantilevers.\label{fig:cant:sim:i-dep}}
 \end{figure}
index ae30cd91e5a84743d05dd7e93018d972fafa7ec0..0daf5fe7f4da359a95d00efe473ce16a3187ace4 100644 (file)
@@ -1,7 +1,7 @@
 \section{Theory}
 
 \begin{figure}
-  \asyfig{figures/schematic/landscape-cant}
+  \asyinclude{figures/schematic/landscape-cant}
   \caption{Energy landscape schematic.\label{fig:landscape}}
 \end{figure}
 
index f6d62f283b4077ca443dd8bc2bb175af99c7baa0..ce6e2e757d95db8975c2ac0e07131620a31ac3f0 100644 (file)
@@ -61,7 +61,7 @@
 \usetikzlibrary{automata} % graph-theory library
 \usetikzlibrary{calc}     % coordinate-calculation library
 
-\usepackage{asyfig}       % more fancy graphics ;).
+\usepackage[inline]{asymptote}    % more fancy graphics ;).
 
 \usepackage{epsdice}      % dice-face font
 
index 785af807370a02aca1e337d5805b9a830f33c0c7..c8c908efb8c8a527242516ca4280f956f578bd2d 100644 (file)
 \input{packages}
 
 \begin{document}
+
+% Work-directory for Asymptote files (no spaces):
+\def\asydir{figures/scratch}
+\begin{asydef}
+// Global Asymptote definitions go here.
+//texpreamble("\documentclass{drexel-thesis}");
+//usepackage("packages");
+\end{asydef}
+
+
 \begin{preamble}
 
 \include{blurb/dedications}
index ec63d630a9f9c5043b57bd332bf0aa1832c6fc9a..777e50c14c36589870c675ea73687d8b43cc40f3 100644 (file)
@@ -23,10 +23,10 @@ deviation of $25\U{pN}$.
 \begin{figure}
 \vspace{-1in}
 \begin{center}
-\subfloat[][]{\asyfig{figures/sim-sawtooth/sim-sawtooth}%
+\subfloat[][]{\asyinclude{figures/sim-sawtooth/sim-sawtooth}%
   \label{fig:sawsim:sim-sawtooth}%
 }\\
-\subfloat[][]{\asyfig{figures/sim-hist/sim-hist}%
+\subfloat[][]{\asyinclude{figures/sim-hist/sim-hist}%
   \label{fig:sawsim:sim-hist}%
 }
 \caption{(a) Three simulated force curves from pulling a polymer of
@@ -157,7 +157,7 @@ unfolding order and polymer length.
 
 \begin{figure}
   \begin{center}
-  \asyfig{figures/order-dep/order-dep}
+  \asyinclude{figures/order-dep/order-dep}
   \caption{The dependence of the unfolding force on the temporal
     unfolding order for four polymers with $4$, $8$, $12$, and $16$
     identical protein domains.  Each point in the figure is the
@@ -217,7 +217,7 @@ to WLC\index{WLC} or other polymer models (\cref{fig:expt-sawtooth}).
 
 \begin{figure}
 \begin{center}
-\asyfig{figures/kappa-sawteeth/kappa-sawteeth}
+\asyinclude{figures/kappa-sawteeth/kappa-sawteeth}
 \caption{Simulated force curves obtained from pulling a polymer with
   eight protein molecules using cantilevers with different force
   constants $\kappa_c$.  Parameters used in generating these curves
@@ -302,10 +302,10 @@ about the protein from other sources.
 
 \begin{figure}
   \begin{center}
-  \subfloat[][]{\asyfig{figures/v-dep/v-dep}%
+  \subfloat[][]{\asyinclude{figures/v-dep/v-dep}%
     \label{fig:sawsim:v-dep}%
   } \\
-  \subfloat[][]{\asyfig{figures/v-dep/v-dep-sd}%
+  \subfloat[][]{\asyinclude{figures/v-dep/v-dep-sd}%
     \label{fig:sawsim:width-v-dep}%
   }
   \caption{(a) The dependence of the unfolding forces on the pulling
@@ -324,7 +324,7 @@ about the protein from other sources.
 
 \begin{figure}
   \begin{center}
-  \asyfig{figures/fit-space/fit-valley}
+  \asyinclude{figures/fit-space/fit-valley}
   \caption{Fit quality between an experimental data set and simulated
     data sets obtained using various values of unfolding rate
     parameters $k_{u0}$ and $\Delta x_u$.  The experimental data are
index 69d90820f7c690a891d08fd8b6e405154f79c708..ec8de7e594a11de868dc81c739b9e0757a0c4f9e 100644 (file)
@@ -174,7 +174,7 @@ group of $N_f$ identical domains to unfold in a given time step is
 where the approximation is valid when $N_fP_1 \ll 1$.
 
 \begin{figure}
-  \asyfig{figures/schematic/monte-carlo}
+  \asyinclude{figures/schematic/monte-carlo}
   \caption{Once the unfolding probability has been caculated, we need
     to determine whether or not a domain should unfold.  We do this by
     generating a random number, and comparing that number to the