From 5a451357bcf39b274a9c818a6e06584524c3f938 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 11 Apr 2012 21:18:26 -0400 Subject: [PATCH] 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`. --- latex/problems/wking/problem.relativistic-limo.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2