From: W. Trevor King Date: Wed, 11 Apr 2012 21:52:42 +0000 (-0400) Subject: Add optional subscript override to Coulomb labels in Mechanics.asy. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0e1da74b042bd5faf026aa6fd42310ceb424ace;p=course.git Add optional subscript override to Coulomb labels in Mechanics.asy. --- diff --git a/asymptote/ElectroMag-test.asy b/asymptote/ElectroMag-test.asy index 5b761f4..ec4820b 100644 --- a/asymptote/ElectroMag-test.asy +++ b/asymptote/ElectroMag-test.asy @@ -25,6 +25,7 @@ Charge a = pCharge(center=(0.5u,2u)); Charge b = aCharge(center=(0,-0.5u), q=1); Charge c = nCharge(center=(-3u,-0.5u), q=-3); Charge cs[] = {a,b,c}; +string subscripts[] = {"a"}; Distance dab = Distance(b.center(), a.center(), scale=u, L="$r_1$"); Distance dbc = Distance(c.center(), b.center(), scale=u, L="$r_2$"); Distance ds[] = {dab}; @@ -43,10 +44,10 @@ for (int i=0; i