From ed3656403a9befab65e394949f3862657659f41d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 11 Apr 2012 21:04:46 -0400 Subject: [PATCH] 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. --- latex/problems/wking/problem.relativistic-limo.limo.py | 3 ++- latex/problems/wking/problem.relativistic-limo.tex | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 latex/problems/wking/problem.relativistic-limo.limo.py diff --git a/latex/problems/wking/problem.relativistic-limo.limo.py b/latex/problems/wking/problem.relativistic-limo.limo.py old mode 100644 new mode 100755 index 6615372..0379870 --- a/latex/problems/wking/problem.relativistic-limo.limo.py +++ b/latex/problems/wking/problem.relativistic-limo.limo.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + from pylab import * from matplotlib.patches import Polygon import sys @@ -5,7 +7,6 @@ import sys filename = None if len(sys.argv) >= 2: filename = sys.argv[1] - figure(facecolor='w', figsize=[4,3]) border = 0.15 diff --git a/latex/problems/wking/problem.relativistic-limo.tex b/latex/problems/wking/problem.relativistic-limo.tex index cef7a3d..c080080 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]{limo} +\includegraphics[height=2in]{problem.relativistic-limo.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