From a0e1da74b042bd5faf026aa6fd42310ceb424ace Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 11 Apr 2012 17:52:42 -0400 Subject: [PATCH] Add optional subscript override to Coulomb labels in Mechanics.asy. --- asymptote/ElectroMag-test.asy | 5 +++-- asymptote/ElectroMag.asy | 29 +++++++++++++++++++++++------ 2 files changed, 26 insertions(+), 8 deletions(-) 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