From: W. Trevor King Date: Thu, 12 Apr 2012 01:18:26 +0000 (-0400) Subject: Revert problem.relativistic-limo.tex back to expecting `limo.*`. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a451357bcf39b274a9c818a6e06584524c3f938;p=course.git Revert problem.relativistic-limo.tex back to expecting `limo.*`. This reverses a portion of commit ed3656403a9befab65e394949f3862657659f41d Author: W. Trevor King Date: Wed Apr 11 21:04:46 2012 -0400 Make the Python limo script executable. Also adjust the name of the expected file to ${SCRIPT/.py/} to make it easier to automatically generate the required image. The new scheme works with TARGET="$(echo "${SCRIPT}" | awk -F. '{print $(NF-1)}').png" "${SCRIPT}" "${TARGET}" This avoids problems like LaTeX Warning: File `problem.relativistic-limo.limo' not found on input line 50 . ! LaTeX Error: Unknown graphics extension: .relativistic-limo.limo. With the new rule, if you write a problem `abcd.efgh.tex` that needs an image `xyz.png`, the script generating that image should be `abde.efgh.xyz.py`. --- diff --git a/latex/problems/wking/problem.relativistic-limo.tex b/latex/problems/wking/problem.relativistic-limo.tex index c080080..cef7a3d 100644 --- a/latex/problems/wking/problem.relativistic-limo.tex +++ b/latex/problems/wking/problem.relativistic-limo.tex @@ -47,7 +47,7 @@ the limo is back at event $C$, while the door of the garage is up at event $D$. Note that the garage is less than $1\U{ls}$ deep in the limo frame. \begin{center} -\includegraphics[height=2in]{problem.relativistic-limo.limo} +\includegraphics[height=2in]{limo} \end{center} ``Entirely in the garage'' is something of a trick question, since it means ``all of the limo is in the garage at same time'' and ``at the